General C++ Programming - November 2008 (Page 4)

linker problem (duplicate symbol)
 
eg, i have two c++ files, each contains 2 functions and two functions from each files share the same function name "abc" //first.cpp void abc(void){ .. ....
[4 replies] Last: Alternatively, I think you could use an anonymous namespace. I know t... (by seymore15074)
Ignore paths???
 
Hi there! Have come across a somewhat unusual(?) problem regarding include paths. Hopefully some of you guys have a way to get around it. Here it is: In a p...
[3 replies] Last: Then the only solution I see here is #ifdef WINDOWS #include <...... (by helios)
input validation
 
hey, i want to make a yes or no question, if (yn=='Y' || yn=='y') goto sem; else if (yn=='N' || yn=='n') { cout<<"Thanks" <<endl; } else if(yn!= ...
[9 replies] Last: thanks for your suggest.. anyway i finish it using .lenght hehehe th... (by devaeron)
by fme
& symbol and const datatype
 
hello eveyone. 1) i am working in stack program and i know that if i say x=&y; that means the address of y was assigned to x. but i am not understa...
[2 replies] Last: thaaaaaaaaanks (by fme)
question about std::sort()?
 
I wrote a class and defined some variables in my program.Then I want to put them to a vector(std::vector<myclass> v1) and sort them with the std::sort(). When ...
[6 replies] Last: Test file is google's codejam 1A: scalar production! small test is ... (by toptony)
by sharik
how do i change the internal h-e-l-p file language in Borland/Turbo C++ 3.x
 
hi, first time on this forum :) excited... love programing :) or as i call it "creating". anyway, i installed Borland C++ 3.1 (you know, dos version / b...
[3 replies] Last: You're kidding, right? You're comparing compiled C++ to interpreted... (by helios)
by chiku
Converting C++ code to C
 
Hello, I want to convert C++ code (which has Inheritance, Templates, Namespace, virtual function etc.) to C Is there any good document, which describes the b...
[3 replies] Last: Yeah...I'm definitely for choice 2 here...don't try reinventing C++... (by firedraco)
Errounous output
 
The program I have listed below is for a very simple Encryption and Decryption. When it access's the file and encrypts it, it not only changes the file info, b...
[1 reply] : At line 25 i suggest a string rather that a char array... (by Bazzy)
need a way to dynamically write files with sequentially incremented names
 
ok, first, my apologies for the long title, short decriptions were always one of my weak points. it took some trimming to get the title short enough to work. ...
[17 replies] Last: ok, i found a glitch with the basic (single .cpp file) version of the ... (by anseloth)
by yukiti
[API]what is the most didactic for beginning?
 
I want to start to work with any API. What suggest for me?
[2 replies] Last: if you are choosing any API, I second zaita, go with the win32 API. h... (by Mal Reynolds)
A problem about function definition
 
please solve it for me ,expert: class CSourceLine { public: CSourceLine( unsigned int lineNr ) : m_lineNr( lineNr ) { ........ ; ...
[3 replies] Last: The reason for the initialization list being preferred over assignment... (by seymore15074)
by Sathed
Crazy errors!
 
I am getting the following errors: driver.cpp:3: error: expected unqualified-id before "using" driver.cpp:3: error: expected `,' or `;' before "using" d...
[3 replies] Last: In the ComplexNumber.h file, have you correctly terminated the co... (by guestgulkan)
infile size
 
I am trying to read a file into an array. The amount of data in the file is unknow. Is there a line code for infile length? I need the program to look at the...
[4 replies] Last: Try seekg() and tellg() http://www.cplusplus.com/doc/tutorial/fil... (by Bazzy)
Linking with given .a?
 
I have a homework project and was given a .a file to link with my executable to include a testing class in the program. Basically, in main.cpp, I include "p...
[2 replies] Last: If I do g++ main.cpp poly.cc ( class implementation file) polyTeste... (by cdietschrun)
by jmdaru
connecting two machines
 
I have the code for a tic tac toe game and want to write code so the program can be executed on two machines connected locally by ethernet. I have no idea how t...
[1 reply] : You'll have to learn some networking. If you only intend for this to b... (by mahlerfive)
why won't this work!??!?
 
This program allows the user to input 9 month, days, and years then displays them in chronological order. I am getting the following error in my code: "Run-...
[13 replies] Last: date = convertdays(month, day, year); You need to read up on fun... (by helios)
by andel
i need to write this program
 
2. Create a class called Invoice that a hardware store might use to represent an invoice for an item sold at the store. The Invoice class should include four da...
[1 reply] : http://www.cplusplus.com/forum/articles/1295/ (by Zaita)
I Need a program: give it the birth date, and give you the day were you born
 
Hello I Need a program you give it the birth date and give you the day were you born Who can help me?
[2 replies] Last: I do it #include <iostream.h> #include <time.h> #inc... (by ramishama)
by m13
socket program
 
closed
[2 replies] Last: If this is a professional endeavor, you've jumped-in over your head. Y... (by Duthomhas)
how to compile .c to .exe
 
I have some Pro*c code which i have converted to .c file. Now i need to convert this to an .exe. could anyone tell me (1) which compiler i can use. (2) the st...
[1 reply] : (1) You can use any C++ compiler but I suggest you using an IDE http:... (by Bazzy)
November 2008 Pages: 123456... 11
  Archived months: [oct2008] [dec2008]

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