Beginners - October 2011 (Page 2)

Link List
 
Dear all I am new to Link List please give some idea about below program. Sample Run: 1- Enter student information 2- Search student by ID 3- Search stude...
[2 replies] Last: Dear Thanks very much for helping me in Link list. (by Muhammad Arshad)
Reading Fractions
 
I'm trying to write a program that can do fractional arithmetic. I need to be able to input complex functions to do this. My goal is to be able to input somethi...
[6 replies] Last: Theres 2 chapters in bjarne stroustrups book "Programming principles a... (by vlad61)
reading from a 4 column .txt file
 
i have a .txt file that im reading from that looks like this::: H 80 6 S M 15 0 D E 30 2 S M 23 7 D S 54 3 S O 72 2 D H 85 0 S O 54 9 S disregardin...
[4 replies] Last: Well, that's not right. In my example I wrote "cin", where I meant "in... (by hamsterman)
by gh24
Help With Vector Conversion
 
Hi Guys, I have a variable of the form vector<double> with unknown size. I need convert this into the form of X1, X2, X3,...,Xn where Xn is the double ...
[11 replies] Last: I do need comma separated values That's just initializing the array... (by ultifinitus)
by Dwigt
Please help me understand why I'm doing this inheritance problem wrong.
 
Hello! Please help me understand the concept of inheritance. Actually, I'm not even sure inheritance is what I'm trying to do here. Let me explain: Suppose I ha...
[8 replies] Last: No, they are not. Do your random determination separately and then mak... (by ciphermagi)
help with classes
 
ok all i need help here, im trying to figure out in this code, in main, where it says it is going to display employee information, it to go from main, to the cl...
[1 reply] : Well it looks like your constructor creates new objects, which in turn... (by ultifinitus)
Loading Text File
 
I have a game and when I try to load the saved txt file it only loads the string variables and nothing else. Any help would be appreciated and if you need to se...
[no replies]
by fafner
making a command prompt
 
I'm trying to write a simple interpreter for a made up language, and I want to implement a command-prompt, like the one you would find in octave/matlab, R, or P...
[1 reply] : You need to flush stdout. There should be details on the reference sec... (by kev82)
Help Please?
 
will someone help me find what is wrong? this is my program /* // A-1-1-01 ...
[2 replies] Last: customerNumber++) { ... (by andywassup)
Problem with functions. specifically calling a function from within a function.
 
I am having trouble with a program that uses a function to get 5 numbers, then a function to find the lowest number and another function to average the four low...
[6 replies] Last: Thanks Lynnabelle:) (by Tony365)
fix errors with classes and question about syntax for main
 
ok, im trying to figure out here how to call two classes in main, and i need help correcting the errors. the point here in main is to get it to call the employe...
[no replies]
second attempt at class problem
 
ok here is the code and then the errors.....just dont see how to fix these errors /* christopher bruce payroll class header file */ #include <st...
[3 replies] Last: ok figured it out/....thanks (by seawolfmoose)
in_stream strings
 
Hello all, I'm trying to learn the basics of C++. I've been working on a project that is suppose to prompt the user to either enter numbers into an array an...
[1 reply] : please forgive me, if anyone was wondering what was happening with thi... (by btrautm2)
how are these functions different?
 
void f1(int & k) { k = k + 1;} void f2(int * k) { (*k) = (*k) + 1; } void f3(int * & k) { (*k) = (*k) + 1; } They all do the same thing. From compil...
[no replies]
Loops doesn't work correctly!!
 
Hey guys, im new to the C language and i have a problem with loops. I need to calculate the cost of buying carpets to n houses, every house consists of n rooms...
[no replies]
Two-Dimensional Char Array
 
Hello, I am having a problem writing this program. I'm supposed to make a two-dimensional array of characters to hold the five student names. Like so: ...
[13 replies] Last: Bingo. You're making good progress. Let us know if you need any more h... (by mzimmers)
Array/pointer help.
 
I'm trying to write a program for my class but I have been hitting a wall. I have a function that takes in a const char* as an parameter, and i'm trying to p...
[3 replies] Last: my problem is that my program skips any user entry for name. I think ... (by keineahnung)
class function help
 
Why wont this work class hello { public: void guy(); }; void hello::guy() { } int main() { hello.guy() return 0; } when i type hello. guy() vera...
[2 replies] Last: Because you did not create an object from the class Try this class h... (by strongdrink)
Linked List Problem
 
Hello all, I'm trying to implement a linked list and enter data respectively. I've written a quite simple code for this. In the codes, I defined a struct (the ...
[3 replies] Last: Actually, data 1 element past the end of the array. name only has el... (by andywestken)
October 2011 Pages: 1234... 59
  Archived months: [sep2011] [nov2011]

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