Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #25.0K
Ranked #4K
~7K People Reached
This member's community profile is only visible to logged in members until they have earned 15 reputation points.
Favorite Forums

8 Posted Topics

Member Avatar for sophie.c

There is a best techinque to receive the data: [code=cpp] int size_to_recv = 100; while(size_to_recv) { int r = recv(sock, buf, size_to_recv, 0); if(r <= 0) break; //socket closed or an error occurred size_to_recv -= r; } [/code] The main reason for this while loop is that 'r' may be …

Member Avatar for sophie.c
0
5K
Member Avatar for d34dw4rd

Oh, there's too much code... Could you please tell the exact error place? Why can't you use Calculate() function? What does exactly happen if you try?

Member Avatar for d34dw4rd
0
292
Member Avatar for mattloto

Perhaps you mean [icode]string [b]*[/b]names=new string[30];[/icode], right? (note the '*' character before the variable name). It is possible to make it [icode]std::vector<string>[/icode] and use the internal finding algorithms of STL.

Member Avatar for david.k
0
184
Member Avatar for nille_nerholt

Try to hide the listview control from the window, sort, and then show the listview back again. Windows does not bother repainting hidden controls. Is the sorting now faster? If yes, then it is true that the repainting is slow. If no, then it is your sorting itself is slow, …

Member Avatar for david.k
0
371
Member Avatar for rockstar8577

Somebody recommends to use libraries like Qt to be involved into GUI programming easily. But that's not quite good decision while you want to really understand the whole process of how graphic apps on Windows are implemented under the hood. Once you understand the things in the native Windows API, …

Member Avatar for rockstar8577
0
198
Member Avatar for Jeff_5_7

Split your algorithm into pieces: 1. get the user input char by char 2. convert it into integer (however it is much easier to get the whole number at once ("cin >>integer"), but I guess it is required in the task to grab the input by 1 char) 3. get …

Member Avatar for Luckychap
0
103
Member Avatar for restrictment

Should be [code=cpp] ... x = 0; ifstream tofile("answers.txt"); while( x < 255 && fromfile.getline(question[x], 255) ) ... [/code] Also, it is not quite good turn to call fromfile.getline() when you have closed it with fromfile.close() on line 35. I think it will be better to reproject your code from …

Member Avatar for david.k
0
177
Member Avatar for PDB1982

Please don't post too much code - it is difficult for people to understand it at a glance, split it by parts and ask the questions to each part of the code. Usually to override global operator+() function a programmer does something like [code=cpp] Type operator+(const Type &t, const Type …

Member Avatar for david.k
0
179

The End.