General C++ Programming - April 2010 (Page 19)

by wincry
Boost.asio
 
Hi, can anybody tell me how should i sent this kind of GET request to the yahoo server using boost.asio. My uri is : http://in.finance.yahoo.com/d/quotes.csv...
[1 reply] : http://www.rfc-editor.org/rfc/rfc2616.txt (by maikel)
guessing game
 
I posted this under beginners also then realized there is a forum for C++ programming. I'm trying to write a program for a guessing game where the user enter...
[1 reply] : Don't double post. (by tummychow)
vector::push_back( someClass ) odd behaviour
 
I am generating a vector of a class. Somehow when I am using 'push_back', the length of the vector increases exponentially instead of linearly. Certainly it ...
[6 replies] Last: An even better idea is to use the right container for the job. These ... (by moorecm)
Finding a number in a matrix - homework question
 
Hi everybody! Sorry for my bad english! I have a matrix of integers with a maximum length 6 digits. I must to write program, that checks whether a number is f...
[2 replies] Last: I think that i have done something... #include <iostream> using ... (by jonyshub)
returning an array
 
How can I write a function which takes an integer x and return the two-element array {x, x}?
[5 replies] Last: I agree with chrisname. There are a number of solutions. I'm sure th... (by kempofighter)
problem reading files
 
I wanted to know how to read a file containing lines of 4 on 4 separated by a space. I mean, I have an array of objects and I want to read the file and assign ...
[1 reply] : read the tutorial on file handling http://cplusplus.com/doc/tutorial/f... (by blackcoder41)
pointer to a vector
 
I see many many usage as pointer to a vector in some third party library. I never use containers that way and wondering what is the rational behind it? Save mem...
[11 replies] Last: It was a joke, lighten up. :) (by closed account S6k9GNh0)
overloading of the insertion(<<)-operator
 
Huhu... I am writing a Logger and for this i want to overload the operator<<() to Log strings and numbers... I encounter problems which make me want to ...
[14 replies] Last: I don't but I have an idea. Build a small project that compiles only ... (by kempofighter)
Problem with inheritence
 
I have a problem with inheritence, I will try to explain it. I have a treeview which I would like to populate, I use Qt for the gui elements but this problem...
[6 replies] Last: I also only noticed it when I wrote it there and saw the difference. B... (by MrHammy)
Implementing wild card searching in c
 
I want to implement wildcard searching in c. Please tell me how to do it. Or where to start for this problem Regards Harsh
[9 replies] Last: Debug the shell code then.. :D Ankit/Jsmith thats good.. i was not ... (by writetonsharma)
trouble with set and struct
 
Hi, I need help with this I have an Struct like this: struct nodo { char *str1; char *str2; set<char*> dominio; nodo *anterior,*siguiente; };nodo *prime...
[5 replies] Last: thx a lot for your answers ... (by eljhonb)
Generating all Permutations [non-recursive]
 
The other code snipplets I found were either recursive or too complex. I therefore developed a simple, fast and yet non-recursive method; thats useful especi...
[4 replies] Last: ok then, I ll take it :D I want it for a random number generator I m m... (by m4ster r0shi)
What is wrong in this code?
 
I am not able to access b in the for loop . char b = " initialize"; if(S==1) b = "SN 2 X 0.001\r MN 2 X 1\r"; ...
[6 replies] Last: thanks for discussion guys (by amitjakati)
cpoy one structure pointer items in to another structure
 
hello every one.... I have a structure struct labValueRecord { public: char name ; char category ; char unit1 ; char unit2 ; }*labvalue; and i...
[no replies]
by RET80
overloading the = operator
 
I'm getting this error: error C2679: binary '!=' : no operator found which takes a right-hand operand of type 'const Name' (or there is no acceptable conversio...
[4 replies] Last: Also take a look at this for more info on the subject. http://cpluspl... (by kempofighter)
by Jvb182
Multiple define symbol errors?
 
I'm writing a program to create sets based off of BitVectors. I don't have much code written and it already wont compile due to some sort of multiple define pro...
[2 replies] Last: That did the trick!! Thank you very much. (by Jvb182)
reason for the output?
 
int main() { int a=2; cout<<++a + ++a; system("pause"); } The output that I expected was 7 but the output was 8. could I know the reason for it...
[4 replies] Last: Which is why excessive use of in-line incrementation/decrementation is... (by tummychow)
Minimum Spanning Tree
 
Hi, I'm required to write the following program. I am not asking for anyone to do it for me in any way. I would just like some guidance on where to start, be...
[no replies]
Context free grammar
 
I have a project to do about context free grammars and hashtables. My professor wants us to read in this text: <Start> : <Sentence> ; <Sentence> : The <Nou...
[no replies]
wPcap - Web Sniffer / Proxy
 
Hi, I am in the process of learning C++ and am creating a project on sourceforge in the process. Cue the shameless self promotion! http://sourceforge.net/...
[8 replies] Last: Found it... -s 0 this sets the length to whatever is required.... (by thomascrabs)
April 2010 Pages: 1... 1718192021... 24
  Archived months: [mar2010] [may2010]

This is an archived page. To post a new message, go to the current page.