Beginners - August 2011 (Page 36)

creating game images
 
Hello guys, I have been learning Allegro the past couple weeks and I was wondering how I would go about making realistic terrain and characters. So far I've...
[4 replies] Last: Wow, that looks like a great program. I'll play around with it when I... (by jeffsg605)
by Peyton
Class constructor syntax question
 
Hi, I had this constructor given to me. // Screen's constructor Screen::Screen(int_s height, int_s width, char bkground): _height(height),// initialises _h...
[1 reply] : http://www.cprogramming.com/tutorial/initialization-lists-c++.html (by hamsterman)
Accepting command-line arguments
 
I started doing command line arguments lesson at cprogramming.com/lesson14 And i understand what lesson want to say. But when i enter filename no text appear...
[4 replies] Last: yes and tnx @dangrr888 . this is a true code and send arg to main func... (by ahura24)
Ordering an Array - Help
 
Howzit guys, I'm currently trying to figure out how to output the stored integers in a given array of 10 elements in descending order. I have an array of ...
[8 replies] Last: This works but highly inefficient code..... I am also new..... #i... (by CPPAlien)
Can i ask sample codes for quick sort?
 
i already have build my code but i'm a bit stuck on the quick sort function. can anyone show me some sample codes?
[3 replies] Last: thanks guys.. ill follow your links, i have a question.. when using q... (by marklycris05)
Simple program giving me an error (source/header files)
 
Hey all, I'm trying to write a simple program involving a car class. I start a new Console Application and save my project as Car1. Then the screen with int ...
[9 replies] Last: There's a nice article written by Albatross about Dev C++, you can f... (by lnk2019)
Calc or Print returning '0.0'
 
I am less than a beginner in c++ and am taking a college course, an online course at that. The teacher is knowledgeable about c++, but I don't think he is so gr...
[2 replies] Last: Also don't use void main() . That isn't valid C++. (by Zhuge)
this->
 
void matrixType::setMatrix() { cin >> this->rowSize ; cin >> this->columnSize; } matrixType::matrixType() { matrixType(0, 0); } matrixType::matrixTyp...
[2 replies] Last: Are you really...? You just post some code? What do you want from us, ... (by Zhuge)
Matrix assignment operator
 
I am trying to overload the assignment operator. My code is to multiply, add, and multiply matrices, but as I am doing this step by step, I am not able to succe...
[6 replies] Last: I just finished rewriting and cleaning up the code, and everything wor... (by Stefanyco)
Using loop to create numbered folders (windows)
 
Hi, I'm trying to create a set of folders using a for loop. I am running into problems. I've tried searching (I would have assumed this would be a common thi...
[2 replies] Last: That worked perfectly, thanks :) Strangely there is an issue with my ... (by ballzac)
returning a value of variable's name
 
How to return a value of variable 's name as a string when I put a string likes variable 's name : int LIFE = 4; float MANA = 100; bool MARRIED = t...
[4 replies] Last: Thank 4 all,mapping value key and mapped key is the best ways to solve... (by prefix1990)
Need help with basic class stuff
 
I'm learning classes and think I sort of know what I'm doing after reading the tutorials on this site and running over some examples. I'm now trying to understa...
[1 reply] : Oh right, looking at it now I think I was just reading this wrong. ne... (by ausairman)
Write text in head file ?
 
I have file.txt with content: 1 2 3 4 2 4 5 9 and then, i want add some information into file.txt abc 89 1 2 3 4 2 4 5 9 => Please s...
[3 replies] Last: Oh, really? Thanks alot! :-) (by nhantn9)
by Sm0e
Basic Checkers AI
 
I am a relative beginner at C++. I make no claims that AI is easy- I know for a fact coding AI is hard. However, I would still like to try, so how would I go ab...
[7 replies] Last: Nay, tic tac toe is too simple for minimax. Connect four is better fo... (by jsmith)
matrix
 
never mind i got it lol im stupid
[1 reply] : follow the white rabbit (by quirkyusername)
Access violation reading... (1,2)
 
Hello, this is for my survival game again. Im trying to make it so that when right is pressed the player will move right and it will loop through his running...
[22 replies] Last: Okay everything is working fine now except when more then one key is d... (by nano511)
Can't figure out compile error
 
I am trying to write a program so it will be stored in a set of arrays that will be displayed, sorted, and processed. I need to declare three arrays, each of ...
[8 replies] Last: I've been working on this for awhile and i have the program compiling... (by dunkdaddy)
Hangman
 
These are the instructions. How do I include all of the requirements below. *My program is listed beneath the instructions. ________________________________...
[no replies]
by StrucK
greatest common divisor
 
given a fraction x/y for any x and y, does any one know a code to convert the fraction into its' simplest form?
[2 replies] Last: I suggest putting "greatest common divisor" into your google search ba... (by jsmith)
Keypress
 
Hey, I'm looking for a way to detect a keystroke and then set a boolean to true. How would I do this? I dont mean typing something then pressing enter, Just ...
[2 replies] Last: Thanks for the reply. I am trying to make a little keyboard program ... (by MrDuskling)
August 2011 Pages: 1... 343536373839
  Archived months: [jul2011] [sep2011]

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