Beginners - April 2008 (Page 5)

by Rope
How to catch CTRL+C?
 
Hi all, I want to catch the CTRL+C command and then let one of my own methods handle it. Since CTRL+C terminates or aborts the program I thought I'd use the...
[6 replies] Last: @ Grey Wolf. I'm targeting unix. But testing on windows at the moment ... (by Rope)
by rr23
help with functions #2
 
Write a function named Liquid() that has an integer number argument and also has another four integer reference arguments named gallons, quarts, pints, and cups...
[1 reply] : This function will be almost exactly the same as your other question. (by Ganon11)
guessing game help!
 
im trying to do this exercise where i have to create a number guessing game. basically let user enter a number and the program will either say too high or too l...
[4 replies] Last: Technically is doesn’t prevent data loss. What I think Kenner is ... (by closed account z05DSL3A)
Question about compiler warnings
 
So I'm still new to C++ (don't know a lot outside of what is here) and this is the first time I've ever gotten a warning at all. I'm just curious what it is and...
[6 replies] Last: Remove i from line 8, and declare it in all for statements like this: ... (by ropez)
Setting array member in class
 
I want to make a class for students-the information for the students that we are supposed to put additionally is their names and the marks in 10 subjects,i'm ju...
[no replies]
by rr23
help with functions
 
Write a function named Change() that has an integer parameter and also has another six integer reference arguments named Hundreds, fifties, twenties, tens, five...
[no replies]
saving file
 
Hey guys i have a header file for class:bitmap i have a function in there called... void save (string filename) const; i now hav 2 write a cpp file and write...
[no replies]
by nickm
Timer and Threads
 
Hi everyone, I need some help. I am creating a tool where the user has 10 seconds to do something before a message pops up. I am using the timer from a p...
[5 replies] Last: Yes, just make a new thread like this: HANDLE thread = CreateThr... (by firedraco)
by fonzie
basic Data Base troubles
 
I have been using this site as reference for months, but I stumbled upon a problem I cant fix, so I need some help. Keeping in mind this is a mere test, and ...
[3 replies] Last: Thank you very much, side note, changing the line TheScreen(customer... (by fonzie)
by yogurt
Can somebody please review my code for errors
 
WARNING!! this code is hefty so i cut out cases 2-5 to fit it in before i cut the cases out it was 20,000 character and its still not done yet. It is the same c...
[no replies]
NEED HELPPP with BATTLESHIP GAME
 
void Battleship :: placeships()//places players ships { int times, x, y, spot; int shiplength, isVert; char column, its,ans ; int row;...
[3 replies] Last: this is the function we used to generate ships randomly for the comput... (by vaflyboy03)
2d array element shifts
 
i need to horizontally right and vertically up shift the elements of a 2d character array. i have come up with the code below for two separate functions, and i...
[4 replies] Last: lol if yr bonus points counted toward the class im in, then i'd try to... (by mrgreen27)
by bashi
expert people please help
 
how to handle a file in the c++ ie like i want to create file including 10 user records & then print them too
[12 replies] Last: My thanks to Grey Wolf and rpgfan3233 for very good posts! (by ropez)
standard deviation
 
okay.... I am completely new at this and am stuck. Here is my problem that I am trying to achieve: The standard deviation, S, of a list of N numbers x{subi}is ...
[8 replies] Last: I believe that i have found my problem. Now, i just need to find a way... (by newbie08)
by yogurt
Simple Program help.
 
I understna dthis porgram and what it is explaing. but i dont unders stand the output it got. Like how did the output number come. // arrays example #include...
[2 replies] Last: ah.. ok n demostrates the array number. I thopught it creates another ... (by yogurt)
by aTone
New. Need help!
 
Hey everyone i am brand new here. I just started doing C++ (today), i have some previous knowledge about programing (java, html) but would really like to learn...
[13 replies] Last: no files missing it just gets stopped in the middle of the installati... (by aTone)
Where do I go now?
 
I now understand basic Classes, however, I still have a problem I need help with. I am mostly interested in game programming to give you an idea of where I am ...
[3 replies] Last: The containers actualy do what you want. The are called containers b... (by Faldrax)
by Wolf
What is wrong?
 
What is wrong in this code ?? The compiler gives me "unsucssiful build" #include <iostream> using namespace std; int x; int main () { for (int...
[5 replies] Last: Just letting you know you have "senior" misspelled. I assumed this wa... (by jdunehew)
TEST YOUR PROGRAMMING SKILLS - challenge
 
Define a structure for a student that has two members: stu_id e.g. S123 and GPA. Declare a table to store 10 students in main() and assume that the table has be...
[1 reply] : This is a trivial "challenge" for software professionals. If you are ... (by jsmith)
A question about while
 
Hello all, I am new to programming and have been learning C++. I was working on using while conditions and the exercise was use while in a compound-statemen...
[5 replies] Last: You know I started to play with it and tried to see if maybe the books... (by altusend)
April 2008 Pages: 1... 34567... 18
  Archived months: [mar2008] [may2008]

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