Beginners - October 2009 (Page 5)

Virtual fuctions
 
okay im trying to make a sort of data base, i dont really need it to store the data permanently, rather just in memory for the time being.. so i thought that w...
[15 replies] Last: ok, you can store the address of derived classes with the help of poin... (by screw)
Division Function
 
Hello, I'm just learning to program in C++. I constructed a working multiplication function from a tutorial, and decided to make a division one, to see if I cou...
[2 replies] Last: so obviouse now too. Thanks for the help. (by pressence)
C++ cleaning string problem
 
I'm having trouble with cleaning a string from nonchars correctly. When the string contians for example "test&set" the function deletes the "&" and sticks both ...
[13 replies] Last: Appareantly it has trouble with the getline() 3rd parameter, wich is a... (by Nature1)
Program not running? Fatal Error stated on Visual STudio 2005
 
I'm using Visual Studio 2005, and after building the solution. An error comes up stating "fatal error C1010: unexpected end of file while looking for precompil...
[13 replies] Last: or would it be something like this? double *r; while... (by sl02ggp)
Visual C++ 6.0
 
Hi all, I am trying to implement few functions from a library, but for that I need to use the older version of the library, which had support for VC++ Versio...
[5 replies] Last: Also, What if there is a way of using the linux based PRL code and ... (by abhipro)
Battleship Game
 
Hi All! I'm in Programming I and out latest project is to make a one player battleship game out of a 5x5 array with 5 ships. The game will have hits, misses...
[4 replies] Last: It is a little late to start paying attention in class... // Use... (by Duthomhas)
by MYST
Calculator loop question
 
Hello guys! I wrote a calculator program a while ago - just curious as to how i could loop it with a while loop. Ive tried a few ways, but i keep getting ba...
[3 replies] Last: The point of indentation is to make structure more clear. Yours is all... (by helios)
making a wait in milliseconds function?
 
For my class I have to make the game snake. And I have the snake drawing with linked lists correctly and it all works pretty well except it draws everything wa...
[8 replies] Last: Erm...couldn't you just get rid of foo and use the value i from the fo... (by demosthenes2k8)
Function calling problem
 
I'm supposed to write a program that prints the bit offset of the first character of a line, followed by 16bits of data in two hex pairs then the ascii characte...
[2 replies] Last: Wow... I can't believe that. Thanks (by DamagePlan)
by glaza
where is the problem????
 
i get an error in the loops and the constructor when i run this program and it crashed for A_num>2..plz help me #include <stdio.h> #include <stdlib.h> #i...
[2 replies] Last: You can't do this: A=(train*)malloc(A_num*sizeof(train)); B=(tr... (by jsmith)
Vector as an argument
 
Hi, I am new to C++. I am required to write a program that reads in 3 vectors plus other arguments and do some math on them. This is how I want my command li...
[2 replies] Last: stripping the values 0.5, 0.8 etc out avoiding the "(" and ")" rather... (by Bazzy)
linkerror
 
hello please help me to compile this program this program has a link error how can i compile this http://www.persianupload.com/1069352 and i have 1 questio...
[2 replies] Last: hello can yuo help me to solve this link error please (by tah206207)
by Dodle
stdio.h vs iostream
 
Generally I have come across "hello world" tutorials that use the iostream library, but when I was talking about it with my brother who is a C++ programmer, he ...
[9 replies] Last: Thank you everyone, I understand much better now. I'm going to contin... (by Dodle)
by jukov
a example httpserver via python
 
I am webmaster, using Apache, IIS many, many of time. so sometime I aware they are not success in some target. I created a small httpserver via C++(linux ev) to...
[no replies]
Groups of characters within arrays
 
Hi there. I am trying to work out the coding for having an array with characters within the array. For example, if I declared a variable of type "int": in...
[5 replies] Last: Wow! Thanks so much. It worked. I've wanted to know how to do that str... (by JazzCat)
Variable problems
 
Ok so I'm making a program like the card game High-Low where you flip a card and then guess what card is next. well I have 2 arrays. card and cardValue. cardVal...
[5 replies] Last: The short version of what helios said (no jab at you intended, helios,... (by jRaskell)
by nrose
how to keep track of how many characters are output
 
my program is supposed to only output 10 characters per line and i got that but i also need it to keep track of how many were output so the next input i give it...
[4 replies] Last: thanks that helps a bit i will work with that to see if i can get it (by nrose)
#include<filestream> problems reading file
 
#include <iostream> #include <iomanip> #include <cassert> #include <fstream> #include <string> using namespace std; int main () { ifstream inFi...
[1 reply] : Use std::getline() to get information into std::strings: http://www... (by firedraco)
Void Function problem
 
Trying to use two void functions to display average of three test scores. Any help would be appreciated. Thanks #include <iostream> #include <iomanip> us...
[2 replies] Last: What did your final program look like, just curious?? (by smalldog21)
by sparky
How do I add the 2 digits of a number?
 
Hi, how do I add the 2 diggits of a number? For example: int num = 15; sscanf(num, "%1d%1d", &n1, &n2); // do i have to convert this num to a char? c...
[2 replies] Last: Thank you very much demosthenes2k8. It worked. (by sparky)
October 2009 Pages: 1... 34567... 25
  Archived months: [sep2009] [nov2009]

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