General C++ Programming - May 2008 (Page 5)

problem including STL list
 
I am using eclipse for C++ and powerpc-apple-darwin9-gcc-4.0.1 as my compiler. I am trying to compile a code example, butI am running into the following prob...
[1 reply] : here is the main program: // File: prg3_1.cpp // the program ... (by cronos4d)
char, loop, array?
 
I need help with figuring out this code! I will be forever grateful. Problem: I sell c++ for fools. I need to write a program that tells the user to enter a ...
[2 replies] Last: the code became completely scrambled when i entered it into the progra... (by urnotmyownerboy)
snake game s.o.s
 
i'm trying to make a snake game & i can't make the lenght of the snake increase & it's score & the fruit appears one time only & i have to press on the arrow al...
[2 replies] Last: here is the function #include<graphics.h> #include<conio.h> #inclu... (by soka2oo7)
Code Reuse From Another Project
 
Hello programmers, I am using Microsoft Visual C++ 2008. I am building a project which makes use of classes I built in previous projects. Instead of mak...
[5 replies] Last: Can you not just go to the Project menu and select Add existing Ite... (by closed account z05DSL3A)
memmov conflicts
 
Well people, I got this doubt when reading about the memmov function in href=http://www.cplusplus.com/reference/clibrary/cstring/memmove.html . The prototype ...
[2 replies] Last: Thanks for clearing up the misconception. (by jagatsastry)
Network Programing question
 
Hello I was curiouse about this subject so i found some useful information at http://beej.us/guide/bgnet/output/html/multipage/index.html . I found the code f...
[2 replies] Last: Thanks ... that is what i needed. I tried cin.ignore() and as it didn... (by graciano)
limiting input in console.
 
Hi. I am writing a mastermind console game. Everything is working except for the fact that I can not limit input. eg: cin << x0 << x1 << x2 << x3; // bl...
[1 reply] : While the syntax cin >> var1 >> var2 >> var3 ... is simple and elegant... (by jsmith)
by tortt
problem with classes in header files
 
hello? i have problem: #ifndef AC_H #define AC_H using namespace std; class Student { private: int sid; char sname ; public: void setSid(int s...
[1 reply] : It's difficult to say from this piece of code. You'll have to provide ... (by ropez)
by zoz
solving program
 
can someone help me in this program: write a program that prints the day number of the year given the date in the form month-day-year ex.if the input is 1-1...
[1 reply] : Start writing your code and ask specific C++ questions as they arise. ... (by Zaita)
by cancer
what I do in this program?
 
Write a C++ class including the code of the functions to maintain information about a Student. The class Student data members are ID, firstName, lastName, and d...
[1 reply] : What information do you want to know? (by Zaita)
Problem with rand()
 
I am writing a program that uses the rand() function to generate random numbers between 0 and 9. The problem is it is generating the same random numbers every t...
[3 replies] Last: Ooh thanks. I forgot to refresh the page to check whether someone had... (by mrmarky2)
by obai
just in time debugging error
 
Hello everybiody! I am using visual c++.Net 2003 for the first time . My programm reads a file using a read parser. I compiled the programm in debug mode...eve...
[3 replies] Last: I don't know. You'll have to read the simulator's documentation. Th... (by Duthomhas)
by polo87
input arguements
 
Hi,I am trying to take two input arguments (basically names of two files).I am concatenating each of them with their complete directory path and using the resut...
[6 replies] Last: char x ="C:/Dev-C++/Bin/"; char y ="C:/Dev-C++/Bin/"; I t... (by kempofighter)
linked list
 
i have this linked list which creates a list then displays it. it compiles but the append function is having problems, can ne1 c what im doing wrong.thanks ...
[4 replies] Last: Yes repez U r right, Sorry my mistake :-(. (by DiptenduDas)
Should too many virtual functions raise a red flag? (1,2)
 
I am designing a network backup simulator which during my initial design I defined an abstract base called 'datamover'. From this I derive several classes which...
[22 replies] Last: For those that are interested: There's a new discussion related to thi... (by ropez)
Auto showroom program
 
I want to make a program on auto dealers website.i want to know how to store all the customer under 1 variable.can u plz write part of the code fr me.
[1 reply] : As per Ur requirement... U need to have a container, which will keep t... (by DiptenduDas)
Overload = operator on custom class
 
Hi all, I've looked through £100's worth of text books and all the code I can find but I jsut can't work out how to be able to make a comparison between two cl...
[6 replies] Last: It sure does! Tried and tested. Thank you so much! (by gmorgs3)
Reading Brut float data from Memory
 
Hi, I need to do a resumé on Gentleman's algorithm and was wondering if there was a way to print a float as it actually is in memory (The Binary). Maybe po...
[1 reply] : Use a union to cast the float to integer values: typedef union {... (by Duthomhas)
by e2easy
ostream insertion operator, left to right?, or right to left?
 
Consider the following line of C++ ... std::cout<<myfna()<<myfnb(); ...but assume myfna(), and myfnb() causes side-effects, then it matters whether this l...
[3 replies] Last: It is defined: the standard says your results may vary. There are ve... (by Duthomhas)
Problems with overriding and template function
 
Hi all, I'm currently working on a C++ project for a 3rd year Physics course module. The project is a family tree, in which I have an abstract base class and t...
[10 replies] Last: Heh, sorry for the grief. You are tackling a lot at once. You can s... (by Duthomhas)
May 2008 Pages: 1... 345678
  Archived months: [apr2008] [jun2008]

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