General C++ Programming - June 2010 (Page 18)

How to declare a vector of objects with no default constructor?
 
I'm having a problem with vectors. I need to create a vector of objects that don't have a default constructor. Any ideas are appreciated ;) Thx in advance.
[3 replies] Last: helios u saved me, working with pointers was very hard but at last it ... (by waleed 707)
ofstream & ifstream
 
hi , i am trying to open the file. The code i am having the problem is inline void CStance::assure(std::ofstream &in, const char *filename) { using...
[5 replies] Last: Yes .. you are right idbentley . i have included <fstream> and it solv... (by bluecoder)
endl in <iofstream>
 
I wonder if <iostream>'s function "endl" has a different encoding across different OS or different compilers. Can you please just test codes below under wind...
[1 reply] : I wonder if <iostream>'s function "endl" has a different encoding acr... (by helios)
global variables in multithreaded programming
 
Is there a way to avoid the use of global variables in a multithreaded c/c++ program since using global variables are bad practice?
[5 replies] Last: Not the pointer, the data itself. (by helios)
error while creating and copying a binary file with strings
 
Hello everyone. here's a program that stores some string data in a binary file , read them and then write them to another file. Along with each string I wr...
[9 replies] Last: perfect!! It works. Certainly it's worth to write a specific function... (by anotheruser)
writing two while loop
 
Hi, I am uncertain if i can place a while loop inside a while loop, although trying it proves me that it cannot be done. Is there another work around meth...
[2 replies] Last: +1 galik Hi Galik, Thanks for your help in bringing me to the ri... (by dguetta)
by dnk77
My Project, feedback needed
 
Gday all, I am studying/part time teaching C++ in an australian technical college. I have been asked to write a problem and solution for a class of young stud...
[2 replies] Last: +1 Albatross You could write a test implementation for void setup()... (by Galik)
by sajad
graph algorithm
 
hello everybody please tell me what is the error of this program?i cant understand anything about the error. #include<list> #include<iostream> using nam...
[2 replies] Last: thanks very much ,that is you suggested. (by sajad)
quotation marks
 
How do you put quotation marks in a program?
[1 reply] : If you mean how to put them in a string constant then you need to 'esc... (by Galik)
xsd schema using tinyxml.
 
Is it possible to include the xsd schema files using tinyxml for validating the xml fields? can you give any example. thank you.
[no replies]
Let' talk COMPILERS!
 
Compilers are a programmers best friend, without them a programmer is like a water-proof tea bag, but which one is your favorite (Those of you about to type Dev...
[13 replies] Last: So i should download GCC 4.5 at their site? (by xander333)
How do I Open a Program Through C++ (Code here) (1,2)
 
Hi, I want open a program through C++. Ex. Like I compile the code and when I do it opens up Internet Explorer. Is this possible to do? Would I use a fin.open? ...
[21 replies] Last: Alright thanks, and I'm not trying to do anything against security hol... (by Algorithms)
June 2010 Pages: 1... 161718
  Archived months: [may2010] [jul2010]

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