- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
13 Posted Topics
Hello All, I have searched every forum and google etc but nothing directed me in right path. Requirement: I am using a COM object which can be initialized only once. But, when I try with webapi the first run goes fine and the rest fails as the COM object does …
If you are interested to understand the concepts: [URL="http://www.hitmill.com/programming/cpp/forLoop.htm"]FOR Loop[/URL] [URL="http://www.bluesfear.com/tutorials/C%2B%2Bwhileloop.php"]While Loop[/URL] [URL="http://mathbits.com/mathbits/compsci/looping/dowhile.htm"]Do While[/URL] Try it yourself first and post some code. Then we will help you understand the loops better.
you can look at the getline seperator: [CODE]getline(file, line, ' ');[/CODE] Separator in this case is space ' '.
URLDownloadToFile or URLDownloadToBuffer can be a start.
Can you please post the code which you tried? If not yet tried then I suggest you can have a glance at std::string .replace function. It gets you job done. :)
You were on the right track: [CODE] #include<iostream> using namespace std; int main() { int x, y, z, sum; cout<<"Please input two integers: \t" <<endl; cin >> x >> y; if(x > y) { z = y; y = x; x = z; } for (int i = x; i …
Hello, I just found this one. Might help you: [CODE] #include <iostream> #include <windows.h> // struct unit with loop inside.... using namespace std; int main(int argc, char *argv[]) { HWND h = ::GetTopWindow(0 ); while ( h ) { DWORD pid; DWORD dwTheardId = ::GetWindowThreadProcessId( h,&pid); if ( pid == …
Hi, [B][URL="http://www.autoitscript.com/autoit3/index.shtml"]AutoIt[/URL][/B] After installing autoit, there is a file named "[B]AutoIt window info[/B]". That should help you get the button ID.
Hi sam, When assigning the value to queue use push in loop: [CODE] #include <iostream> #include <queue> using namespace std; struct state { int puzzle[3][3]; //Changed the size to 3 from 2 }; int main(int argc, char *argv[]) { state p; p.puzzle[0][0]=1; p.puzzle[0][1]=2; p.puzzle[0][2]=3; p.puzzle[1][0]=8; p.puzzle[1][1]=0; p.puzzle[1][2]=4; p.puzzle[2][0]=7; p.puzzle[2][1]=6; p.puzzle[2][2]=5; …
Hi there, If you would past the sample source (DataFile.txt) file it would be better.
Do you need it to be printed with the same loop? or try to use another while loop without any conditions? Changes in bold. [CODE]#include <iostream> #include <string> #include <fstream> using namespace std; int main(int argc, char *argv[]) { ifstream Input; string fileName; // variables char name; char last = …
Hello All, First of all, I am beginner so please bear with me. :) I want to extract data within the table from a html code. Lets consider HTML code to be in a file. I have read the data to a variable. Now using this variable I want to …
Hello, This is my first post :) Try this: [code] int main() { string sFilePath("C:\\Documents and Settings\\Administrator\\Desktop\\Support\\MyFile.txt"); string dLine(""), input(""); ifstream inFile(sFilePath.c_str()); cin >> input; input += ","; while(!inFile.eof()) { getline(inFile, dLine); if(dLine.find(input) != dLine.npos) { cout << "Found Text: \t"; cout << dLine << "\n\n"; } } return(0); } …
The End.
mayyubiradar