
please wait
by W300mphblues
Loop keeps returning original input?
|
Hi there - very, very new to C++. Tried to look for a similar problem on the forum (and other websites), but when comparing my program to successful ones, there... |
Feb 6, 2013 at 1:50am
[4 replies] Last: [quote=Daleth]Since you're dealing with prices and percentages, use fl... (by LB)
|
by darin18
How to exit an iteration (for loop)
|
Hey guys, I want to know if there is any keyword that can be used to exit an iteration, but not the entire loop.. for example if i want to print the numbers fr... |
Feb 6, 2013 at 1:46am
[7 replies] Last: @Lynx876 You're completely missing the point. It doesn't make anything... (by LB)
|
by Rocket Power
Need a screenshot of a basic program...
|
I'm taking a class on programming with C++ but I've been having A LOT of trouble installing the necessary software to do my homework and practice problems. Tha... |
Feb 6, 2013 at 12:58am
[8 replies] Last: [quote=Rocket Power]What command do you have to type in the command pr... (by MrHutch)
|
Press up arrow? |
How to do you make that so when you press the up arrow it couts something? and also, how to you overwrite a cout? |
Feb 6, 2013 at 12:57am
[19 replies] Last: Just use something simple like SFML. It is quite easy to draw text, it... (by closed account 3qX21hU5)
|
by Ch1156
Where do you put typedef?
|
Do i need to put typedef in main or in my class? or do i make it global? Do i put it in a seperate function? what d i do with typedefs? |
Feb 6, 2013 at 12:55am
[2 replies] Last: A typedef has whatever scope you define it to have. If you create a... (by AbstractionAnon)
|
by cupertinoFan
Fibonacci Program
|
Hi guys, I need to write a program to display the first 30 Fibonacci numbers using 1 loop. I'm not sure what a Fibonacci number is and so I'm drawing a blank. ... |
Feb 6, 2013 at 12:54am
[3 replies] Last: That's true, a loop will suffice. I think because it is often used to ... (by Oria)
|
by SB Onyx
Problem with getting an average from a function
|
Hey guys, bit of a problem here. We're just getting into functions in my C++ class, and I'm having trouble getting the average to go to main to be output. It al... |
Feb 6, 2013 at 12:51am
[4 replies] Last: Makes sense, won't make that mistake in the future. Thank you for the ... (by SB Onyx)
|
by simpleasy
Combine SDL with console or windows buttons
|
There are a lot of tutorials available on SDL, and there are a lot of tutorials available on console programming. The problem is, I have no idea how to combine ... |
Feb 5, 2013 at 10:18pm
[1 reply] : From my experience, SDL does not play nice with widgetry libs because ... (by Disch)
|
by benfield
taking 1 interger away and then checking if divisle by certain numbers
|
I am asked to do this "Ask the user to enter an integer greater than 1000. Remove the final digit. If the resulting integer is evenly divisible by 3 or 5 or 9... |
Feb 5, 2013 at 10:16pm
[3 replies] Last: What would be the correct answer for 1100 then? removing the final di... (by simpleasy)
|
Constructor |
I have to write a program based of this header file and I can't even get the constructor right. Will someone show me how to do it? Thanks. // File: Peg.h ... |
Feb 5, 2013 at 9:44pm
[9 replies] Last: As I don't really know what the class is supposed to to, all I can do ... (by maeriden)
|
by ane
convert integer to string, nothing work
|
I need convert a integer to string, already try the function itoa, stringstream and other, but nothing work. string noDestino ; for (int j=0; j <NUMHOST;... |
Feb 5, 2013 at 9:00pm
[6 replies] Last: thanks, work!!!!!!!!!!! (by ane)
|
by rcast
Bitwise and Shift for compression
|
Would bitwise operators and shift operators be a good way to create your own compression software? For example, could I take a file and determine the bits with... |
Feb 5, 2013 at 9:00pm
[9 replies] Last: I understand too little on this subject. I'll find it out in my readin... (by rcast)
|
by jamesfalter
issues with scope, among other things
|
for every method in my cpp file for a simple stack postfix calculator, the compiler returns the error that the stack I am using is 'not declared in this scope'.... |
Feb 5, 2013 at 8:18pm
[14 replies] Last: and, error free! thanks, internet! (by jamesfalter)
|
by Aerion4
read data into an array
|
Hello, so im trying to read an unknown number of numbers into an array, then do some math to those numbers. Im stuck on reading the data into an array...I cant ... |
Feb 5, 2013 at 8:09pm
[5 replies] Last: Stewbond, I appreciate your willingness to help, but im required to us... (by Aerion4)
|
Wont Compile |
I cant figure out why it wont compile right. If anyone can help me with this please help! #include <iostream> using namespace std; // constant const int siz... |
Feb 5, 2013 at 7:44pm
[5 replies] Last: Can someone help with my move function? Before this line ("Enter p (pr... (by closed account z8q4izwU)
|
by mirec
Comment me
|
#include <iostream> #include <windows.h> #include <fstream> #include <ctime> using namespace std; void updateThingsHere(); int sec; int hisHappines, his... |
Feb 5, 2013 at 6:24pm
[8 replies] Last: hey James I tryed your for loop but it didn t exactly worked because ... (by mirec)
|
by b1b2b3b4
search case printing out unwanted things.
|
Hi guys. Can someone help debug my code? My case is working perfectly fine but there is some weird results. For example. in the list there would be. Nam... |
Feb 5, 2013 at 6:21pm
[1 reply] : Use a debugger and watch the values of the locals (the variables in th... (by snow 56767)
|
by abba901
Need help on decrypting/not sure how to start.
|
Assignment: Write a C++ program to decrypt a 12 character message located in a file named “encrypted.txt” then print the decrypted message to the screen ... |
Feb 5, 2013 at 6:04pm
[3 replies] Last: What if the file to be read is not there? You need to be able to catch... (by Lynx876)
|
by TFFBRAIN
need help to show most repeated character
|
#include "stdafx.h" #include <conio.h> #include <stdio.h> #include <string.h> void main() { for (int i=0;i<strlen(nt);i++) Tab =int(nt ); for (int i... |
Feb 5, 2013 at 5:52pm
[5 replies] Last: i ran my program on visual studio, it worked normally without any err... (by SeanKD)
|
by Peter7
Create a matrix struct
|
So i am trying to create a structure that contains information about a matrix, and trying to initialize that matrix by putting every element 0. I get no errors,... |
Feb 5, 2013 at 5:52pm
[2 replies] Last: Play is a pointer, notice the typedef. There is no compile problem. (by Peter7)
|