Beginners - October 2012 (Page 64)

by dusty
Evaluating input character values
I have a program that I am trying to determine if one of the input characters is an h, c, or i. Its using <iostream> and namespace std; cout << "Enter accou...
Oct 8, 2012 at 9:55pm
[3 replies] Last: I had code as type char, I did not have the single quotes and had the ... (by dusty)
Making grid for fun, having trouble
#include <iostream> using namespace std; int main() { int row, column; row == 0; column == 0; {if (((row % 2) == 0) (while ((row <= ...
Oct 8, 2012 at 9:54pm
[1 reply] : I fixed your syntax errors. Now you make it display right. #include ... (by TheJJJunk)
element c'tor/d'tor in array created with realloc/free
I create a dynamic array (like std::vector without capacity() ). It can initialize their element ( Init = true ) or not (for primitive data types only). I...
Oct 8, 2012 at 9:50pm
[2 replies] Last: +1 @ Chameleon. malloc/realloc do not play nice with complex data t... (by Disch)
by hadis
how to fix stack overflow
Hi I have big matrices like 600*600 and larger in my code. I'm trying to estimate a parameter and the solution is iterative. so I have to do lots of matrix m...
Oct 8, 2012 at 9:27pm
[3 replies] Last: Thanks for your reply. I didn't used something like: int iVec ; I ... (by hadis)
if statement help
I am working on a program that shows a persons water bill for a month. There needs to be a minimum of $16.67 per month and I can't get that part to work. The re...
Oct 8, 2012 at 9:24pm
[3 replies] Last: thanks (by sly0981)
turtle user input question
Hey again everybody, I have this simple code here, and a very simple question. When I run this code I can either choose to type l, r or f, each letter activate...
Oct 8, 2012 at 9:21pm
[1 reply] : do { //put lines 15-35 from your code here }while( myresponse != ... (by codewalker)
Help with simple program
Here's the code: #include <iostream> using namespace std; int main() { int a; int b; int c; int d; int e; cout << "\t ...
Oct 8, 2012 at 9:17pm
[9 replies] Last: Well as I said int a =0; is better so it should be done that way. But ... (by codewalker)
Need help with Turtle Graphics
Hey people I have a simple question here! My teacher told me during class that this turtle class should print out 0, 0 1, 0 1, 1 0, 1 but i g...
Oct 8, 2012 at 8:55pm
[7 replies] Last: The thing is when you rotate something you don't get nice round number... (by pogrady)
API/Facebook
Hello I'm graduating Computer Science. I'm in a project and I need to write a program that can stay always online (what it's not a problem at all) that when ...
Oct 8, 2012 at 8:31pm
[2 replies] Last: I already check this one... But i don't saw anything about API specifi... (by Bruno Guerra)
Why is there an error
for (int i = 0; i<fav_games.end(); ++i) { cout<<fav_games <<"\n"; } return 0; There seems to be an error under the '<' in 'i<fav_games.end();' Why?...
Oct 8, 2012 at 8:19pm
[2 replies] Last: Thanks a lot man, stupid mistake ahaha (by bboy premier)
by zakkor
Easy program not working
#include <iostream> using namespace std; int main() { int n, nr, nrfin; cout << "Introduceti numarul natural n.\n"; cin>>nr; cout << "In...
Oct 8, 2012 at 7:53pm
[1 reply] : the n%3==0 alone should be sufficient enough to keep any other odd ... (by Endl3ss)
by Yoda
Building a new comp -HELP- :D .. plz
I am learning programming slow but surely and viewing game design in mostly graphics department and loving what I will be able to do with the combo once i get a...
Oct 8, 2012 at 7:51pm
[no replies]
Definite Iterations
I want to have a program that finds the sum of a group of numbers. I would like for it to ask how many numbers total there will be, and then ask for the input. ...
Oct 8, 2012 at 7:15pm
[6 replies] Last: Actually, I figured out the rounding to nearest 100th - // project... (by cheshirecat)
I'm completely lost with arrays/vectors!!
I need to manipulate this program to 1)prompt the user for an array input using the max of 4, 2)use and display the results reported by the vector class’s cap...
Oct 8, 2012 at 6:40pm
[1 reply] : for 1) do int num = 0; //instead of line 11 in your code //Use fol... (by codewalker)
structures
for structures, whenever we define a variable, why do we use malloc function to asign it space?? why doesnt the space gets created on its own as soon as we defi...
Oct 8, 2012 at 6:25pm
[1 reply] : If you declare an object of a structure space does get reserved for it... (by codewalker)
by Hotice
Renaming a file
There is a problem with this rename() function. It, for some reason, doesn't think the file I am telling it to rename exists! Here is my code: #include <...
Oct 8, 2012 at 6:12pm
[18 replies] Last: Now, the question I should have REALLY be asking is, does anyone kno... (by Hotice)
Refreshing console screen
Hi All Just a quick question, im not sure it can be done but i will give it ago. Basically my program has got quite a few if statements in, and when the u...
Oct 8, 2012 at 6:08pm
[5 replies] Last: sorry, i was ment to mention you above. thanks for your help TheJJJunk (by mcoliver88)
Help - Complete noob
Why is this code not working correctly When i debug, i put in one word and it works fine but when entering two words as a 'Favorite game' it counts it as two...
Oct 8, 2012 at 5:46pm
[2 replies] Last: For cin the delimiter for strings is space. Every word will be treated... (by codewalker)
••THIS WON'T WORK ON WINDOWS XP!!!••
This program I made for my 7th grade class won't work on the school's computers. WHY.(Windows XP) //Made for: History homework 7th grade. //Started on: ...
Oct 8, 2012 at 5:41pm
[14 replies] Last: What? It was for school and it is not a game. (by Forseth11)
OpenGL Classes
Hi everyone. So I am starting up OpenGL and I am struggling to get some classes working. Have a look: #include <iostream> #include <stdlib.h> #include <...
Oct 8, 2012 at 5:39pm
[12 replies] Last: I think I added it. Does anybody have some sample code I can run?! (by youngcoder13)
October 2012 Pages: 1... 6263646566... 84
  Archived months: [sep2012] [nov2012]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.