Beginners - August 2011 (Page 18)

How do I check which character comes first alphabetically?
 
Let's say I have the following code: char letter1, letter2; How do I check if letter1 comes before letter2 in alphabetical order (assuming both are lowe...
[3 replies] Last: I think Duoas had the right idea although he phrased it in a strange m... (by bool maybe)
is there a better way for calling this function?
 
how do i change the value of line 26 to represent different numbers based on different circumstances??? #include <iostream> #include <limits> using namespac...
[2 replies] Last: how do i make line 22 not use cout ??? in main comments test 1 show t... (by metulburr)
by hwuy
text cross contue
 
well my last post was not descirptive enough at all so this is my new one. all the code of this might be to long but i am tring to create a function that will r...
[3 replies] Last: thanks hamsterman i think that works (by hwuy)
can someone explain this to me?
 
i have been trying to find a way to only allow certain inputs by the user to stop the program going crazy when i ask for a number and the user inputs a characte...
[6 replies] Last: This program requires <limits> because it uses the numeric_limits temp... (by tdeloggio)
Error when testing user input
 
I am creating a program for my class that gets ten integers from the user, stores them in an array. Then passes that information to a function to compute the av...
[3 replies] Last: Also, you are calculating the average over and over in the loop. That... (by kempofighter)
Recursion help!
 
I don't know how to do this exercise from book "C++: Without Fear" : Write a program that calculates triangle numbers by using a recursive function. A trian...
[3 replies] Last: EDIT: I didn't need your help, but thanks anyway i was confused at som... (by happykiller)
How can I get my program to ignore character inputs?
 
I am trying to set up a menu for which you are presented with 2 options (1 or 2). If a different number is typed, I got it so that the program rejects it. Howev...
[8 replies] Last: FYI, this is another great link for stdio FAQs. http://www.parashift.c... (by kempofighter)
Is this really 50/50 chance?
 
I've been trying to make a coin flip simulator, the number 1 meaning heads and 2 meaning tails, but it seems to do 1 more often. Here is the code. #include ...
[2 replies] Last: Okay, now its acting more 50/50 (by ziodice)
Trouble working with Visual C++ Basic
 
I am an intermediate programmer familliar with C, Python, and Java, and trying to learn C++ while using Visual C++. First I used the hello world example pro...
[no replies]
Program Not Working
 
I have compiled a program in Dev-C++ and the compiler is showing no errors. However, when I run the program, the program pops up, but then another pop up window...
[15 replies] Last: I totally agree with you. As I had the time to check what going, I wa... (by andywestken)
by paupau
question
 
why can i use using namespace std; when i can run .....! have an error....? for using namespace std; ..?
[4 replies] Last: Do you have #included <iostream> or #included <fstream> or #include... (by TheMassiveChipmunk)
Is this a good implementation
 
Hi, I need to know if the implementation of operator<< is a good implementation ? if no, can I get explanation y its not ? #ifndef _MOVIE_H_ #define _MOV...
[19 replies] Last: Ditto. (by Duthomhas)
filtering array?
 
I want to enter a value each time to the originator and then delete every time the items in array which exist in the originator example: originator ={0},array...
[2 replies] Last: It is also simple enough to do yourself (though much less efficient un... (by Duthomhas)
Cloning a Window
 
Is it possible to clone a window of a program so that you essentially have two copies? and if the window you are cloning updates, the clone will update also? ...
[9 replies] Last: Thanks, I've looked at it in Spy++ and none of the text shows up becau... (by bmoore45)
Multiple Choices
 
we are asked to create a program that will display a menu that will allow the user to choose a subject. ex. A.english B.math C.science then, will ask for a let...
[3 replies] Last: jejeje Thanks. (by gaorozcoo)
Beginning C++ Through Game Programming Third Edition
 
Hey all, so in this ebook, end of chapter one, theres an exercise of the following: 3. Write a program that gets three game scores from the user and displays...
[10 replies] Last: Add cin.sync(); before cin.get(); (by packetpirate)
by adesh
void main or int main
 
I was thinking if it is right to use void main or int main for the main() All the programs in my book use void main() { ...... whereas when i searched in the...
[3 replies] Last: http://www2.research.att.com/~bs/bs_faq2.html#void-main (by moorecm)
Question about header files
 
Ok so I know what header files are, but I was curious if I could put just plain functions in a header file. I have a program right now with quite a few function...
[3 replies] Last: Ah this sounds like a good idea. I will have to do this. Thank you for... (by ResidentBiscuit)
digital clock
 
hi every body this is my first post :-) why this code can't work ?!? what's problem ? #include <iostream> using namespace std; class time{ int...
[5 replies] Last: Yes, classes are defaultly private. (by firedraco)
by Disch
glad
 
tired because it's after midnight
[1 reply] : annoyed because this is in the wrong forum :P (by firedraco)
August 2011 Pages: 1... 1617181920... 39
  Archived months: [jul2011] [sep2011]

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