Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #2K
~9K People Reached
Interests
PC/PS3 Games.
PC Specs
C++/PHP/HTML/.NET Win XP/7

13 Posted Topics

Member Avatar for mayyubiradar

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 …

Member Avatar for pritaeas
0
1K
Member Avatar for angel28

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.

Member Avatar for prvnkmr194
0
142
Member Avatar for awadojag

you can look at the getline seperator: [CODE]getline(file, line, ' ');[/CODE] Separator in this case is space ' '.

Member Avatar for mayyubiradar
0
158
Member Avatar for vbx_wx
Member Avatar for megz_03

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. :)

Member Avatar for mayyubiradar
0
88
Member Avatar for cortez716

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 …

Member Avatar for dalymiddleboro
0
389
Member Avatar for jimmys_

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 == …

Member Avatar for jimmys_
0
568
Member Avatar for lukename

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.

Member Avatar for lukename
0
182
Member Avatar for 1989sam

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; …

Member Avatar for mrnutty
0
5K
Member Avatar for cogitoergosum18

Hi there, If you would past the sample source (DataFile.txt) file it would be better.

Member Avatar for mrnutty
0
299
Member Avatar for nerdygirl118

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 = …

Member Avatar for nerdygirl118
0
149
Member Avatar for mayyubiradar

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 …

Member Avatar for mayyubiradar
0
622
Member Avatar for kirviepalencia

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); } …

Member Avatar for kirviepalencia
0
161

The End.