General C++ Programming - March 2008 (Page 2)

c++ part. How does it work?
 
...
[1 reply] : What do you mean by "how does it work"? Do you mean, "what does the... (by magicalblender)
recursive function for palindrome
 
im trying 2 write a recursive function which returns true if the string is a palindrome and otherwise false. bool isPalindrome(string s) { if (s.empty()...
[2 replies] Last: This is a possible signature for a recursive function; obviously you w... (by closed account z05DSL3A)
by TURU
Problem with memory in program generating primes
 
I have a problem with my primes generator. It generates primes and write each one into a file. When I use unsigned long int for all calculations, the biggest pr...
[2 replies] Last: If you post your code, we can look over it for bugs. (by magicalblender)
Graphical Interface link?
 
I would like to link C++ with a graphical interface (an x-y coordinate system). Is there a program that works well with C++ for this? If so, what process woul...
[1 reply] : you can use the borland c++ for the basical graphic design. There you ... (by EWu)
Can I make cin.ignore() flush the keyboard buffer
 
Hello, I am writing a homework program and I need some help. I think I am having trouble with the keyboard buffer, unless you educate me and tell me other...
[no replies]
by andor
reed solomon code
 
Hello, i am looking for someone who might have a reed solomon code (a little bit explained) that not only corrects errors but also erasures. i would really app...
[3 replies] Last: Thank you for your answer :) i hope it works! regards (by andor)
by soyuz
Problem in a DLA simulation
 
The main problem is this: how can I return to put a "particle" in r0 (if the antecedent particle go out the circle) unless I used a break and a goto statement t...
[no replies]
by other4
copy txt line2line
 
hi i have a little problem...i have to copy a txt to another txt but i nedd to modify the 3 line and add a new line at the fine of the file...how can i do this?...
[no replies]
inserting bmp image
 
can somebdy help me how to insert bmp image??wehave game project in c++ im starting with the image first.
[4 replies] Last: I think he's talking about an old online game from the late 90's wher... (by Phalanx)
by Izumi
Help with a program?
 
How am I supposed to create a file taking in mind that I have only 4MB for use for the entire program in which has to be written down the information about 2000...
[6 replies] Last: ofstream MyStream; //declare your "stream" (lets you write to a file)... (by firedraco)
Printing a file to the printer?
 
I have written a program that stores information in a text file. I would like to allow the user to print this file to a printer. Any help?
[1 reply] : Use an API. You cannot do that with plain C++. (by Magnus)
Please can someone explain?
 
Hi all, I am starting to do some programming with classes. I have the following class definition: #ifndef GTKMESSAGE_H_ #define GTKMESSAGE_H_ #includ...
[6 replies] Last: Ah right, many thanks for clearing that up for me :) Matt (by matty3269)
Visual C++ assistance
 
I need to modfiy this program so that it allows the user to enter the number of yrs for as many employees as desired, calculate and display the total number of ...
[2 replies] Last: Thank you Very much. (by firebird)
sorting from an array, not working?
 
I cant seem to figure out why my program isn't sorting my array. Any help would be greatly appreciated it. Here are my three files. #include <iostream> #...
[4 replies] Last: Thanks again, far too little sleep. Thanks so much for your help. I go... (by crzymike)
Help with struct
 
Hi, could someone please help me understand the following code: struct TypeClass { TypeClass (Type t, const char **c) :: t(t), c(c) {} }; Advanc...
[2 replies] Last: You have a struct that contains a constructor. This function is called... (by ropez)
by umen
looking for small freeware library that support http connections
 
Hello all first of all the reason im looking for this library is that i need to check if my application has internet connection in the host computer , the ea...
[2 replies] Last: Hi, I am looking for somthing similar, I would like to learn about c++... (by Gregor)
Help with pointer & array
 
I'm confused on how to interpret the following statement: char * varName ; Is it a pointer to a char array or an array of char pointers? Advanced th...
[2 replies] Last: BTW: The syntax is the same as with functions: // Function retur... (by ropez)
how to pass argv[] to template class?
 
Hi everyone. I have a problem with passing program argument to template class. program usage: progname inputFile dataType (for example progname in1.txt dou...
[3 replies] Last: I don't think so. You can always edit it, and replace the text with RE... (by ropez)
sampling & recording streaming data from 1/8" audio input
 
I'd like to record sampling data from an instrument (guitar, keyboard, etc.) hooked into the audio input via a 1/4"-1/8" adapter into, say, a .txt or .dat file ...
[4 replies] Last: Not really as concrete as you think, considering I don't know where to... (by ishkabum)
by Gregor
User input question
 
Hi, I am wondering how could I save user input to a variable, which size can be dynamicly changed. So, an char * or whatever, that wouldn't have defined leng...
[7 replies] Last: :) Of curse I can always do that, I just wanted to do it myself from s... (by Gregor)
March 2008 Pages: 1234... 8
  Archived months: [feb2008] [apr2008]

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