nevermind, I found the answer on one of the articles
Type: Posts; User: Gil22
nevermind, I found the answer on one of the articles
Hi,
I have a program where I am using an integer array. I had to get some character input from the keyboard and store it in the integer array which worked fine since it stored it as the ascii...
what exactly is a simm tester
is it possible to write a program that will take all the unused memory locations on your computer and set them to 0?
can someone tell me why this doesnt produce the rigth number?
#include <iostream.h>
int main()
{
double ounces = 0;
double tons = 0;
never mind.......i'm an idiot and figured it out. i had a null as the last place in the linked list and when i was tested it i was only outputting the top->data which was a null and didnt output...
if i make this linked list in a while statement, can i still access it outside the while statement?
its a run time error.......i'm trying to input an array into a linked list. i dont think it has anything to do with changing it fropm a 2 to a 1 dimensiona array because it works when i just have the...
can anyone see why this code isnt working?
while(array[i][j] != '?')//while not end of array
//invariant: array[i][j] is not a question mark and array[i][j] is part of an array
{...
alright i think i actually need to use complex numbers......is therea way to declare these?
so to declare an imaginary number......i could just do this right?
double i = sqrt(-1);
ok i get what imaginary numbers are now. i have to write a program that solves the quadratic formula and i need to include imaginary numbers in the program......what do these numbers have to do with...
ok you got me.......i feel like an idiot but what exactly is an imaginary number?
is there a type of variable you could use to represent them? i dont really know a lot about imaginary numbers and i need to use them in a program i have to write
what kind of variable would you use to represent these?
lol........i've been making some stupid mistakes lately. thats def it, thanks for helping me catch that.
x works fine......its the cout << y[1] that screws up, it should output a simple character but it outputs a piece of junk instead. when i test the filling of the array inside the loop it works fine...
it doesnt work for some reason.....here a small example of my code so you guys can see what i'm trying to do
while(top2 != NULL)
{
int i = 0;
y[i] = top2->data;
cout << y[i];...
yea thats exactly what i was doing......cant you do that with an array and it will output what you put in it?
ok heres another question then.......i declared it outside of the variable but if i try to output it after the while statement then just junk comes out. its an array by the way, it outputs fine while...
if i declare a variable in a while statement, can that variable only be used by the whiel statement? i tried doing that and then when i try to access the variable later in the program it says that...
i want the user to be able to enter a string but for the program to access that string one character at a time. the exact same thing as getting characters from a file using in_stream.get(next) except...
ok that didnt work.......what was that last ::blab line?
i dont understand how that would work......wouldnt it get an integer instead of a character. i want to be able to have the user enter a sentence and access that sentence one character at a time.
i know gow to get characters from a file using in_stream.get(next). is there a way to get characters from a user instead of from a file and how would i do this.