Beginners - April 2011 (Page 17)

I need help with one simple operator
 
Ok i am a programmer in Lua for some game sites; and in Lua nil means something isn't defined correctly; therefor it doesn't exist <-- In other words Nil means ...
[5 replies] Last: Actually NULL is defined 0 in C++. In C it is defined as void refe... (by userulluipeste)
Switch Statement confusion...
 
I am trying to use a switch statement inside of a boolean funciton. What it is supposed to check is if variable score is between two numbers in each case, a...
[7 replies] Last: Well. I do know I am supposed to pass istream into the function as a r... (by DivinFalcon)
by lare26
Possible problem with compiler setup
 
I am using the latest version of Code::Blocks. I tried compiling a program which i am just starting to develop the engine for. When I tried to compile it to "sp...
[2 replies] Last: Tejashs is the hero of the hour! Thanks Tejashs. :o) (by lare26)
Using a function before declaring it
 
Hi everyone, I'm a Java developer wanting to learn some C++. Now in Java you can call a method when you want, also before its declaration. Normally you can't do...
[3 replies] Last: In C++ functions must be declared before they used. I'm sure there are... (by Null)
How to use fstream reading the information
 
For example Jason 500 Paul 349 David 400 should i use 2 dimensional array to read those data? could you provide some codes / hints to deal with the p...
[1 reply] : The types values are different (string and int) so you can't use a 2d ... (by hamsterman)
by Nohbdy
Simple random small map generator.(Not simple to me x.x)
 
// I want to make a project for myself, so my goal is to create a small 16 x 16 grid-field of characters to represent the map to move around in. Let's say for n...
[1 reply] : What you want is very similar with the problem of counting islands. Th... (by userulluipeste)
Detecting executing processor.
 
Hello, I'm using OpenMP to have parts of my program run in parallel, but considering I'm still learning, I'd like to create some diagnostics first. Basically...
[no replies]
c++ Number guessing game
 
#include <iostream> #include <string> #include <ctime> #include <iomanip> #include <cstdlib> #include <cctype> #include <ctime> #include <conio.h> us...
[3 replies] Last: Zeillinger : yes xander333 : Setting environment for using Microso... (by randipro)
by kelso
C++ Avalanche
 
OK, basically i have an assigment due in on the 6th of may, and i chose to make an avalanche game for it in C++, using microsoft visual studio 2010, with the SD...
[9 replies] Last: Sorry, kelso! I had no easy way for myself. I guess you'll have to sta... (by userulluipeste)
Quick help!
 
Hi, i have just finished a program but i'm stuck as how to add a function of how to reset the high scores list. (n for no, y for yes) (the program is a game sho...
[15 replies] Last: sure. i will in a bit cuz i g2 run for a little bit. thx (by airguitarman94)
Digit combinations
 
Hi, I decided to learn C++ not too long ago, but I've hit a stump in a practice question that I have no idea how to solve. The problem is: Given a collection ...
[2 replies] Last: I forgot to mention that I'd rather not use arrays or functions at all... (by closed account 4Gv4jE8b)
Drunk walker
 
hello everyone, I had problem also with my drunk walker program, it compile ok but the result is wrong . will any one help me with that cause i must submit it n...
[3 replies] Last: thank you very much (by luay20032003)
Structures
 
Hi everyone, im a new user to the forum, so please bear with me if the way i'm doing this is wrong. So here it goes: I've started my master thesis and now...
[3 replies] Last: toxicate20 wrote : Damn its so hard to explain what i dont under... (by lnk2019)
FREE xbox live 2 month plz help
 
Anyone that can give me the code to get my program to compile and work ill give u a xbox live 2 month.thanks guys its due tom so if anyone could give me the cod...
[1 reply] : lol.. 1. When you post code, put it in [co de][/co de] tags, to mak... (by hamsterman)
How to set AI's ships in random positions for battleship game
 
Hi, so far iv been able to create an 2d array, and I also have a random number generator. I think I have been able to place a ship of 1 length by using my rando...
[1 reply] : First choose the size and orientation of the ship by defining variable... (by hamsterman)
Install Dev C++ on Win 7 64-bit
 
I'm trying to install Dev C++ on Win 7 64-bit. Have been looking at the below video on youtube but some of those file paths (libexec etc.) that are in this s...
[6 replies] Last: Thanks for all this. I will see what fits and when I find the right... (by meridius10)
error c2664
 
#include <iostream> #include <string> #include <fstream> #include <iomanip> using namespace std; void GetScores(string firstNames , string lastNam...
[4 replies] Last: Doesn't seem like you meant to pass arrays since you are using single ... (by Zeillinger)
Help making a multidemensional array.
 
Hi all. I'm trying to make a simple array to hold a "hand" of cards. There are six cards, so I need the first row of the array to hold the number on the card,...
[1 reply] : i should be going to 6, not 2. The last four values are garbage from t... (by Albatross)
by IvanLi
urgent, need help on iterator
 
hi guys, i got a task which needs to change words with a series of rules 1. if that word contain 'ea', get rid of 'a' 2. if that word longer than 3 charac...
[4 replies] Last: Really? Can someone knock me out before I do something radical? @.@ T... (by Albatross)
by TimL
Running into console output problem
 
I am creating a class definition file for one of my final projects for the semester, and Visual Studio is complaining about my cout and endl identifiers being u...
[2 replies] Last: I think I solved my problem. I had forgotten to put a ; at the end of ... (by TimL)
April 2011 Pages: 1... 1516171819... 55
  Archived months: [mar2011] [may2011]

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