Beginners - October 2008 (Page 12)

pointers array compile error
 
I have this program with multiple files. I am getting a compile error that says in intMain too few arguments to function showArray. I am at a loss as to how t...
[3 replies] Last: Put header protection on your header files. #ifndef FILENAME_H ... (by firedraco)
transfer money
 
I'm a beginner on learning C++ have given a assignment for designing the transfer money to account can anyone tell me how to use array and pointers in this s...
[3 replies] Last: Just to help shorten the code even more, why don't you try some 'for' ... (by ja23jr)
compiler error
 
What does this compiler error mean? error: expected constructor, destructor, or type conversion before '&' token /***************************************...
[4 replies] Last: It is a pointer to a function to call on the node. (Note that your ... (by jsmith)
by gd566
Random numbers
 
I am wrote a fuction to randomly generate stats for a computer opponent. My problem is that srand(time(0)) does not generate new numbers fast enough. I need 5-8...
[8 replies] Last: gd566 that won't work. You need to call srand() exactly ONCE in you... (by jsmith)
by gAaRa
Problems using cin.getline() after using cin>>
 
#include<conio.h> #include<iostream.h> class customer { char city ; char state ; char name ; char email ; char address ; public : voi...
[7 replies] Last: Thanks a lot duos. It worked. All i needed to do was to add the parant... (by gAaRa)
by Ruddo
Typical Ranges of Data Types
 
Hi all...first post! I'm reading C++: A Beginner's Guide by Herb Schildt and so far it seems a very good book. However, I'm wondering whether there is an err...
[6 replies] Last: The default for char is unsigned.| Not according to *my* copy of th... (by exception)
My Multiplication Table wont show Up
 
Earlier i was having some problems with a project that it marked me "error" & it wouldnt show me the multiplication table but now it lets me run the program, bu...
[1 reply] : Can I see the code please? :) (by bluezor)
Error Not Showing The Multiplication Table
 
Im doing a project and it has to show the multiplication table of the number i type in. when i push to run the program it pops up "ERROR Tablaz cpp:19-Call of n...
[1 reply] : Post your code, I'm guessing you mistyped something and so on line 19 ... (by jpeg)
Better Structure and problems
 
#include <iostream> #include <conio.h> #include <cstdlib> #include <time.h> #include <string> #include <windows.h> #include <stdlib.h> using namespace s...
[9 replies] Last: Read my edit... Now I did see something strange: The first hit, wit... (by HeatMan)
Interested in begging RPG design
 
Hello, I am interested in beginning Game design, RPGs in particular. I would just like a nudge in the right direction. I would like to know were I could ...
[13 replies] Last: A good base knowledge of programing is a good place to start out side ... (by Tripic)
Determine if a number is prime
 
Hi, I am taking a class in computer programming (it just started so I don't know much). I need to write a function bool function that determines if a number ...
[2 replies] Last: oh... that makes sense. thanks (by Spaced Out)
vector sort objects
 
hi... i need to sort a vector by particular class member variable... how do i do that? class Example{ private: string name; ... ...
[1 reply] : It takes a little while to be able to read the docs perfectly: http:/... (by Duthomhas)
im always asking this kind of question to my classm8
 
is possible to connect visual basic to visual c++? .....or is there such way to link to each other ..
[6 replies] Last: tnx mate (by takemewithyou)
why is this not returning a grid numbered 1 -9?
 
I'm currently trying my hand at a simple tic tac toe program with a simple AI that doesn't act based on branch logic. I've setup the grid and for some reason I ...
[2 replies] Last: oh yeah... workd perfec' now. thanks a bunch (by o0OpsyphiO0o)
Pointer error, a error window always pops up
 
I have a testing program, there is always a error about the pointer, but I can't figure it out: #include <iostream> using namespace std; int main() { ...
[2 replies] Last: By doing p1=p1+ <insert number here>;, you are changing the pointe... (by nrc1982)
Perfect Numbers till n numbers!!!
 
Well, a perfect no. is a no. whose sum of its divisor except the no. itself is the given number (Eg. 6=1+2+3)(Eg.28=1+2+4+7+14) I know the logic of finding p...
[3 replies] Last: Filter out the primes before the test for perfection. I'll leave you ... (by QWERTYman)
Finding the sum of n odd numbers
 
Hi I'm new to C++. I need help finding the sum of n odd numbers.Can any one help. I keep getting the incorrect answer. Here is my code: //CD //Program which...
[13 replies] Last: Also, you'll find that (through high school geometry [go Euclid {I am ... (by QWERTYman)
by thea
how can i put another switch on a switch??
 
hm.. guys.. i really don't know how to do it.. i already have my source code..#include<iostream.h> #inlude <conio.h> int amount,bill,change,quantity,choice,a,...
[4 replies] Last: i see #include <iostream.h> & cout !? Whats wrong with that?... (by Umz)
Problems with pi equation...
 
I am working on an assignment that is due in a couple days although my program is not acting as I expected it to and I was hoping someone here could help me. He...
[7 replies] Last: Thanks a lot for the responses, here is what I have it as currently: ... (by bazanaka)
Visual Studio Compileing
 
I am using Microsoft's Visual Studio 2008 Express Edition and trying to compile simple .cpp programs on their command prompt window. There are no mistakes in my...
[2 replies] Last: Neither of those seem to be the case...is it possible that that file d... (by Smittens888)
October 2008 Pages: 1... 1011121314... 20
  Archived months: [sep2008] [nov2008]

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