Beginners - December 2008 (Page 5)

sizeof an object in visual c++
 
Hello, I am experimenting with the results of sizeof on a WinXP machine Visual C++ 2008 express compiler. I have a class defined with a few members: #i...
[2 replies] Last: I doubt there's a standard way to do it, but you can take a look at th... (by helios)
"if" statement outside while loop does not work
 
Cannot get the last "if" on line 52 outside the while loop to work and print out the message. When I enter "q" or "Q" the message for the last "if" does not pri...
[4 replies] Last: Thanks guys for the replies. I got it to work now. Thanks again for th... (by cplusnewbie)
Craps Game Program
 
Ok, so here is the deal. I found a game of craps in C++ programming from a long time back, but i haven't finished it. It is too long to fit in a post, so I am...
[4 replies] Last: It works now! Thanks (by thekautz)
using isalph(), isdigit() and ispunct()
 
Hi can anyone help? I'm trying to read strings from a file and using a function chartype() that uses isalph(), isdigit() and ispunct() to determine the characte...
[5 replies] Last: You aren't using ch ... (by Bazzy)
proxy making
 
Is it possible to make a proxy website using c++?
[1 reply] : Yes. If you're not sure where to start, take a look at an open source... (by kbw)
by invis
question about C not using prototypes
 
Hi there, I know one of the distinguishables btw C & C++ is the fact the C++ requires the use of prototypes whereas C doesnt. So, if C doesnt require the us...
[5 replies] Last: The old C, which we call K&R C, does not require prototypes. The decl... (by kbw)
by II15X
Problem with Multiple "mains"
 
I have been stumped by this problem, and its starting to get annyoing... Recently I asked my friend how can I have multiple sections on a Program.. So I gave it...
[6 replies] Last: This will work: #include <iostream> using namespace std; void ... (by CheesyBeefy)
Probably a dumb Question!
 
Hey, I have a question, and I know that it is going to be a wow-i-am-a-moron-how-did-i-forget-that type of question. I am making a little program to find the...
[3 replies] Last: Oh, right. Don't use single quotes if the character is really supposed... (by helios)
reading two strings and checking if string one is in string two
 
Hi can anyone help? I'm reading in strings from a file and calling a function to determine if string first is in string second. If it is then the function will ...
[3 replies] Last: @tyky9808 Your function works but it needs the second argument of the... (by Bazzy)
Data conversion
 
This is the code and the exercise question requires that the local variable of sqrt_of_n needs to be declared to be double data type, not integer and it must be...
[7 replies] Last: Ok - sorry. Bad habit. (by egregory314)
split s string at the first whitespace
 
Can anyone help? My program is due on Monday. I'm trying to split strings I'm reading from a file. The split function will divide the original string into two p...
[5 replies] Last: thank you for your help. My professor wanted us to include a whitespac... (by tyky9808)
Array of character as argument
 
Hello,I'm trying to pass an array of char, like an array of option, to a function which I want to print to screen instead of use it in loop such for or while st...
[2 replies] Last: Thanks firedraco . (by Antonio)
Turning a string all to lowercase problems
 
I can make a single char go from lowercase to uppercase, or vice versa. But what I'm trying to accomplish now is trying to turn a whole string. What I thought I...
[4 replies] Last: I've always liked to do for (;*letters;letters++) You can't get it... (by helios)
by II15X
Switch Case wit Chars?
 
Hello, I am currently learning about switch cases, and I do not understand if it is legal for it to switch commands for a Input switch (inPut) { case ...
[3 replies] Last: inPut was suppose to be my char, I was aiming for a user input, and a ... (by II15X)
which program do i do the basics on 'hello world'?
 
I am trying to learn the basic tutorial of 'hello world' but i don't know which program to do it under. Do i do it under notepad or something?
[5 replies] Last: Dev-C++ is an integrated development environment (IDE) that uses MinGW... (by helios)
DIFFERENCE BETWEEN C++ AND G++
 
I am a C++ beginners, I dont know what is the difference between C++ and G++ and also DEV-C++
[1 reply] : Welcome to the forums :) C++ is the language that you're about to b... (by g0dwyn)
declaration problems
 
Hi folks, i have a bit of trouble with the following declarations 1. a pointer to an array of strings 2. a reference to an array of integers Any help will be...
[6 replies] Last: I think that references are useful only as function arguments, in othe... (by Bazzy)
Can't Get "Hello world" to run (1,2)
 
I am new to programming and am trying to follow an online tutorial to learn the basics of C++. I did the very simple steps outlined: http://www.intap.net/~...
[23 replies] Last: helios u r right actually when i posted i was working with windows ... (by cppgans)
A question....
 
I have program in my mind ......that accepts the marks of the students,their names...and other such information.I have not been able to find a way store the dat...
[3 replies] Last: Thanks a lot hannad and bazzy......... I got it....................... (by Harlequin)
polymorphic arrays run time error
 
For some reason, when my program runs, it doesn't execute the code at the bottom of my for loop in my main routine. I'm pretty sure that the classes I wrote ar...
[1 reply] : if you change the main workers = ... into workers.push_back( n... (by sanzilla)
December 2008 Pages: 1... 34567... 17
  Archived months: [nov2008] [jan2009]

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