General C++ Programming - May 2010 (Page 3)

by fetch
sum will not compute
 
I need these parameters: prompt for number input, with 0 being the exit character. input to print one character per line, like so (as they are entered): ...
[6 replies] Last: Thanks for the tip, Jackforey. In this case I was required to use only... (by fetch)
SFML C++
 
I am trying to learn SFML from the sites tutorial I am using visual c++ 2008 I downloaded SFML headers library included them them in vc++ as they told in tu...
[10 replies] Last: Thank you everybody I will try to learn in and create some simple game... (by thapchi)
by meesa
[C++] size_t vs. size_type vs. unsiged int
 
What's the difference? Why use one over the other? Such as why would I do: for(vector<int>::size_type i=0; i<vInt.size(); ++i) When I could just do: ...
[4 replies] Last: Thanks to both of you. (by meesa)
by Ensei
Segmentation fault(core dumped)
 
This is a school project about a net of consumers. I'm getting segmentation fault but I can't understand why. It's most likely a memory allocation problem wit...
[4 replies] Last: See the other post and please do not post duplicates. It doesn't do y... (by kempofighter)
how to DLL to ocx
 
i have a DLL made by C#.net 2010 and i want to use this dll in c++ to make an OCX ActiveX file in VC++ 6.0, To use it in Microsoft dynamic Nav that doesnt accep...
[no replies]
writing for cross platform
 
Hi everyone i know this has probably been said many times before. but what im trying to do is rewrite my game engine from ground up and maybe parts of my code ...
[4 replies] Last: WxWidgets is also a cross-platform toolkit. They claim to use a native... (by magnificence7)
by fortis
Problem with resizing arrays
 
I want to make a database with C++ well not a real one but a fake one What I'm planing is there is a record class which is the data A Field class holding an a...
[5 replies] Last: http://cplusplus.com/forum/beginner/23163/#msg121662 (by blackcoder41)
by dvm1
operator overriding
 
Hello, I need to create a class CASQLRow which overrides operator . The problem is the return value which might be different because of the sql field type. ...
[6 replies] Last: Other alternatives include: 1) return a boost::variant<>; 2) retur... (by jsmith)
Open GL
 
I am trying to learn OpenGL from a Book called Addison.Wesley.OpenGL.Programming.Guide.7th.Ed But my question is Can I write the OpenGL code in devc++...
[5 replies] Last: I wanted to ask that can I make small games like snake and all in SFM... (by thapchi)
Inherited vector copy
 
Hello, I want to convert a vector from one type to another one. Like the following : vector<NoteTypeA> vec_first; vector<NoteTypeB> vec_second = vec_f...
[12 replies] Last: This is what I have done, but the problem is the vector copy. I get... (by lafeuille)
by qabil
about file
 
hy... I want to make program..my program want the user can open the file (use fstream) my problem is... I I want to show the error message when the file w...
[1 reply] : http://stackoverflow.com/questions/839644/get-stdfstream-failure-error... (by RedX)
Incorrect de-allocation of object
 
Hi All, I am facing a problem in following code: class CVector {public: int x; int y; static int count; CVector(){count++;} ...
[8 replies] Last: This is a compile-time check that verifies that you are not modifying ... (by RedX)
TinyXML problem
 
Hi, I am using tinyXML to process a bunch of XML files. I want to read an XML file then process it like delete some elements, change the value of some att...
[1 reply] : I cant't spot anything wrong with the code. This seems to be more a li... (by RedX)
Read binary file and transfer to human readable text file
 
Hi, I had a problem to transfer a binary file to normal text file. I stored 24000 float number in the binary file, so the size of this binary file is eaxct 9600...
[8 replies] Last: @Duoas Thanks a lot. Really help me a lot. (by RobBinS)
Problem with eof().
 
When I tried to read and extract each line from a .txt file,then copy these data to a buffer array,the get pointer reached the end of file and the eof() bit is ...
[7 replies] Last: @tranlong1612 To start reading the file again you can use: st... (by Galik)
by everid
header file question
 
//tclock.h #ifndef CLOCK_CLASS #define CLOCK_CLASS class clock{ public: clock(); void settime(int newh=0,int newm=0,int news=0); void showtime(); pri...
[1 reply] : i knew it. i need to rename class clock as something else. (by everid)
by indigo
Way to input in console
 
hello, suppose you have this in console window: +------------------------------------+ | | | ...
[8 replies] Last: Well, i actually did everything with _getch() and WriteConsoleCharacte... (by indigo)
by indigo
ReadConcoleOutput is unclear
 
Hello, I am trying to make something like console interface. All i want to do here is to copy a rectangle of console screen one line higher. cl.Y = 2; cl.X...
[2 replies] Last: Now i even understand why i got that result... Thanks. And double than... (by indigo)
Static issue
 
Hi, when I make my program it shows this error: error LNK2005: "public: static int CRocket::moja" (?moja@CRocket@@2HA) already defined in Rocket.obj Anyon...
[4 replies] Last: I've just found solution. I put line: int Rocket::moja=0; into .cp... (by mtweeman)
by syusuf
stl map class, compiler error
 
I am using the STL map class and I cannot get it to work. I get a compiler error. If Person is the first arg, I get compiler error. If it is string or any...
[2 replies] Last: Thank you.... Saleem (by syusuf)
May 2010 Pages: 12345... 22
  Archived months: [apr2010] [jun2010]

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