Beginners - April 2011 (Page 11)

Error Trying to Compile
 
I am brand new to programming,so I apologize in advance. I was given an assignment to put together a simple program using putty. I was able to do the first par...
[6 replies] Last: I know it's a joke, and I can understand the humor in it, completely, ... (by d14racer24)
by weaboo
String array to function for addition
 
I am working on a project that adds and multiplies two very large integers (up to 200 digits for addition and 100 digits for multiplication). I've been able to ...
[2 replies] Last: Thank you for helping, the code is running now. However the resulting ... (by weaboo)
Trouble with class composition
 
I'm trying to write a basic program that uses a point class and a vector class to perform basic vector algebra(add subtract, dot product and cross product). I'm...
[3 replies] Last: Thanks. You're right it should have been multiplication rather than ad... (by Nismoz3255)
Trying to pass an array of structures to a function
 
My problem is that i'm trying to make a function that uses information stored in an array of structures, but doesn't modify any of it. I'm getting errors sayin...
[12 replies] Last: err, wait i see now how it was still inside. Thanks again. (by pantsbandit)
rock, paper, scissors game
 
What am i doing wrong with my code? #include <iostream> using namespace std; #include <ctime> #include <cstdlib> char usersMove() { char user = '...
[12 replies] Last: I coded my own rock paper scissors game after reading this just for fu... (by TheNoobie)
Opinions?
 
I want opinions of this script I made in C++ like a month ago when I first started. Although I edited it and it's more efficient as it used to be. =P So what ...
[13 replies] Last: Actually in C++, it is required to have main return an int. (by firedraco)
problems with fstream
 
hello everybody, i've got an assignment at uni to make a program that echoes data from a file saved in a directory and then manipulates that data (multiplies a...
[2 replies] Last: thank you! (by closed account 98qGz8AR)
First C++ Project.
 
So, I just started learning C++ about three days ago. I'm using Sam's Teach Yourself C++ in 21 Days . It seems to be a good reference so far. I'm about to s...
[7 replies] Last: @GodPyro haha =P i said it was really quick. i actually expected mor... (by metl wolf)
getting data from an infile
 
For my C++ class i have to make this little program that gets its data from a text file, so all i've written so far is #include <iostream> #include <fstream>...
[11 replies] Last: @Framework Really? Do you have any links to the discussion thread? Wou... (by GodPyro)
by bayar
Unicode Characters
 
how can I read arabic characters from file? when i do that i get only one character ??? i think it uses only ASCII, so can anybody help me how to read Unicode...
[2 replies] Last: Of course it is possible. How the file is stored makes a difference. G... (by Duthomhas)
Having trouble with my output.
 
The text file this file is reading is as such... CS162;Finish Lab 2;09/26/2009 CS161;Finish Lab 3;09/26/2009 CS201;Finish Finals;05/23/2010 CS211;Take Qui...
[3 replies] Last: Oh, I use Dev-C++ compiler. It doesn't have a built in library to acce... (by Khaltazar)
character array question.
 
I have a program that uses character arrays, and it works fine, but i am concerned about a possible problem.. not sure what its called, but the C++ book im read...
[5 replies] Last: haha yeah.. i know this now =P i'm just not used to using charactors i... (by metl wolf)
Trouble validating input
 
I'm having trouble validating user input in the DISPLAY WELCOME MSG module of my program. I've read the thread on using the getline function, but while solving...
[3 replies] Last: i like using charactors for my user input, that way no matter what a u... (by metl wolf)
How to pass a pointer to an object to a function?
 
I'm writing a program for my class that has us creating a Fraction class and making some member functions and such for it. One of the requirements is that we ne...
[4 replies] Last: if you put your UpdateObject function before your main function (or be... (by metl wolf)
Array help
 
I need to add up all the pounds of food sold from this inFile. I cannot get the array right? Joe Ross 50 F George Goffer 32 P Force Stop 41 ...
[1 reply] : #include <iostream> #include <fstream> using namespace std; int main... (by Khaltazar)
Error: " undefined reference to......."
 
Hey guys, how to over come the error in the title?
[3 replies] Last: And to what is the undefined reference? EDIT: If you don't know how t... (by anonymous23323124)
oddity with charactor arrays..
 
when a user enters in a character for b , it gets assigned to a and c .. someone please explain why #include <iostream> #include <cstdio> #include <cs...
[10 replies] Last: Aren't compilers supposed to obey the standard!? Isn't that the whole ... (by anonymous23323124)
by opopop
Pointer initialization in a class constructor
 
Hi, Suppose I have the following class: class Closed_chain { public: private: int element; int* pt_element; } with constructor: Closed_chain(int eleme...
[2 replies] Last: @Khaltazar, I believe you wanted PtrElement = &Element; because othe... (by Zeillinger)
Mortgage Problem, Need help!
 
Hello, I am really struggling on this problem, we have the conditions: down pymt amount interest rate % 5,000 7.1 ...
[1 reply] : #include <iostream> using namespace std; main() { int HouseCost ... (by Khaltazar)
by dAND3h
Declaration of custom 'class' inside another class
 
Hey, I have made an Array class. I use this class like this: Array<DataType> myArray(5); ......So, I am creating an array of type DataType with an initial size...
[3 replies] Last: Hi, can someone please explain what zhuge means? (by dAND3h)
April 2011 Pages: 1... 910111213... 55
  Archived months: [mar2011] [may2011]

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