Beginners - November 2013 (Page 52)

Help with code
 
I'm new to this and trying to learn so can someone point me in the right direction without giving the answer away? What should I look up? How can I optimize the...
[6 replies] Last: Thanks everyone ! Got it down to 6 lines with the correct answer. (by Tryptah)
trouble with a while loop
 
Write your question here. Write a menu driven program that uses Do While loops to evaluate the following polynomials. Display the results in a table. Include...
[no replies]
Is my class bypassing my do/while loop?
 
My program for homework is nearly completed. However, my input validation which is inside the class member getData (rational.getData) is not breaking when its s...
[no replies]
Array Trouble
 
Hello everyone I'm working on a homework assignment where I'm adding adding Employees to a database and then printing out their paychecks. My question is that I...
[2 replies] Last: I've changed the parameters but it looks like the same error still com... (by elMalifico)
passingg struct by reference help
 
keep getting an error by doing it this way, what am i doing wrong? #include <iostream> #include <fstream> using namespace std; #include <cstring> #i...
[8 replies] Last: Thanks! (by robozzz)
summing program not working
 
Greetings, I'm attempting to figure out why I believe my summing program is running fifty bajillion times over as the sum I get in my outfile.dat is a huge n...
[5 replies] Last: figure out what was wrong infile.dat was misspelled. Silly me thank yo... (by billconfused)
integer which displays primes
 
(C++) hi, hope someone can help. I was hoping somone can give me an example of how to write a program that prompts the user to enter an integer which then displ...
[1 reply] : Well, you can run a for-loop from 2 to the square-root of the number r... (by sherre02)
Input/Output problems and question
 
Hello guys, I've been trying for hours to make this program where it will create a txt file called secret.txt and whatever you write in the console it will prin...
[1 reply] : In your for-loop, you are treating 'encode' as an array. To pick out e... (by sherre02)
Class code error
 
Hello, We have just started learning about classes and objects in my course and on one of the homeworks there is a small question that reads "This class defi...
[2 replies] Last: Think about how you would create a new object of type human in main. (by sherre02)
by Avi24
If Statement containing math
 
Can an if statement contain a math function? For example: cout << endl << "Utilities: " << "$ "<< user.utilities << endl; if (x > y) { cout << "...
[9 replies] Last: I think I am going to bang my head repeatedly. I figured out what I w... (by Avi24)
Evauluating an expression
 
Hello guys, first post here from a Computer Science Major! The current problem I'm having is a I have a program that evaluates arithmetic equations by taking an...
[1 reply] : Right at the top in your comment section, you state that you designed ... (by sherre02)
by hilft
Overloaded operators Help!
 
Hi, I am going through this chapter about overloaded operators and I can't understand the output of the code below, or rather I should say the code is so compli...
[no replies]
std::bad_alloc exception at large arrays
 
Hi community, I encounter a problem with the allocation of large arrays. If I allocate an array of almost 2GB memory an bad_alloc exception is thrown. What is...
[3 replies] Last: Thank you JLBorges! That's exactly what I search for. I just learned a... (by heunigreenfreak)
Trouble with One Dimensional Parallel Arrays and Strings
 
Hello, first time poster here so please bear with me. I've been up and down the internet, trying to figure out how to figure out this problem. Yes, it is a home...
[13 replies] Last: As it would seem, another user, Shadow Fiend, posted some hep to anoth... (by Ramadonis)
Function error
 
I will try to trim my code short. I am completely frustrated and can't seem to fix my code. I been trying to solve this problem for 2 hours but I can't seem t...
[2 replies] Last: Thank you so much! It finally works! (by GriffinReborn)
swap function in array
 
How do you find the swap function in this array ? #include <iostream> #include <string> using namespace std; int main () { int x,y; cout << "En...
[1 reply] : I see no array. The function std::swap() is found in the algorithm... (by Catfish5)
"==" operator error help
 
The error is: error: no match for âoperator==â in â((University*)this)->University::departments.std::vector<_Tp, _Alloc>::operator [with _Tp = department, _...
[2 replies] Last: thanks, I forgot the .something after the . no idea how i missed it. ... (by toshbar)
In OpenGL how can I hide part of a shape?
 
And slowly reveal it?
[9 replies] Last: Thanks (by gamemaker96)
Working with headers.
 
So we are getting into setting up header files in class and our first project is to make a game that uses three files, the header, the main, and the other funct...
[2 replies] Last: Holy shit I'm so dumb. (by KrazyKaiser)
dll inside lib
 
Hey, I've created a lib project which uses functionality of an external .dll file. If I use the resulting .lib in another project, I always get "unresolved e...
[4 replies] Last: Thank you very much! I'm using libs instead of dll now and it's worki... (by Registred)
November 2013 Pages: 1... 5051525354... 80
  Archived months: [oct2013] [dec2013]

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