Beginners - November 2012 (Page 53)

Casting
 
I have to create a small program which takes world population and a nations population as long long int. Then I have to divide and figure out the percentage of ...
[no replies]
This "runs" but nothing shows up on screen?
 
This program runs and it says 1 succeeded, however nothing shows up except: "*** start of 276Arrays_Ex04.cpp program *** *** end of 276Arrays_Ex04.c...
[3 replies] Last: @ cire All right, I am going to give up today - will have another go... (by TheIdeasMan)
take 2 inputs if 2 words are type in one line
 
i was wondering if you can take in 2 different inputs separated by a space only if there are 2 words for example if i type "word 50" it will take in word and t...
[7 replies] Last: c++ scanf works in c++ also just that its not exactly what i want (by Imgregorywong)
by tpinon
Recognizing whitespace entry in a simple menu
 
I created a simple menu. During validation it occurred to me that if a user enters a space or 'enter' as an option, it does nothing. How can I make the program ...
[5 replies] Last: You can use either a char or an int. With char you can only do single... (by TheIdeasMan)
no match for operator in std cout
 
trying to print some data but keep getting an error. The error is located near the bottom in the printArray function. #include<iostream> #include<iomanip...
[1 reply] : What's the error? Line 18, you are declaring a variable outside of ma... (by Raezzor)
Linked list not listing all nodes...
 
I have been sitting with this code for a while now and I can't seem to understand what to do to get my printList function to actually list ALL the nodes that I'...
[3 replies] Last: why is that? Because you're accessing memory you shouldn't. By re... (by cire)
Car Simulation
 
okay i been working on this program for days and i get these errors when i run my program im using visual studio 2010. the errors are error LNK2001:unresolved ...
[7 replies] Last: Could you please fix th... (by closed account DSLq5Di1)
#ifdef SHOWADRESS
 
Hi! well im doing an assignment and i have to use the preprocessor directive #ifdef SHOWADRESS to turn verbose mode either ON or OFF. Basically it is to be use...
[1 reply] : http://www.cplusplus.com/doc/tutorial/preprocessor/ (by AbstractionAnon)
What's wrong with my countValues function? I keep getting 1 failed because of header functions and const int problems?
 
* Comments /10 points * * * U10_Arrays03.cpp * * CIS 276 Introduction to C/C++ Programming * Chuck Nelson, Professor * * Student Informa...
[1 reply] : I think that your code shall not be compiled. For example void count... (by vlad from moscow)
not real sure what to call this
 
what im trying to do is make a program that will kind of... communicate with you, i guess. but the problem i am having is, say for instance, the program says "h...
[3 replies] Last: That's not a tutorial. That's a concise explanation of what the string... (by Moschops)
Using rand() with a set list of numbers
 
Hello, I am attempting to write a memory game program that will display 18 numbers {1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9} in a random order. I am currently stuck...
[2 replies] Last: Think about this a different way. You want to assemble a set of number... (by Moschops)
if ' else statement
 
Hi everyone, this is my first shot at C++ and this problem is skullcrushing i tried to fill it with { if (residence = O ) taxRate = 0; e...
[2 replies] Last: (residence = O ) This means: set the value of residence to the same... (by Moschops)
by Niven
Button help
 
Is there a way to accurately compare glVertex3f coordinates and mouse coordinates (from something like glutMouseFunc)? I ask because I created a program that ha...
[9 replies] Last: I thought it would be a cool thing to have the program do. It also was... (by Niven)
Trouble with tree
 
I'm trying to build a tree from a file and it keeps blowing up on me. It doesn't even give an error but it shuts down when I try to run it. I'm not sure what ...
[no replies]
Getting started with C++
 
Hello, I was wondering what the best way to start learning C++ would be. I want to learn C++ because I have a big interest in gaming and how games are made. I k...
[13 replies] Last: No I was just getting it back to first page so if anyone had anymore s... (by smithy311)
why is this not valid?
 
solved
[5 replies] Last: hmm okay sorry about it. (by noobcpp)
Question about an array in a function using pointers.
 
So, I'm reading Stephen Prata's C++ Primer Plus. I'm on the Chapter 7 which deals with functions. One of the chapter review questions is this: Write a function ...
[2 replies] Last: Bah ya, meant to use commas. That was simply a typo on my part. And go... (by Raezzor)
Variable Won't Run
 
I am having problems with getting my program to work, I know that int num is not getting into the various three digits I have set up in my function. #include...
[6 replies] Last: Thank you that helped I was able to solve it along with adjusting my m... (by GIjessiebear)
Need some Information about C++
 
Hey guy i was just wondering that what course`s does C++/java go under and by that i really mean that is it software development computer science or any thing e...
[1 reply] : the actual description of computer science ,software development and ... (by Darkmaster)
by yaraa
break cont
 
#include <iostream> using namespace std; int main () { int i=400; do { i++; cout<<"before the break\n"; break; cout<<"after the break,should never ...
[6 replies] Last: http://www.cplusplus.com/doc/tutorial/control/ The while() and do-... (by Chervil)
November 2012 Pages: 1... 5152535455... 75
  Archived months: [oct2012] [dec2012]

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