Beginners - March 2008 (Page 2)

Char array and floats
 
Here is my problem, I need to make a char array with 20 spots called Name, in the code below I have done this, but its not working correctly and I cant get my c...
[2 replies] Last: This is how I fixed the decimal problem: #include <iostream> #inc... (by jonasja)
by nizbit
user input to multi-dimentional array
 
I just want the user to input values into a 2x2 array. At runtime my program will let me input infinitely. I don't know what I'm doing wrong but I figure eith...
[2 replies] Last: Thanks! (by nizbit)
Basic string problem
 
Hello Cplusplus members, I've been wanting to learn some C++ for a long time now. So I've came across this site while googling. To make this fast and short I...
[1 reply] : I've found the problem. I type "end" with a 1 witch in the tutori... (by Justlearning)
Operator overloading
 
Hi, I'm almost a newbie to C++. I have a problem that i can't figure out. Hope you can help. I have a class A and i define the operator + for this class, li...
[7 replies] Last: class Complex { public: Complex( double = 0.0, double = 0.0 ... (by lyecheey)
% for double
 
does anyone know a way to use the % for the double varible
[2 replies] Last: Maybe this is what you need: http://cplusplus.com/reference/clibrary/... (by ropez)
Inventory Class problems
 
For this program, I have to create an Inventory class with the private member variables itemNumber, quantity, cost, and totalCost. I have to have public functi...
[no replies]
files with user defined names.
 
hey all need some help. :) I have already learned how to create a file, and enter data in the file. And also to READ all the contents (thanks to this site) **...
[4 replies] Last: oh well i forgot to post this before.. im having trouble getting to re... (by Sydykov)
by udit
Question about linked list
 
Hi, I try to make a Linked List in C (not ++). My problem is that any entity in my list in different. for example, my list is a shapes list: Circle -> Rec...
[1 reply] : You may want to look at a ‘generic linked list’, this is a linked ... (by closed account z05DSL3A)
by kb2tfa
Is Visual C 2008, a dot net?
 
If someone could shed some light on this for me it would be great. I tool basic c/c++ classes about 8 yrs ago, and I want to get back into it. However the...
[1 reply] : Basically Visual Studio generates a lot of files in the project struct... (by closed account z05DSL3A)
this is so easy i can't do it
 
This is embarrassing but how do i make a phrase like I'm happy for example repeat x number of times? I guess spring break ruined my brain. this is my first seme...
[2 replies] Last: thnx (by residenteagle)
by morino
value of the variables
 
will like to knw the value of the variables at the end this code int a=23.34
[1 reply] : Should be 23, why don't you try it? (by ropez)
by cva
String^ str;??????
 
String^ str;...what does the ^ means...is it same as pointer?
[1 reply] : ^ is from C++/cli (.net); it is a handle to an object located on the m... (by closed account z05DSL3A)
by sansei
Read numeric datafile one line at a time
 
Hello All, I am trying to write a program about weather report.The program will read numeric data from a file and store it in 1 array of 4 objects. Each line b...
[no replies]
i need to write a program to cal the gpa this is how far i have reached
 
# include <iostream> using namespace std; int main () { char name ; int comp ; int maths ; int comm ; float gpa ; ...
[1 reply] : # include <iostream> using namespace std; int main () { char name... (by gregv21)
Flush Stream
 
Hello everybody, I´m reading a text file with words, and something strange happens. Suppose that I´m reading the following words (this words are in the tex...
[3 replies] Last: I don't know if I understand the problem. After calling getline(), lis... (by ropez)
by sladeb
noob with problems
 
i have to have a homework project in by Wed. at midnight. the instructions state: define an array PeopleTypes that can store a maximum of 50 interger values tha...
[8 replies] Last: I'm asumming you are using a version of Visual Studio from the c1010 e... (by closed account z05DSL3A)
program that uses loops. need help
 
I have an assignment that requires me to use loops to find a person's salary. the assignment is as follows: *************************************************...
[1 reply] : Output instructions Input the number of days and validate Calcul... (by closed account z05DSL3A)
What's wrong with my loop?
 
I need a user to enter two numbers. Then the output needs to show the square and cube of those number. If the numbers are spread apart, 1 and 3 for example, t...
[2 replies] Last: Thanks grey wolf. That makes sense. (by oatmeal1201)
cannot instantiate abstract class
 
Hi Everyone, When I try to compile a project, I get these errors: ------ Build started: Project: game, Configuration: Debug Win32 ------ Compiling... ...
[1 reply] : You better post the code segment to see it how it is written. In si... (by satm2008)
Alternative option to getline
 
Hi. I'm trying to read words from a .txt file in the following format: wordA wordB wordC and so on. What I would like to do is to count the words that a...
[2 replies] Last: Thanks!, I already did it, I used the getline that is in the stream cl... (by karma4561)
March 2008 Pages: 1234... 15
  Archived months: [feb2008] [apr2008]

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