Beginners - July 2014 (Page 8)

Ending a while loop
I wrote a really basic game that makes the user guess a number between 1 and 100 to practice using loops (just started learning them), but when the correct numb...
Jul 26, 2014 at 6:52pm
[5 replies] Last: Break tells your program to break out of the loop. You have indeed d... (by Codermik)
game console
Guys where can I find some exercises or project for mini console game In c++.. I cant create programs because I could not think any concept Or can you just giv...
Jul 26, 2014 at 6:07pm
[2 replies] Last: Try this link, has some good ideas: http://www.cplusplus.com/forum/... (by Codermik)
What is wrong???
What is wring with the code over here and how do I fix it. I am a beginner and I use Code::Blocks #include <iostream> using namespace std; int m...
Jul 26, 2014 at 5:05pm
[3 replies] Last: b needs to be a string. Also, I recommend using getline(cin, b); for... (by closed account j1CpDjzh)
C++ compilers
I'm not sure this is the best place to ask such a question, but what are your favorite compilers and what would you recommend for newbie’s?
Jul 26, 2014 at 5:03pm
[5 replies] Last: Xcode if you're on a Mac. As for Windows, Code blocks works just fine.... (by closed account j1CpDjzh)
How to overload two operators at once?
Hi. I'm trying to build a php style associative array class just for sport where it's basically a linked list So I overload the operator to be used for inde...
Jul 26, 2014 at 4:02pm
[1 reply] : Let operator return a reference to the string value instead of a copy... (by Peter87)
dereference operator with pointers
why the type of a pointer and object wich the pointer points must match ? i understand what my book is trying to explain me but i have some doubt... if the...
Jul 26, 2014 at 3:21pm
[1 reply] : So you are asking why we can't do something like this: int value; fl... (by Peter87)
Issue with pointers in a state machine
Hello All! I am currently trying to make a state machine based on the one on http://lazyfoo.net/articles/article06/index.php and I would like some help. ...
Jul 26, 2014 at 2:11pm
[1 reply] : Note that the state pointer is passed by value to the function so the ... (by Peter87)
Building house using OpenGL funtion
I am making this house in OpenGL but it's giving me error or main must return int. I've checked again and again and have no clue about the problem. I am compili...
Jul 26, 2014 at 1:07pm
[2 replies] Last: try use int main() for void main() return 0 n see if ... (by closed account SECMoG1T)
Problem writing data to file, fstream
hey guys, FIRST POST! Sorry had to, anywho. I'm having a problem with my programming homework. I have to have the user input some numbers and save them to a fil...
Jul 26, 2014 at 12:19pm
[3 replies] Last: I agree with discofire , it seems you are just opening and closing the... (by closed account SECMoG1T)
Trying to understand the continue
I have it working like it is supposed to except if it comes across the numeric char then it halts. Is this what is supposed to happen or is there something I ca...
Jul 26, 2014 at 12:00pm
[6 replies] Last: Problem here is you will end up with 3 unnecessary cin statements w... (by Codermik)
Wrong results while using pointers
Write your question here. # include <iostream.h> void square(int&,int&); void cube(int&,int&); int main() { int a=3; int b=4; void (*ptr) (int&,int&); pt...
Jul 26, 2014 at 11:44am
[2 replies] Last: Was just studying pointers so tried it,i know calling the function dir... (by daksh717)
question about sizeof(varible)
hi guys :) i have tow several question about size of varibles 1- is int's size takes rageter's size 2- is pointer's size the same size such int 3- is int64...
Jul 26, 2014 at 11:21am
[4 replies] Last: thank you so much :) (by DragonForce99)
by vxk
Writing the body of the container class
What does it mean when the question says : All storage management data structure should only use buffer memory and no additional member variables must be u...
Jul 26, 2014 at 10:45am
[2 replies] Last: Might want to check this thread out. http://www.cplusplus.com/forum/... (by JohnMorris)
The (.) dot and The (->) arrow operator.
Hello, can someone explain the difference between the dot and the arrow operator? when i see it used i see functions and alot of confusing stuff since i have n...
Jul 26, 2014 at 10:18am
[9 replies] Last: Both are used to access member(vaiables and functions) of structure... (by closed account SECMoG1T)
by SirEgo
Won't compile. (Using separate files)
I'm trying to learn how to use different files. But this doesn't work. The only message i get is: C:\Users\SirEgo\Downloads\Game\Thecompanygame.o:Thecompany...
Jul 26, 2014 at 7:03am
[3 replies] Last: Make sure you have all files in the same project . (by Peter87)
by vxk
Macro problem
Can anybody explain why and how is y is being evaluated twice in the following code? #define MAX(a, b) ((a) < (b) ? (b) : (a)) int x = 5, y = 10; int ...
Jul 26, 2014 at 6:51am
[3 replies] Last: Oh. Alright. (by helios)
Win32 App not running in window but in console
I've created a windows application in c++ through platinum SDK. When i run this app, it'll run in command prompt Now, i want to run it from windows so i managed...
Jul 26, 2014 at 4:22am
[6 replies] Last: Thanks again I already did coded as exact as you stated above. And i j... (by rselvan)
Handle Boolean type input
If i need to check user input of the boolean type input, what is the method to handle it, for other data type i know that infinite loop can be use, but boolean ...
Jul 26, 2014 at 4:22am
[9 replies] Last: Yes, with caveats. Google around boolalpha facets for more. (by Duthomhas)
Programming Principles and practice using c++ "std_lib_facilities"
Hello i am reading the book Programming Principles and Practice Using C++, By Bjarne Stroustrup The Creator Of C++. He wants me to use a custom header file so i...
Jul 26, 2014 at 12:08am
[14 replies] Last: @BHX That is what I figured and it was probably wrong to say that was ... (by admkrk)
Sequential read/write
Hi all, Im working on a program and I am somewhat stuck on one of the functions. I am trying to read in bank accounts and perform operations on them. I want t...
Jul 26, 2014 at 12:05am
[4 replies] Last: oh, Madam. I feel like Michael scott from the office lol https://www.y... (by DriveRaider)
July 2014 Pages: 1... 678910... 43
  Archived months: [jun2014] [aug2014]

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