C++ :: VRP Algorithm - Run EXE In Website

Jun 27, 2014

I have VRP algorithm written in C++, run with command prompt Windows. input (command line) -> VRP.exe -> output (txt file)

Now I want to built a website to run it as SaaS. How to run an exe application(compiled c++) in server used as Saas? What kind of programming do I have to use? Ruby or html5 or others? I don't know how to start.

View 3 Replies


ADVERTISEMENT

C++ :: How To Embed Website

Jan 18, 2015

how to embed website in c++?

View 1 Replies View Related

C :: How To Read A Website From Given URL In Windows

Nov 14, 2013

I am wondering how can I read a website from a given url in windows ?

View 3 Replies View Related

C++ :: Push Button On A Website?

Nov 25, 2013

I was wondering if it's possible to push a button on a website programatically. Unfortunately the button link is invisible, otherwise I could simply use the URL it links to. So is there a way to do it in c++ and if so, how?

View 4 Replies View Related

C# :: Publishing App Directly To Website

Mar 25, 2014

I'm successfully publishing an app to my website by publishing locally and then uploading the files but one of the options offered is to publish straight to the web site but I can't find anywhere to enter a user name and password for my web site. I could also do it with ftp but since the option is offered to publish directly to the web site I'd like to try that method. I'm using the Click Once method.

View 5 Replies View Related

C# :: How To Interact With A Website Like Freelancer

Feb 26, 2015

Any way to interact with websites such as Freelancer or fiverr. I mean when someone posts new topic i'll search in the topic if the name contains keywords like 'programming' then i'll notify the client that there is a new subject he can works on . Is there a way to do this in c#?

View 12 Replies View Related

C Sharp :: Get Text From Website To C# Application

Apr 20, 2013

I would like to know an easy way to let my application show in a label, some stats from a website.

View 1 Replies View Related

C++ :: Import Stock Ticker And Volume From A Website?

Mar 30, 2014

I need a line of code of retrieving data from a live website. I will look around in the mean time. libcurl?

View 1 Replies View Related

C++ :: How To Login A Website And Download / Upload Files

Dec 18, 2014

Basicly I want to make a c++ program which does the following:

1- logs in to 4shared.com with username 'user_example' and password 'password_example'.
2- uploads to the 4shared account a file named 'test_upload.txt' located in 'C: est'
3- downloads a file named 'test_download.txt' from the 4sared account

I user curl 7.39.0 and curlpp 0.7.3

1- how to keep the same session between successive http requests
2- how to make an http request to upload a file
3- how to get the url of a file with specified name on a 4shared account

View 15 Replies View Related

C++ :: Make A Terminal For Website And BHXSpectre Recommended Cgi?

Nov 22, 2013

so i want to make a terminal for my website and BHXSpectre recommended cgi (which i love... c++ web design. just one more reason to not use any other language). anyways, im wondering how would i generate the html for the base of the terminal? ie just the window that i will be writing to

View 2 Replies View Related

C :: Retrieve Information From A Website - Libcurl Not Giving Output

Apr 2, 2014

I am trying to retrieve information from a website [URL] .... and have written a C code as follows:

Code:
#include <stdlib.h>#include <stdio.h>
#include <string.h>
#include <curl/curl.h>
int main(int argc, char* argv[]) {
/* Exit status to return */
int exitStatus = 0;

[Code] .....

The output of this program should be:
From To
4504111 B0LPF3
4504111 P62993

The first print option [printf("%s", url)] gives the url output as [URL] .... which on being manually pasted in any web-browser gives the correct output but the program fails to give the output.

View 1 Replies View Related

C# :: Upload Custom Values To Specific URL And Get Result Given From Website

Aug 1, 2014

I am trying to upload custom values to specific URL and get the result that is given from the web site.

The problem that is occurring is that I don't know how to simulate "press" the input type="button".

Is the value wrong or something

Here is the link(English version)

I use the Bulgarian version but that doesn't matter.

WebClient myWebClient = new WebClient();
myWebClient.Credentials = CredentialCache.DefaultCredentials;
myWebClient.Headers.Add(HttpRequestHeader.UserAgent, "anything");
myWebClient.Proxy = null;

[Code] ....

The problem is that I don't get result, that looks like this.

View 2 Replies View Related

C Sharp :: Obtaining Cookie Value From Logged In User On Website

Aug 28, 2012

I am trying to obtain the values of cookies from a particular website. The problem is, when I run the following code, it only loops through 4 of 10 cookie values present.

Furthermore, the values are turning up as deleted: Reference

HttpWebRequest Request = (HttpWebRequest)WebRequest.Create("http://www.mysite.com");
Request.CookieContainer = new CookieContainer();
HttpWebResponse Response = (HttpWebResponse)Request.GetResponse();  
foreach (Cookie cook in Response.Cookies) {                          
           Console.WriteLine("{0} = {1}", cook.Name, cook.Value);           
       }  

Then I came across this code, which states it will loop through every cookie value and obtain its values: Reference

int loop1, loop2;         
       HttpCookieCollection MyCookieColl;
       HttpCookie MyCookie;
       MyCookieColl = Request.Cookies;  
       String[] arr1 = MyCookieColl.AllKeys; 
       for (loop1 = 0; loop1 < arr1.Length; loop1++) {
           MyCookie = MyCookieColl[arr1[loop1]];          
           String[] arr2 = MyCookie.Values.AllKeys;
       }  

The problem with the above, I can't seem to find a reference to "Request". I am using the libraries "using System.Net and using System.Web", so I am unsure why Request is not being recognized.

My goal is to retrieve one cookie value so that when a user from my website logs in, my C# application will recognize that user.

View 7 Replies View Related

C Sharp :: Generating Mail Using Code After Uploading Website On Server?

Nov 22, 2014

I am using below code to generate mail through C # code

SmtpClient smtp = new SmtpClient("smtp.live.com", 587);
smtp.EnableSsl = true;
smtp.UseDefaultCredentials = false;
smtp.Credentials = new NetworkCredential("XYZ@live.com", "********");

[code] .....

It was working properly offline when i running on my local computer,But I uploading it on server after publishing website it is not working.

View 1 Replies View Related

Visual C++ :: Program To Auto Login Website - Waiting With Message Loop

Aug 25, 2013

I am writing a program to auto login in a web site. Before making next attempt I have to wait for some time like some 10 seconds(it is configurable). But during waiting UI should not freeze. I wrote code something like this. Here event m_hEvent[1]) will be set by another thread after 10 seconds.The problem is UI still freezes some times!

while(1)
{
//m_hEvent[1] will be set by another thread after 10 seconds
dwRet = MsgWaitForMultipleObjects(1, &m_hEvent[1], FALSE, dwMilliseconds, QS_ALLINPUT);
ResetEvent(m_hEvent[1]);

[Code] ....

View 4 Replies View Related

C Sharp :: Cannot Access Server Page Custom Controls In Website Page

Jan 24, 2015

I m making calendar in server control page by taking composite control.I am also adding textbox in each cell of calendar. Now i want to access the value of each textbox of selected month and respected date in default.aspx page on button click event. Here the button is not a custom control but defined in default.aspx page..

Can't access textbox text and date or controls of server page in website(default.aspx) page.

View 2 Replies View Related

C :: Can't Get Tic-tac-toe Win Algorithm To Work

Apr 9, 2014

I am writing a simple console-based tic-tac-toe game. I am trying to write a function to check whether someone has won the game.

The board data is saved in an array called board: Code: int board[3][3] with each element corresponding either to an empty spot, an X, or an O, using the numbers 0, 1, and 2, respectively. For clarity:

Code:
#define EMPTY 0
#define X 1
#define O 2 Here is my function: Code: int check_state(int board[3][3]) {
int winner = 0;

[Code].....

View 1 Replies View Related

C++ :: Algorithm For All Possible Combinations?

Mar 7, 2013

A few days ago I got a "bright idea" to see if I could match a string, with an arbitrary length from 1 to 12, to its formulated sequence by using an algorithm to find all possible combinations of the integer combinations from 0 to 9 at each length (1 to 12).

Example: Desired numerical combinations from integers 1 to 3:

At Length 1:

1, 2, 3

At Length 2:

11, 12, 13, 21, 22, 23, 31, 32, 33

At Length 3:

111, 112, 113, 121, 122, 123, 131, 132, 133, 211, 212, 213, 221, 222, 223, 231, 232, 233, 311, 312, 313, 321, 322, 323, 331, 332, 333

And so on until the nth length (in my case a length of 12).

First off, I would like to say that this is not as easy as I thought. I clearly underestimated the problem seeing as I've spent hours attempting to write a working algorithm, but feel like I've made no progress.

Here are a few of my attempts:

Attempt 1:

#include <iostream>
#include <algorithm>
#include <math.h>
#include <string>

[Code]....

I can't exactly explain this one. It works if the length is 2 or less; however, the order of the output is horrendous.

Attempt 3: I tried using recursion, but only found myself getting more and more lost the further I tried developing my function. Cannot find my work for this attempt.

I would really like to figure this out on my own, but I am very stuck as you can see. I also lack time that I can spend working on this since im a full time student.

View 14 Replies View Related

C++ :: Extending STL Algorithm

Jul 24, 2013

I wrote a version of find_all() which searches through containers for matches and returns another container that holds iterators pointing to each match. When I compared what I wrote to what the authors of Professional C++ wrote, I found the two find_all() functions to be very different.Here they are:

//Mine
template<typename Iterator, typename Predicate>
std::list<Iterator> find_all
(Iterator front, Iterator back, const Predicate& match) {
std::list<Iterator> toreturn;
for(; front != back; ++front) if(*front == match) toreturn.push_back(front);

[code]...

View 5 Replies View Related

C++ :: Frame Per Second Algorithm?

Aug 27, 2013

i was trying to achieve a better way of game looping. so i have a game loop algrithm. but i dont think its quite good. i want it to be better.

here is my algorithm

bool quit = false;
while(quit == false) {
while(blah blah events)//here we hold events {
if(the user want to quits) {
quit = true;

[code]....

View 2 Replies View Related

C# :: Algorithm With Recursion Use

May 12, 2014

To construct and write down algorithm of determination of the sum of squares of consecutive integers with recursion use. I tried to do something:

public static int RecSumSquare(int x, int n)
{
if (n < 0) throw new ArgumentException("n should be greater than zero");
if (n == 0) return 0;
else return x*x+RecSumSquare(x, n - 1);
}

But I don't know as the beginning and the end of this algorithm will look.

View 2 Replies View Related

C++ :: Simulated Annealing Algorithm

Mar 10, 2014

I'm still a beginner at C++ programming, I have tried to implement some optimization algorithms (related to database) in C++, I cannot say it is going as far as I thought it will be, some errors does not even make sense, I will cut to the chase, I need to implement SA (Simulated Annealing) in C++, SA, which is an example of the Randomized Algorithms, functions on the concept of randomness and probability. In addition, I searched the internet with no (let say "accurate") code that might give me insight on how to begin, I only found one code for SA that I could understand, and edited it (which will be shown below), still looking to enhance and correct it more.

The code for SA is as follows:

Code:
#include "stdafx.h"
#include <iostream>
#include <time.h>
#include <stdlib.h>
#include <cmath>

[Code] .....

If the concept of Simulated Annealing is not clear, you may refer to the following papers which can be found in a simple Google search: Simulated Annealing Algorithms: an overview.An Introduction to Interacting Simulated Annealing. Query Optimization (there is a sub-section for Simulated Annealing in this paper that explains SA briefly) ....

View 6 Replies View Related

C++ :: Algorithm To Roll A Rectangle

Sep 17, 2014

I'm trying to draw and pivot a rectangle. How to get the new coordinates if I turn it 90 degree for example?

From this:

To this:

This is not good because it will reduce it in size.

Code:
int size = 50;
if(b) // draw rectangle
{
POINT points[4] =
{{xCoord, yCoord},

[Code] ....

View 7 Replies View Related

C++ :: Multiplying Matrix Using Algorithm

Jun 3, 2013

Trying to multiply to matrixes using the following algorithm,

Code:
ABrec(A,B)
n=A.rows; //n must be multiple of 2
C is a new n*n matrix.
if(n==1)
C[0][0]=A[0][0]*B[0][0];

[Code] ....

but the code doesn't work !!!

View 4 Replies View Related

C :: Algorithm To Calculate Highest Value?

Aug 3, 2014

Now I know there's a simple way to calculate highest value. But here i have this algorithm which i understood part of it.

I know that *largest is point to the first element of begin which is 5. so in the first if statement its 5<5 at the first iteration ?

// i marked the parts i didnt understand with " //"

Code:
#include <stdio.h>
int *print(int *begin ,int *end ){
if(begin==end)
return 0;
int *largest = begin;

[Code] ....

View 10 Replies View Related

C :: Merge Sort Algorithm

Dec 24, 2014

i can't seem to get this merge sort to work. running through gdb though;

Code:

*Filename: mergeSort.c
*Usage: This implements merge sort algorithm to sort and array of numbers.
*/
#include <stdio.h>
#include <stdlib.h>
}

[code]...

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved