Beginners - October 2012 (Page 46)

switch statements
 
My assignment is: Ask the user for a number.  Use a switch statement to process the number entered: if the user enters 2, print "shoe" if the user enters ...
[6 replies] Last: The switch statement looks more or less ok... But you should be using... (by andywestken)
Calculations coming up as 0 when i run the program
 
Ive been wrapping my brain around this all day and i cant find a specific answer to help me, before this i had serious trouble just to get it compiled but thank...
[2 replies] Last: num1 + num2== sum; num1 - num2== diff; num1 / num2== quo; num1 * num2... (by Moeljbcp)
Save and read from struct help?
 
here is my code: /////////////////////////////////////////////struct #include <iostream> #include <string> #include <fstream> using namespace std; str...
[no replies]
Storing and outputting inputs in arrays
 
Hello, I'm working on a program that places inputted 4 digit numbers in an array. If the user inputs a number that is already in the array, or if it's not a ...
[3 replies] Last: Using 'i' too many times completely slipped my mind, and I feel silly ... (by dakerudk)
Strings
 
I need to make a program that asks for a name, and until the user enters Bernice it keeps asking for name. 1 #include<iostream> 2 using namespace std; ...
[4 replies] Last: You may not define a name twice as you did with Bernice;. The compiler... (by vlad from moscow)
A program that asks for a number and until correct number is inputed keeps asking
 
I'm writing a program that asks for a number and until that number is 99 it keeps asking the user to enter another number... I have this code and it runs but I'...
[3 replies] Last: Thanks! got it running perfectly! (by computermajor12)
by marhit
Accumulating values in a for loop in order to add them.
 
I'm obviously new to c++ and am having trouble understanding for loops. For this problem, I have to create a program that allows a user to input a base salary a...
[5 replies] Last: Hey thanks, this is actually coming together. One last question though... (by marhit)
Help getting started
 
Can someone please help me get started on these problems? I have been looking through my book and i cannot seem to get anything going. Also, my compiler is tell...
[8 replies] Last: Ok i got it. Thanks for your help! #include <iostream> #include <fstr... (by tpslugger)
by hadis
why C++ works slower than MATLAB
 
Hi I wrote a code in MATLAB and then I trnaslated it to c++. when the size of my matrices are less than 600*600, my c++ code is faster than my matlab code. F...
[1 reply] : > and the same for matrices You mean int *matrix = new int[row*col]; ... (by ne555)
inline operator overloading
 
Hi all, this is my Vector class: class Vector { public: int X; int Y; Vector( int x = 0, int y = 0 ); inline void operat...
[2 replies] Last: It seems that the linker does not see the object module where the oper... (by vlad from moscow)
Help with displaying to the user their input is not valid.
 
Hey, guys. I need help with the following program - I have done half of it, but I do not know how to proceed from there. These are the instructions: Write ...
[12 replies] Last: Alright well I ended up doing the same exact program without using fun... (by degausser)
Opengl doesnt work
 
hello, I have this code /* * simple.c * This program draws a white rectangle on a black background. */ /* E. Angel, Interactive Computer Graphic...
[4 replies] Last: The bigger picture here is that you're trying to code in C++ without a... (by Moschops)
Removing extra blanks in array
 
The question says The question with sample of the results after removing the blanks: http://i46.tinypic.com/wb2sn9.png My solution int removeExtraBlanks...
[7 replies] Last: Well, the code int removeExtraBlanks( char *Sentence, int length ) {... (by vlad from moscow)
Learn C++ 11 in 20 Minutes (Video)
 
20 minutes video that helps you get started with the latest C++ standard: C++ 11 standard. Part I: http://www.youtube.com/watch?v=U6mgsPqV32A&list=PLE28375D...
[no replies]
Strings and adding integers and restoring
 
Hi! I've already posted this and didn't get the results I was looking for. Goals: for this program, I am having problems A) entering integers into a string's...
[4 replies] Last: Ok thanks! I'll give that a shot. And it's not too bad, but I ran into... (by soccerace)
Do you want to continue? if/else ---HELP
 
Hello, I need help with this program when I press Y,y,s,w,N,n or any letter it always print "OK". I don't know what I'm doing wrong. Please help! Write a pro...
[3 replies] Last: Thanks so much!!! I don't know what I was thinking! (by laumonique)
insertion sort using linked list
 
can anyone tell wants wrong with my insertion sort ..aplyinh on linked list void Insertion_Sort() {int count; node *p; p=HEAD; while(p!=NULL) { count+...
[3 replies] Last: Nope, that's your job. This might help: http://www.cplusplus.com/doc/t... (by BlackSheep)
Problems with formatting
 
Hello, I'm trying to write a function that will output 3 lines of text surrounded by a box. *************************** | Chuck smith ...
[9 replies] Last: I have the book c++ programming from problem analysis to program desig... (by jlillie89)
by loot
C-Free does nothing when I click "Run"
 
I'm working on a C++ program at the moment in C-Free. I've finally taken care of all the compile errors, so there are 0 errors and 0 warnings. But when I go t...
[3 replies] Last: http://www.programarts.com/cfree_en/faq.htm Can C-Free programme for ... (by monad)
Hangman
 
In this project, you must implement a computer version of the game hangman. Your program should randomly load each word from a text file which contains an inte...
[3 replies] Last: We have the file opened, but it won't store the information the way we... (by mhaggard)
October 2012 Pages: 1... 4445464748... 84
  Archived months: [sep2012] [nov2012]

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