Beginners - May 2008 (Page 4)

by kaeota
[Linker Error] undefined reference to -- answered
 
Hi folks! I'm starting my assignment for c++ after working on java, and have a little problem that I can't seem to get rid of. When ever i try to compile my ...
[2 replies] Last: Thanks for the advice! Turns out it was the static *smacks head in... (by kaeota)
abstract class, pure virtual function prob
 
I'm having trouble understanding what they are asking for here. My class is pretty much over, but I'd still like to take a shot at it. I don't think the textboo...
[3 replies] Last: Thanks for the responses! I have a feeling this forum is going to be... (by paddy159)
by BabaG
c++ - last two problems with app (i think)
 
this post describes my project: http://www.cplusplus.com/forum/beginner/2058/ i've got most of the project completed now and need help on the (hopefully...
[no replies]
by doraid
magic square
 
please help me to solve this home work Write c++ program that prompts the user to enter numaric values for a 4X 4 array. the program will display the fllowi...
[2 replies] Last: You have also duplicated the post in multiple forums. Please Delete t... (by Faldrax)
by DonGro
Compile a "mutiple-source-files" program
 
I need to compile and link a program with a header file (.h) and two source code files (.cpp). ( I need to do this from scratch. The .cpp files have not yet b...
[6 replies] Last: It's for things you want included that are not headers or source files... (by Faldrax)
possible to use conditional in subscripts?
 
Hi, I'm trying to get something like this to work: //vector V V[ if(x) I-1; else J; ] V [ if(y) K-1; else L; ] Only it throws errors at every...
[3 replies] Last: Just doing my Bat-Duty. Keep up the good work, citizen. ;-) (by Duthomhas)
Accessing a map by index.
 
I want to swap random elements of a map, but I don't seem to be able to access a map other than by key. It doesn't matter which elements are swapped, as long a...
[17 replies] Last: Question 1: You can insert items into a map and remove them without i... (by jsmith)
by spychu
Transfering fail from FTP connection
 
Hi I need to make an application witch get some file from a ftp server. Now i can log in, I seting up a directory but when i send a query for a RETR some_...
[no replies]
Trouble in file opening
 
Hello All, I've been trying for to make a program in MS Visual C++ that will open a preexisting file in binary mode, and read a value from it. The project co...
[6 replies] Last: You confuse me, your solution above (about use of .cstr()) does not s... (by guestgulkan)
SOUNDEX PROJECT
 
write ac++ program which represents asoundex index system . your system acts as the following : *reads string from afile "name.txt" .each string less than 16 c...
[3 replies] Last: Heh, well, since we're posting answers anyway, why not cheat with some... (by Duthomhas)
char pointer
 
Hi all, I have a doubt, may be it sounds foolish.. in main function the second argument is pointer to a char array. (char *argv or char ** argv). ...
[1 reply] : That's because you changed the element type. The array must be an arra... (by Duthomhas)
C++ prob w/ functions other than Main...
 
My friend told there's a way to write string manipulation functions without using strings or arrays, then toyed with me by sending this: /* +--------------...
[7 replies] Last: You want to stop recursing if back is '\n', but you recurse indefini... (by Duthomhas)
is this a pointer?
 
Hi everyone, I was reading the tutorials about classes (I) and I happen to have found this argument CExample::CExample (const CExample& rv) { a=rv.a; b=r...
[3 replies] Last: The example you have found is a Copy Constuctor. It is used to copy o... (by Faldrax)
database program
 
hi, I'm trying to create a program which takes a list of items and stores them in a database and alerts the user when a certain item in the database has been th...
[3 replies] Last: You can get the current time (from the PC) using the ctime standard li... (by Faldrax)
Struct Check No. Of Even, Odd And Sum up all the Digits N Conversion To Binary
 
I can't seem to output the binary part it only come out 1 bits.. Thanks in Advance for help.. #include <iostream> #include <cstdlib> #include <ctime> #i...
[1 reply] : char mapping (int n) { if (n == 1) return '1'; else... (by metals99)
using random numbers
 
Here are two functions I am using in a program: int roll(int low, int high) { int range = high - low + 1; srand(time(0)); int result; result = r...
[2 replies] Last: Only use srand () once at the beginning of your program. Different ps... (by Duthomhas)
quick question
 
What do I need to #include in order to use the following? getch();
[2 replies] Last: thanks. I was looking at a program that used it but it had a lot of #i... (by icemanfan)
Drawing
 
I know in Qbasic there is a way to draw circles and pixels on the screen. I don't remember exactly how, but writing Circle (centerx, centery, radius) would draw...
[1 reply] : If you want to keep it really simple and stupid, you can google around... (by Duthomhas)
by sky
value-returning function
 
The problem is;"getting lots of and cannot convet errors" If you did not pass a module no busary. If you did pass 1 or 2 moduls and is registerd for at le...
[1 reply] : Ok, not sure if the typo's are when you are pasting the code or not.. ... (by Faldrax)
Bug in connect 4 program
 
Hey there.I've just recently gotten into C++, and I've been teaching myself using a couple of books. I thought I was doing alright, but I've spent the past two ...
[4 replies] Last: Thanks so much! This helps a lot. I'll clean up my code tonight and I'... (by NeilShah)
May 2008 Pages: 123456... 12
  Archived months: [apr2008] [jun2008]

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