Beginners - April 2014 (Page 42)

Completly stuck on a project
 
This HW project has me stuck. I can probably write the code but can't figure out how to put it together. If someone could show me a shell that would work I woul...
[8 replies] Last: overall there were several solutions found most looked something like ... (by musicman74)
Explain this code to me?
 
So upon researching online for code I came across one that works great, but I don't understand completely. I just want to understand what is happening throughou...
[6 replies] Last: Thank you all for the comments and explanations! You've helped to clea... (by sierranm)
Help with private/public variables
 
Not sure what to do with this. Says the variable "Rocket" does not refer to a value. I'm pretty lost right now any help would be appreciated. #include <io...
[3 replies] Last: Nevermind, thats all I needed! Thanks for the help I appreciate it. (by MrMalarky)
Remove number from array
 
I have a code that chooses 5 numbers out of 10. How do I make it so that when I input something it removes that digit in the array? #include <iostream> #...
[1 reply] : Whoa! That's a lot of unnecessary (and some nonstandard and/or depreca... (by long double main)
by SVcpp
'Forbids comparison between pointer and integer
 
Hello, I'm very new to C++ I'm taking it for school and I'm coming from a Python background (still a beginner in that as well), I need help with the following ...
[2 replies] Last: I'm trying to confirm the information the user enters is alphabetical.... (by SVcpp)
HELP! - Rounding decimals
 
Hi, I am polishing up on my C++ and getting frustrated with this problem, would appreciate some help. I need to enter a value eg 2.13 and return a rounded v...
[3 replies] Last: Took me some time to play around with the codes and finally got it to ... (by larry88)
5 string Band Resister
 
My program MUST allow the user to enter 3 colors and my OUTPUT of your program MUST be the resistor value and tolerance Ex:538 x 10-2= 5.38 Ohms +/- 2% this...
[no replies]
Run Time with my overloading the = operator
 
I keep on getting a run time error at the end of my program. I was able to pinpoint the problem down to a single function test7(). If anyone could help me figur...
[2 replies] Last: Your right, I didn't realize I forgot to do that. Thanks (by stiches)
by angelk
istringstream float
 
Hello everyone, I have to take it from a text file to a string, the string in question is a float number. If you do it this way: getline (fin, line); istrin...
[9 replies] Last: can you tell me how I can do. Eg 310456.8 me back 310 457 Then late... (by kbw)
Homework Help Please! :)
 
Can someone take a look and give me some guidance? I am close but not sure how to handle this error. It compiles but crashes when executed. This weeks assign...
[7 replies] Last: @giblit Yeah, good work! I guess that further reinforces the idea tha... (by TheIdeasMan)
Minor Help w/ Debug
 
Hello guys, I'm writing a program for my beginner c++ class, and need a little help (big surprise, I know). Now, I'm only 2 functions in of the 6 assigne...
[9 replies] Last: iterate over each row then in each row iterate over each column for th... (by giblit)
trying to extract type double from a file
 
I'm trying to get doubles from a file its for a more extensive homework, but my method isn't working, any suggestions? edit: The reason why I say it isnt worki...
[1 reply] : Hi, Your problem is with line 5 and your variable next . Because you... (by TheIdeasMan)
Random Math question
 
Im making a program that asks a math question, how do i make it so that the person who answers only gets 5 seconds? #include <iostream> #include <unistd....
[1 reply] : I see you have access to the conio library, so this question might hel... (by Smac89)
by Cienjz
how to display a moving object
 
i have a question. Iwant to ask how to cout or display something that has been displayed and change it without cout it again. And the value go to and change tha...
[17 replies] Last: But how? With SetConsoleCursorPosition (assuming you're on Windows)... (by Disch)
SDL Problem
 
I cannot seem to get SDL_Flip() to work properly. Here is some skeleton code to try and explain the problem. BlitSurface(newSurface); //First I blit the sur...
[no replies]
putting a character string into a linked list
 
Hi guys, I'm trying to get my program to accept a string of characters as input and store each character as an item on a linked list (which i'm very new to). ...
[no replies]
I need guidance
 
Ok guys I need serious help I have done C++ on my own and now, after I failed to qualify in code jam(shameful>~<), I decide to start over again So....can you ...
[1 reply] : Failing a code jam isn't shameful. Most jams are 2 or 3 days long and ... (by BHX)
character collision
 
so in allegro 5 i make by character 34x34 pixels. the reason was that my tiles are all 32x32 so i wanted to have a 1 pixel box around the character to test for ...
[1 reply] : ok. i got it. haha when i redrew the character with the 34x34 in photo... (by Antone333)
by afdh
Abstract class type
 
Hi, I have a abstract base class polygon and want to write a pure virtual function to translate my polygon, however I cannot write 'virtual polygon translate(...
[no replies]
Pseudo random number generators
 
Where can I find some information on Pseudo random number generators other than rand()? I need a way to generate random numbers with some being more likely ...
[1 reply] : http://www.cplusplus.com/reference/random/ (by keskiverto)
April 2014 Pages: 1... 4041424344... 67
  Archived months: [mar2014] [may2014]

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