Beginners - May 2013 (Page 61)

Program won't compile with structures
My program wont compile and its giving me a lot weird errors. The program is supposed to take occupations and salaries from an input file and sort them. then it...
May 3, 2013 at 4:45am
[3 replies] Last: The lines in your posted code don't seem to match those in the compile... (by TheIdeasMan)
Utter Newbie Needs Help =)
Hello everyone! I'm totally new to C++, my only experience with programming being 13 years ago in highschool when I wrote some Pascal and QBasic stuff. I...
May 3, 2013 at 3:35am
[12 replies] Last: I meant the number for the insult I know what switches are and whoops ... (by giblit)
String subscript out of range?
Hello, I am a beginner at C++ and I decided to make a translator-type of program that basically takes any message in english and outputs that phrase in binary. ...
May 3, 2013 at 2:53am
[1 reply] : // you can access the individual characters of a string using string_... (by Chervil)
Declaring and Implementing
Declare and Implement a Default Constructor for class Date Declare and Implement a Copy Constructor for class Date Declare and Implement an overloaded equalit...
May 3, 2013 at 2:13am
[3 replies] Last: Was there a question there somewhere? Please be specific about what yo... (by Daleth)
by lmsmi1
Best form for object data?
I have some OBJ files to import into my freeGLUT program. The game is like minecraft, so simple pixelated-like textures are a must. I'm trying to get as close t...
May 3, 2013 at 2:02am
[no replies]
by giblit
Problem with changing character via multiplying
Why is it that everything works with characters except multiplication (well multiplication works if you divide first...but that's not what I want) here is the ...
May 3, 2013 at 1:30am
[3 replies] Last: I guess I can try and make an object that will contain all of the unic... (by giblit)
Cout Bus Error
I do not contain my entire code, because of privacy reasons and personal requests. Problem on "cout << "unsignedssd intsdsd: << endl;" Bus Error. I changed rand...
May 3, 2013 at 12:57am
[no replies]
by stdeez
LinkedList/operator overload problem?
operator overload function (written for class point2d) const point2d& point2d::operator =(const point2d& p2){ if (this != &p2) { ...
May 3, 2013 at 12:02am
[no replies]
Did I do this correctly?
Modify the following code to: Declare class A to be a friend of class B. Declare function double compute(A& data) to be a friend of class A. class A {...
May 2, 2013 at 11:30pm
[2 replies] Last: friend double compute (A& data) so this is the correct format? for ... (by njabbour)
Output of Code
Does anyone know what the output of this code is? #include <iostream> using namespace std; class Cat { public: virtual void speak() { cout << "m...
May 2, 2013 at 11:20pm
[8 replies] Last: Modify the following code to: Declare class A to be a friend of class... (by njabbour)
Passing Values
Hi, does anyone know how i can pass the values that have been entered in the the arrayEntry() function back to main? thanks, royal1664 #include <i...
May 2, 2013 at 10:47pm
[1 reply] : Never mind, just worked it out lol it's return nArray ; cheers!... (by royal1664)
by paxap
C++ for loop help
I'm trying to get a for loop that prompts for grades 1-5, but for some reason it starts at grade #6 and I can't for the life of me figure out why. for(c...
May 2, 2013 at 10:24pm
[7 replies] Last: My mistake. Updated. Thanks for correcting me! (by closed account DEUX92yv)
need explanation
Can someone explain why the two functions act differently? From my point of view they are the same but give different outputs. Thanks #include <iostrea...
May 2, 2013 at 8:45pm
[8 replies] Last: Sorry about that :) (by Bourgond Aries)
Help with strings and functions
I need help using a function to determine the first and last names shown in alphabetical order so far this is all I got. #include <iostream> #include <stri...
May 2, 2013 at 8:43pm
[1 reply] : You should try the "sort" function declared in the algorithm header. D... (by Bourgond Aries)
Help with functions
this is a code to see if the number entered is an armstrong or not for example 371 is armstrong because 3^3+7^3+1^3=371 (the cubic summation==the number) m...
May 2, 2013 at 8:20pm
[2 replies] Last: thankss man.. !!! (by elmoro15)
pointer and Class help
These are the class specifications Class Name: IntVector Public Attributes: NONE Private Attributes: Pointer to the storage ...
May 2, 2013 at 8:16pm
[2 replies] Last: Probably seems neat because the class definition might have been provi... (by Daleth)
Need Help
Hey I'm just starting to understand C++. I'm doing a problem for my class and I can't finish the problem I'm drawing a complete blank. It's probably something v...
May 2, 2013 at 7:56pm
[2 replies] Last: It worked!! :D Thanks so much. I knew it was a easy problem lol xD (by gamestoper15)
Writing a Three Function Program with String Array -- Crashing
This is my third attempt rewriting it in hoping to avoid whatever's making the code crash. My book doesn't have any similar problems to base this off of, but I'...
May 2, 2013 at 7:33pm
[7 replies] Last: I have no idea why I changed that... how weird/silly of me. Thank you ... (by macsheeh)
Input and Output file
Please help me.. My professor doesn't let me declare row, col and total_number_per_line as a constant. I spent almost 4 hours to figure out how to do it but i ...
May 2, 2013 at 6:46pm
[5 replies] Last: You either supply the value by assignment, as you currently are, witho... (by jlb)
by gladi
passing an array to the func.
Hi guys, I have probelm for passing the two arrays which Questions & answers to FindFriend() function. I cannot pass it throw line 49. Can you please help ou...
May 2, 2013 at 6:30pm
[1 reply] : This is the error pop up Error 1 error LNK2019: unresolved external ... (by gladi)
May 2013 Pages: 1... 5960616263... 66
  Archived months: [apr2013] [jun2013]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.