General C++ Programming - May 2009 (Page 16)

by upo
Problem in the input
 
Hey there guys, I am facing a problem I have successfully implemented my c++ code to manipulate a string, but the problem is that I want my program to ask the...
[2 replies] Last: duplicate!! anyway.. you can use getline() function for this pr... (by writetonsharma)
Default Warning Level in Visual C++ 2008
 
Is there any way to set a default warning level for all projects in Visual C++ 2008? I enjoy using warning level 4, and I'm sick of going into the project pro...
[1 reply] : see if there is an option to set warning in tool/options. these option... (by writetonsharma)
XY Plotter Read File
 
hi there, i do hope someone can help with my delima. yes this is homeowork but i am 80% through my program and only wish to get some guidance on my program. ...
[3 replies] Last: ah just realised tha by cutting it short it doesnt work, here is my fu... (by weary01)
File Manipulation (for media player)
 
Hello, I have a few questions about file manipulation. I'm just starting to learn GTK+ and have a basic understanding of both C and C++. I want a cross-p...
[3 replies] Last: Anyway, That's not the big thing I think. I need to be able t... (by enduser000)
psuedocode conversion
 
Im trying to convert the following psuedocode to regular C++ code: function heapSort(a, count) is input: an unordered array a of length count ...
[2 replies] Last: ok,got that.but would it actually sort numbers? (by kakashi316)
by danmar
vector erase - invalidated iterator
 
I am confused by the text on the page: http://www.cplusplus.com/reference/stl/vector/erase/ It says: This invalidates all iterator and references to elem...
[2 replies] Last: Thank you! (by danmar)
Float numbers precission
 
double c=4.345238; cout<<c; //4.34524 It write 4.34524 but i need the upper number to write 4.345238. how to do this.
[1 reply] : http://www.cplusplus.com/reference/iostream/manipulators/setprecision/ (by helios)
static function within static inner class
 
Code 1 class Car { public: Car() { plate = "TestPlate"; }; void RegPlate() { plate = Tommy.getNewPlate(); }; void CheckPlate() { cout <<...
[1 reply] : If all properties of a class are static, then all instances of the cla... (by helios)
C=A+B the sum of arrays
 
I have an array matrix A 5x5 and I have to use three matrixes to initialize A array. all data has to give user. for example A array is 10 0 0 0 0 0 0 20 0 ...
[2 replies] Last: ok... it wasn't exactly right, but the problem is that I don't have to... (by vikdanrom)
A challenge for the Advanced
 
This in no way is me asking for help on homework or whatever, just for the record! You don't even have to post your code if you don't want to. It is also no my ...
[11 replies] Last: The whole discussion is very interesting. Being a student i was not k... (by mcleano)
by dkaip
a unicode char problem
 
Hello all. I have a char in unicode at place 7990 (and because unicode is idepended from locale?). I whant this character to make wstring. How i must do it. I...
[11 replies] Last: If that's my routine, you're using it improperly. WChar_to_UTF8() ret... (by dkaip)
TROUBLE WITH STREAMING DATA INTO AN ARRAY OF STRUCTS
 
I am having a problem connecting my external file with a stream...I have only one error for the entire program. But just to give the background of it I am to ex...
[2 replies] Last: P.S - I think NOT being able to copy construct streams is a standard t... (by guestgulkan)
Hash table problem
 
Hello all, I am trying to solve this question and I've pasted my solution below. I want to know points to improve in my pasted code, so that it becomes more ...
[13 replies] Last: Good to know that. Like you mentioned, the runtime of the program you ... (by n4nature)
OOP
 
I totally don't get Object-oriented programming. Can anyone explain it to me or give me some helpful link/books? I'm sooo confused here :'( ps Don't t...
[5 replies] Last: Don't worry if you don't understand it. I've been at it for years and ... (by DaveMortimer)
Sockets and threads: problem with recv
 
Hi forum! I'm quite new to this sockets and threads stuff, so excuse me in advance if this is dumb question. But I've been testing and googling for a couple ...
[17 replies] Last: Hi flyontheweb. I was thinking about your problem within the contex... (by DaveMortimer)
by sdbala
Data Tables in C++
 
I am facing a desperate situation where i need to keep data of all the records of a table. e.g ( select * from CUSTOMERS ) is there a Data Table kind of a struc...
[8 replies] Last: Then use several classes, each with the required number of instances. ... (by DaveMortimer)
Infinite Loop
 
The following code gets stuck in an infinite loop and i can't figure out where: the first code is the .cxx file. The second is the header and template for the ...
[2 replies] Last: Change your loop in main to do{ s.push(input); }while (!back... (by Hammurabi)
OCCI implementation problem
 
Hi All, Iam new to C++. Just read the theory and have done some average level programs. Currentlyiam facing problems in OCCI implementation. I have a Borland...
[no replies]
Does class inherit correctly class "Person"
 
I need to create 4 classes: 1 - Describe a person 2 - Describe a director 3 - Describe a actor 4 - Describe a person who is a director and actor Did I cr...
[7 replies] Last: Here is a minimal statement of requirements for your problem... A ... (by DaveMortimer)
Crashes in C++ Strings
 
I have seen crashes in C++ strings(STL), why it always dumps in C++ strings?? Can any one answer this??
[5 replies] Last: operator does not throw but the at member function does. With regard... (by kempofighter)
May 2009 Pages: 1... 14151617
  Archived months: [apr2009] [jun2009]

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