Beginners - November 2013 (Page 57)

try throw catch program
 
I need to alter my program to use the try throw catch: Here are the bsic instructions for the problem: Rewrite the program so that it throws an appropriate exc...
[9 replies] Last: are you sure you have changed also your typo in if() as per your p... (by nvrmnd)
32767:0 Why?
 
I have written this program to convert military time into standard AM/PM time, however the output I get is always the same. It's 32767:0 If I omit hours2 fro...
[3 replies] Last: void output(int & hours2, int & minutes, std::string & thing); Outp... (by mobotus)
Scanf function not working as it is supposed to be
 
Hi, In the following program that converts temperature in Celsius into Fahrenheit, I am trying to use the Scanf(). The program works fine with the cin function...
[4 replies] Last: Thanks a lot Duoas. (by musicgold)
Question about reading input
 
In a program i'm writing i'm supposed to read user input on one line and the user will have a max of 6 things on the line. I've been trying to figure out how to...
[2 replies] Last: A variation on the getline, stringsteam idea. Uses a vector to store e... (by Chervil)
unix compiling issues with multiple files
 
Hi, I am having issues getting my files to compile in unix. I am following along with the online example given. the online instructors is compiling(in vm). min...
[9 replies] Last: http://www.cplusplus.com/forum/beginner/116236/#msg634616 (by Duthomhas)
Number solving
 
Alright ive been busy on a text based game and i got stuck again i want my zombies to have 5 attack but with 2 zombies 10 i know how to do this but a zombies he...
[5 replies] Last: Dam thats a nice way but it messes out becuase when i want 19 to be 2 ... (by Tristan101)
Switch case
 
i need my switch case menu to select an option then after it has finished it, it will ask me again what i want to watch, and only for it to end when i press the...
[1 reply] : Add something like this: do { switch (option){ case 1:create_node()... (by Annatar)
by enemy
SOS!!!-function value-PLEASE URGENT!!!
 
Please, how can I use result a*d from fu function to do other calculation like (a*d)+2 etc, in main or howelse? Many thans! #include<iostream> using n...
[1 reply] : You need to pass them as parameters to fu() to be filled in. void fu(... (by kbw)
RECURSION ! (No idea why it does this)
 
Ok so I was writing simple recursion problems to see how they work and the console output was not what I was expected, and I cant seem to understand the output ...
[4 replies] Last: ooh ok, then I guess that's how they work, its a pretty neat illustrat... (by jonnhynick)
Hello, I'm new.
 
Well just came to say hello and ask a few questions. so i want to create a game using c++ code, but i really don't know where to find a good free book where i ...
[3 replies] Last: i wonder if bumping's allowed here (by Cookiess)
Please help with this probleme
 
Hello, I am quite new to C++ and have stumbled on a peculior probleme. When I run my code it gives the answer for the submitted arabic number in roman numerals,...
[6 replies] Last: My good lord!!! I feel so stupid!! I had earlier created a new .cpp fi... (by skydragon14)
by SrKiT
Pointer to a vector element
 
Hey, guys. I've been having a problem, I can't seem to use a pointer to a vector element. This is the code I got: class C; class B { C * memberC; pu...
[2 replies] Last: What I'm trying to do is to "link" an object of type C (within vecC) t... (by SrKiT)
by enemy
Urgent-more functions in one program
 
Helo! Please , if I have more functions in one program, how do I organise mathicg of variables? I planned to have in main variables from more functions! HO...
[1 reply] : Did you read and understand this lessons? http://www.cplusplus.com/doc... (by JockX)
passing array to a function
 
i have tried all i could but i still can't make it run #include<iostream> #include<conio.h> #include<stdio.h> #include<cstring> using namespace std; ...
[9 replies] Last: Lines 41-63 beg for a switch statement. Line 84: addcontact calls... (by AbstractionAnon)
by apache
C++ output the highest number
 
So this program calculates bonus rates for multiple sales persons depending on how much they bring in. I then have to output the total bonus paid, the average b...
[2 replies] Last: Nevermind, sorted it. Sorry mobotus, hadn't even noticed your reply w... (by apache)
by enemy
separators???
 
Please, do we call there signs "separators"? Many thanks! {} ; ... (They are ment to SEPARATE parts of the program)
[3 replies] Last: They are Punctuators, since they mark language specific punctuation. T... (by JockX)
by arezoo
writing code for these questions
 
Write your question here. any body can write codes for my questions? these are my questions http://s10.postimg.org/szia62hvd/1461579_752851961411250_1898265989_...
[1 reply] : I am sure somebody can. These are somewhat easy questions. (by JockX)
by Olpers
class problem
 
I have written this program ..Although compiler is telling the problem but i could not identify what problem is present. #include<iostream> #include<s...
[1 reply] : One problem is that you created custom constructor for class book::bo... (by JockX)
How do i check if an element is alphanumeric?
 
OK, so i'm working on a program that analyzes a paragraph and checks for the word 'the'. So far I thought of making an if statement within a loop that checks ...
[3 replies] Last: Hmm...well, you could use tolower to avoid having to check for upper... (by long double main)
by enemy
enum
 
Please, can someone write me an easy example for using "enum"- or send a link? But please, very very simple cause I am the sheer beginenr! Many thank!
[2 replies] Last: Hello! Ii saw just a few examples, but they do not seem usefull ??? (by enemy)
November 2013 Pages: 1... 5556575859... 80
  Archived months: [oct2013] [dec2013]

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