Beginners - April 2014 (Page 59)

by zdzero
Trouble declaring new object
 
I have a pretty simple class class Car { public: /* * default constructor */ Car(); /* * constructor */ Car(int nr, char *model, c...
[3 replies] Last: Generally, unless you really need efficiency, and can prove that effic... (by TwilightSpectre)
Rendering Sprites by order of screen position.
 
I'm currently having a great time creating a 2D overhead Zelda esq game using C++ and Allegro 5. However my game is more of a Beyond Oasis perspective then a...
[2 replies] Last: Just a bit more detail on @rmxhaha's response: You said you have a ba... (by TwilightSpectre)
Error C3861, Passing string to function
 
I've tried to debug this, watched several youTube videos on the subject, but I still am stumped by why this code is failing me. I've bolded the actual line t...
[4 replies] Last: as it results, it was an issue that the header and the prototype were ... (by incongruentbalance)
Functions
 
I am doing this phone number program for my C++ class and not sure what I am doing wrong but something with my variables is off i have been at this for about 2 ...
[2 replies] Last: In line 105: phoneNumber is a String and toDigit returns a char Edit: ... (by Luk3)
for loops, while loops, do-while loops
 
would someone be able to help me write this program? I am studying for a test tomorrow and this is one of the sample programs we have to know how to write. than...
[1 reply] : Nope your homework is yours to do (by rmxhaha)
for looping and if
 
Hi! I'm new to this forum and I would like to ask some help. I am having a problem with this program: #include <iostream> using namespace std; int main() { ...
[5 replies] Last: I've made few fixes. The comment on your code is to make it easy to se... (by bufige)
by nvrmnd
SFML Keyboard event handling without RenderWindow
 
I'm currently doing basic event handling in the console using SFML. The problem with my code below is when i pressed either one of UP,DOWN,R,L It executes t...
[3 replies] Last: many tnx @ iHutch105 , it worked !!, tnx also @ CodeGazer , i didn't k... (by nvrmnd)
I want to create a Rogue-like, but...
 
I am wondering where I should start? I know a little bit of C++ but it has been a while, probably a year, so I need to refresh my memory. I have a few questions...
[1 reply] : http://www.cplusplus.com/forum/beginner/52245/ http://www.kathekonta.c... (by Smac89)
Template error
 
Hey guys I am getting an error I don't understand when I compile this code. This what I get in my error window. Any suggestions? Thanks in advance. 1>------...
[6 replies] Last: Try changing your for loop to num < 3 rather than num <= 3 , otherw... (by TwilightSpectre)
NOT ABLE TO ENTER STRING DATA
 
Write your question here. How come I am not able to enter a string into s or t? #include <cstdio> #include <iostream> #include <cstring> using namesp...
[2 replies] Last: Thank you. I should know better. (by phztfte1)
Bubble Sort & Elapsed Time
 
The premise is to run BubbleSort with a small array size of 10, a medium size of 1000, and a large size of 10,000, and to see how long it took, in milliseconds ...
[17 replies] Last: I figured it out. Thank you. I will incorporate the gist of this test ... (by sportstool)
Error Check
 
This is a function to validate a zipcode in this format #####-####. I'm having trouble Making Check == True without all the hard coded information at the bottom...
[2 replies] Last: Cool, got it to work. thank you. (by richard9lives)
Calculating grade statistics - char array to int array
 
For our last assignment of the year our prof asked us to complete a program which calculates various statistics drawn from a text file. The text file contains 7...
[2 replies] Last: Alas, I'm quite speechless. I was absolutely sure I had tried that. An... (by Referendum)
clearing the screen
 
Alright well I was wondering how one might clear the console screen in a program without using system("CLS") because I hear it is bad to use for alot of reason,...
[8 replies] Last: There's a bit of an anti-console for games bias on this site, but all ... (by Duthomhas)
Visual Studio LNK2005 Error help D:
 
I just downloaded Visual Studio 2013, its my first time to use this compiler, but I just wanted to test this compiler for first time and I got an error. can yo...
[4 replies] Last: thanks that's what i wanted to read :D. (by closed account ivDwAqkS)
pointer-to-object type?
 
Wrote my code and got a squiggly line, and not sure what it means. I've underlined where the error is referenced in the code. It's line 37. Error Message: "Ex...
[7 replies] Last: Cool. Thank you for your help and explanations! (by sierranm)
Tic Tac Toe - passing variables -
 
My error is happening on line 78 under the , it says identifier is undefined. I'm watching tutorial videos to get me through it and I have it set up the same w...
[3 replies] Last: Delete the semicolon after bool moveIsValid(int m) . (by long double main)
TXT File Array C++
 
Need Help With This Project I recieved in school. I am having a tough time understanding how to complete this project Any help is appreciated. Thank You for you...
[no replies]
Moving (centering) the console window
 
Hi everyone. So I've been working on a small personal project, and I'm currently trying to have the console window open up where I want (in this case, centered ...
[8 replies] Last: I understand what you mean, thank you for the reply. In this particula... (by Annatar)
For while loop
 
how would I write a for loop to print all the multiples of 5 from 25 up to and including the value of the integer variable limit. and how do i make it exit the ...
[4 replies] Last: The limit is unspecified in the question. I assumed that the limit may... (by booradley60)
April 2014 Pages: 1... 5758596061... 67
  Archived months: [mar2014] [may2014]

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