Beginners - July 2013 (Page 29)

SFML and Code::Blocks
 
I've run into a small, but annoying problem with SFML and Code::Blocks. When I'm coding, Code::Blocks refuses to show various SFML functions and variables while...
[1 reply] : Well I don't know how CB's auto complete is done, but when it is your ... (by BHX)
how to set a char?
 
The following is wrong,but why is it wrong? what's the correct way to set a char? char a; a = "Hello World";
[9 replies] Last: I know now. thanks for your explaination. (by CharChen)
Enhancing Class Time
 
Why am I getting these errors? 1>------ Build started: Project: Enhancing class time, Configuration: Debug Win32 ------ 1> Ex09_07.cpp 1>..\Ex09_07.cpp(3)...
[1 reply] : Do you have a "Time.h" file? I don't see it in your post. (by rafae11)
#include <fstream>
 
Write your question here. Is it possible to store into a text file without overwriting the existing information? ofstream outf; int x; int main () ...
[3 replies] Last: Thanks guys, the 'app' worked but 'ate' didnt (by nutty craze)
'this' pointer
 
I dont really understand the 'this' pointer. You need it to initialize its data members, but yet its optional for using it in the member functions, and appar...
[3 replies] Last: Oh ok. It seems easier to do this. Never heard of initialisation li... (by metulburr)
Classes
 
I don't really get when or why to use classes, to me it just seems like, bear in mind though that I am a beginner, you can accomplish the same things as you can...
[5 replies] Last: http://www.learncpp.com/cpp-tutorial/84-access-functions-and-encapsula... (by rafae11)
trouble with mulplication
 
I am doing another recursive function - actually have the code working - but one of my required test sets is throwing an error??? The actual result should fit a...
[7 replies] Last: I thank you, vlad. I did not know this function. (by ar2007)
by pata
while cin loop works every other try.
 
I wrote a small game when bored, it takes user input every other try which is the issue. This happened after I changed my players symbol to a happy face using c...
[2 replies] Last: Nothing I just wanted you to play my game... JK, I dont know, I restar... (by pata)
by nasser
monopoly game
 
well i can't explain a code now it's not complete but what is the wrong with struct player lin32 #include<iostream> #include<ctime> #include<string> us...
[7 replies] Last: @DTS line 33 i agree (by Paoletti301)
by limit
Srand() isn't helping me with the Random Number Gen
 
Hi, So, I'm pretty new to C++ and I'm trying to make a simple command line game, if you will, that lets you add a pair of random numbers anywhere from 1-1000...
[2 replies] Last: Geez, that's a little embarrassing... Thanks, really helped. (by limit)
How to state a method in a class
 
I read the tutorial about class . The example code is class CRectangle { int width, height; public: CRectangle (int,int); int area () {re...
[6 replies] Last: Thank you guys for your selfless help. *smile* (by CharChen)
SFML Tutorials?
 
Since I'm a beginner with SFML, I think this fits here. In my last thread, Disch suggested I grab SFML and start poking around at it to begin programming small...
[18 replies] Last: ( You can get free pygame book here: http://inventwithpython.com/pygam... (by tntxtnt)
Basic OpenGL Question.
 
What do I put in the Paramaters for the function glUseProgram? My friend directed e toward a tutorial online for learning OpenGL, but this error always occurs, ...
[2 replies] Last: I did it to test to see if it worked properly, I planned on deleting i... (by Johnny111111111)
Original Game Idea (Simon Says Maths)
 
Hey, i'm fairly new to programming but I haven't seen this one before, i'm just posting for some constructive criticism, any ideas for things to add or things ...
[2 replies] Last: Thanks for the advice and I hadn't even noticed that i'd put 2 differe... (by Lostsoulparty)
by nmn
array error
 
Hi this array assignment gives the error of "lvalue required as left operand of assignment". Can someone explain to me why ? and how it can be resolved ? T...
[1 reply] : Show the definition of IntArray::operator - it sounds like it retur... (by Cubbi)
Countdown Program. Suggest any improvements?
 
Hey guys! I am getting my hands dirty in C++. I decided to write a code that counts down. The program then asks the user to input a time. The program takes in...
[3 replies] Last: Note that the setfill manipulator is sticky so you could write this: ... (by andywestken)
Strings and stdio
 
so im using cstdio library (instead of iostream) i am trying to input the line entered like "Hello world" #include <cstdio> #include <string> ... ...
[5 replies] Last: alright! thanks for all the quick help (: UPDATE: i feel like i shoul... (by ProjectPaatt)
Arrays in Classes
 
I am starting to learn classes, but Can not seem to get an array to work in my class. (18):error C2059: syntax error : '{' (18):error C2334: unexpected t...
[5 replies] Last: Thank you. I got it to work. (by Im Wired In)
compiling program in windows
 
In linux the command i have been using to compile and run via g++: g++ -std=c++11 "%f" -o "%e" &&"./%e" but im trying to compile the same in a win7 virtual ...
[1 reply] : g++ is available for windows as well. As long as you have g++ install... (by Disch)
Function calling
 
I have a function called void SDL_Movie (int argc, char** args ) { To call it I said SDL_Movie(int argc, char** args); I get the errors expected ...
[8 replies] Last: I already gave you the way to call the function. If you still do not r... (by Smac89)
July 2013 Pages: 1... 2728293031... 53
  Archived months: [jun2013] [aug2013]

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