Beginners - March 2012 (Page 27)

Even or odd
 
How to write a program in which a number is accepted from the user and displays if the number is even or odd ?
[6 replies] Last: An easier way is to read the binary if you are looking for a super fas... (by Blessman11)
Problem with getline (special)
 
I got some problem with getline command. I try to search online, and i get to know should add a "cin.ignore()" before next getline if using cin and getline tog...
[10 replies] Last: Ah, I missed that. If you want to know more about c-strings and why th... (by Duthomhas)
Switch?
 
I'm writing a program that the student inputs his grade and it outputs what grade they got! I'm ussing a switch statment;however, i dont know how to code 90-100...
[8 replies] Last: Yeah, that should work. You'd want to have a default case too, though... (by MrHutch)
source code
 
how to make a source code?
[4 replies] Last: This looks familiar... (by ResidentBiscuit)
by cdf
why is this?
 
I just found out something unnusual: I have a constructor that sets a name and allocates memory for a number of objects of another class - If I write: st...
[2 replies] Last: ^^ use the code tags(Bottom right corner "<>") to edit your post with ... (by Need4Sleep)
by ibnu
how to draw line at qt using data from c++
 
I want to use qt to draw a line. I store length of line in the array using c++. how qt can read the length of line which store at array using c++....? im using...
[no replies]
Formatting text input
 
this is what i have to do, i have an idea on how to do it but the c++ book does little to explain on what the task asks. They gave a skeleton of the code but i...
[1 reply] : Open your editor. Press keys. Start with the preprocessing directiv... (by cire)
median for 3 numbers in sequence
 
Hi all I have a list of 20 numbers and I have to write a program that takes the first 3 numbers, calculate the median and shoots out the median in table format...
[16 replies] Last: why are you putting i+3? you want it to start at the first (i=0) to g... (by cdf)
by atjm88
How to change .ico format to other?
 
IDI_MYICON ICON "abc.ico" Hi, for this code(in Win32), it's deal with .ico image right? How to change the code to other type ...
[4 replies] Last: I mean is that the code can be change to something like IDI_MYPNG PNG... (by atjm88)
by cdf
problem with const, string pointers
 
if i have a class method prototype const char* gets( ) const how do i get it to access a (private member) string and return that string? i have this p...
[2 replies] Last: Or it was the address of a temporary that has gone out of scope. For ... (by moorecm)
foundation books
 
i'm on a vacation, so i planed to learn some prerequisite stuff for programming. yes, i'm a absolute novice. would you guys please suggest some books for firm f...
[5 replies] Last: Programming: http://mitpress.mit.edu/sicp/full-text/book/book.html (it... (by DexterMorgan)
by Steves
Graphics
 
Guys Ive gone through this tutorial to the end of the classes guide and I'm bored. I want to be able to make graphics and applications and things not just write...
[2 replies] Last: I say Win32 is a good place to start (if you're on Windows, that is). (by ResidentBiscuit)
help with lab
 
I have to submit a lab today, i was absent for the previous lecture, i really don't know whats going on. I want to learn how to do this and that's why i am not...
[1 reply] : [co de] "Please use code tags" [/co de] To read the input while( i... (by ne555)
Convert an int array to a String array?
 
Hey guys I'm working on this program and I was wondering what the best way to convert an int array to a string array is. Any help would be great! -TheNewKid...
[4 replies] Last: I changed my mind it would be even more helpful if someone could just ... (by closed account G854izwU)
how to use menu systems
 
i am currently making a pong clone and i am at a loss at how to make my pong switch from its game play to a main menu system...could some one please explain or ...
[no replies]
help with function computing gross pay
 
Hi I need to make a function that will compute a gross pay for. the problem is I need to make it pay double after 40 hours which is where im getting confused. s...
[3 replies] Last: double grosspay(double hrate, int hrs) { double pay = hrate*hrs ... (by cire)
Problem with Palindromes
 
I'm writing a program using functions that takes an integer and determines whether or not it is prime and whether or not it is a palindrome. At the moment, I'm ...
[1 reply] : Well you have to make up your mind. Either you're using an array or y... (by Disch)
Array in class
 
Hi, I would appreciate some help with a problem. I want to create a class with a public array in it, but I want the size of the array to be determined by a clas...
[3 replies] Last: Thank you! (by fgrigolon)
g++ error message corrupt
 
I realize this forum is not specific to a compiler, but I'm hoping g++ is ubiquitous enough. running g++ version 4.1.2 (required for my project) $ g++ -c ...
[1 reply] : a colleague just found my problem... when I switch from xterm to gnome... (by dtkerns)
Int Length
 
Hey guys I was just wondering what you guys think the best way to find the length of an int is. I worked out a nice and easy way to do it my way is shown below...
[2 replies] Last: I don't understand how to use that one... I put it in a program but w... (by closed account G854izwU)
March 2012 Pages: 1... 2526272829... 71
  Archived months: [feb2012] [apr2012]

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