Beginners - August 2010 (Page 3)

Classes intermediate exercises
 
Okay so I`m not new to programming, I used PASCAL in school (waste of time i know), I`ve learned c++ on my own for the past 5 months or so, I know the basic stu...
[3 replies] Last: Any more ideas ? Anyone ? :D (by olly2204)
by BSCS1D
what is hte source of magic square in c++
 
can you give me example or site..plzz... ASAP guyz... thanks..
[1 reply] : The source code at it's highest level is algebra or, just, maths. htt... (by Kyon)
by BSCS1D
how to use c++
 
guyz.. can help as soon as possiblE?.. can you give me a guide to how to use a c++ and command.. plz becoz.. i`s very need to my subject.. thankz,!
[10 replies] Last: her iz da source about mgik sqare in c+ HAI CAN HAS STDIO? I HAS... (by Bazzy)
by khris
absolute beginner in C++
 
Hi everyone! Well, as you can tell by the title, I am an absolute beginner in C++. I'm currently enrolled in a data structures class at my university and will...
[10 replies] Last: khris (7) Link to this post Aug 30, 2010 at 12:56am hasanzan, I... (by Chazzmundo)
by khris
errors when using std::cout
 
Hey guys, I just typed out a program and was having a bit of a problem. This is a simple program that asks for a name and then types "hello, " plus the name.. ...
[3 replies] Last: Including the <string> header lets you use the std::string class, peri... (by helios)
tiny little bug
 
Here is my newly improved combat code, however the loop continues its dual round 1x Player Swing & 1x Monster swing, in the event the monsters HP falls to 0 or ...
[no replies]
Problem with if else statements.
 
ive been reading a book with C++ tutorials and the nested if else's they show are not working in my combat algorithm. Could someone please help me clean it up s...
[9 replies] Last: You don't have to use a 'for' loop. Look at the link that I posted it ... (by ccdwiu)
array: pass by reference
 
hi, im having trouble tryng to pass my array into a function. so here is the deal. i made an array of let say unsigned char. but i dont know the size of the...
[2 replies] Last: In the second code you aren't changing the value of array (the directi... (by ne555)
problems with source/header files
 
Okay, so I have a source file, rangedRandom.cpp, that holds two functions for getting random numbers within supplied ranges. I have two other source files t...
[6 replies] Last: Oh! I should have done more than skimmed that article. Changing the #i... (by pabloist)
Сreate a file
 
Hello. How to create a file on a given path? So it would ask its name and path.
[4 replies] Last: Thank you for your help. (by chipset)
Function like kbhit()
 
Hi guys, I need a function like kbhit. i.e function which gets a input from keyboard, but doesn't wait. kbhit() : when user press a key give 1 other ...
[4 replies] Last: That, or... while (true) { if (kbhit()) { char... (by m4ster r0shi)
Do we really need Get/Set methods to access class members?
 
Hi guys, Do we really need Get/Set methods to access class members from outside the class? When do you access the class fields directly and when do you access ...
[6 replies] Last: that makes more sense and i dont need to all that redundant typing lol... (by L E G I O N)
by tirwit
ifstream and getline
 
Hi! Why can't I use a getline in a ifstream, if it is a inherited member from istream, according to: http://www.cplusplus.com/reference/iostream/ifstream/...
[8 replies] Last: Also line 57 should probably be Hlist.Write(); as Hlist is not a poi... (by Galik)
Really simple function to calc scores doesn't work
 
I made this very simple function to calculate the points each team had gotten after the user inputted the scores. However when I let him show the points it says...
[2 replies] Last: Oh, so stupid of me :S Thanks hamster! (by xander333)
by dyla
which loop??
 
i'm a new member. hope anyone could answer my question. i'm taking basic progrmmg course for my first semester of first year. here is my question of my 2nd assg...
[1 reply] : Any of them. It's the way you use it that matters. You'll probably nee... (by LB)
vector::iterator = int high;
 
How come I cant say, when i have for example this vector iterator; int high = 3; vector<TEAM>::iterator = high it says: C:\Documents and Settings\X...
[2 replies] Last: Oh thanks! (by xander333)
SFML sf::Sprite error
 
Hi all, I'm trying to display an image on the screen with SFML (using Dev-C++). An error occurs when I try to declare a sprite with sf::Sprite. This is my ...
[2 replies] Last: I asked about it in the SFML forum and my problem was solved, I missed... (by programmer47)
accept integer only from user input
 
hello. how can i tell my program to accept only integers? we're making a program about linked list, we have 7 options. when i tried to enter a character (to ...
[2 replies] Last: If input is only 1 digit you can take it as a char: char option;... (by Disch)
child class accessing parent class
 
Hi all, I've got a class called human: class human { public: int height; human(){} ~human(){} }; and a child class called peter...
[14 replies] Last: ok, I'm going to read an oo tutorial. I'm really a beginner at c++, so... (by Yours3lf)
Invalid input check ( obscure exercise )
 
Hi, guys. I am new to c++ and I have a problem understanding what I should do exactly considering this problem. Below it is my code. A set of examination mar...
[4 replies] Last: Thanks for your reply but I did not find a need to use a boolean varia... (by lifeisshortmove)
August 2010 Pages: 12345... 28
  Archived months: [jul2010] [sep2010]

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