No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
13 Posted Topics
Ok I have a program that uses HTML to get some values from a user using a form and then it is passed into a javascript function that does some calculations with these numbers and creates a new variable name. What I need help with is that I want to …
I don't know for sure what kind of calculator you are using but if it is a [B]TI version [/B]this will work in your program it should ask for your inputed numbers then save them... example: [code][LIST=1] [*]Prompt x, y [*]x+y→e [*]disp e [/LIST][/code] [B]disp e[/B] makes it display e …
I think I have that assignment done lmao here let me look. what is it supposted to be saved as?
Yes you could use rand in time.h to create randomness and say if it is a range from a certain number produced by rand it would output one sentence then another if it equaled something else.
I can't seem to figure out why it keeps repeating level one anyone got a suggestion on how to fix it? [CODE=cplusplus]#include <iostream.h> #include <stdio.h> #include <windows.h> #include <stdlib.h> #include <conio.h> #include <ctype.h> int mx=14; int my=1; int i, j; char direction = ' '; char facing = 'S'; char …
hehe I am doing the same thing... here is a link to my source code....it all works except for some reason it keeps repeating level one (I'd be greatly appriciative if you [or anyone] could find where it was looping and fix it). [URL="http://www.daniweb.com/forums/thread117258.html"]http://www.daniweb.com/forums/thread117258.html[/URL]
well now it looks like you don't have anything to exit your loop and it keeps repeating... change your while loop to something like [CODE]while (x>=-1)[/CODE] I don't quite understand why you are asking for the height and width twice...
my administrator at school blocked commands for command prompt so I can't use system pause or system color commands....anyone know a way around this?
He initializes 'i' the first time in line 63 then he re-initializes it in line 85 just change the int in line 85 to like 'k' or something... should fix that problem. you are trying to assign the variable i two different values (C++ doesn't like that) if you just …
I'm guessing that right here: [QUOTE]for (i = 0 ; i < SIZE ; i++) { list[i] = -10 + rand()%10;[/QUOTE] you didn't close your for loop with }
first you might want to start out with something simple like what the cost of something is and have them input it...then save that and have them input what they payed then create a simple formula for what the difference is then output it to the screen and so on. …
First please fix your instructions on what you are doing...then where is your main funcion?
ok I am making a maze for my school with gotoxy and getch and 2d character arrays I have 2 errors though when I am compiling it.. here's the source: [CODE=cplusplus]#include <iostream> #include <stdio.h> #include <windows.h> #include <stdlib.h> #include <conio.h> #include <ctype.h> using namespace::std; char moveR; char moveL; char moveU; …
The End.
TMD