AWESOME!!!!!! thank for all the tips and advice I got it going :) :):) I really appreciate giving me advice and not just the straight out code of how it would work. Thanks agian:):)
int i = 0;...
Type: Posts; User: phillyflyers
AWESOME!!!!!! thank for all the tips and advice I got it going :) :):) I really appreciate giving me advice and not just the straight out code of how it would work. Thanks agian:):)
int i = 0;...
Thanks again, I'm on the final part and I just wanted a piece of advice. The array is has values 0-19. I need to move all the values up to the next one. So it should look like 19 0 1 2 3 4 ...18 ...
Thanks rcg I managed to figure out I need to variable to get the values but it would not print out what I wanted until I did what you have up there the i +=2, Im not sure but is that i +=2 because I...
Am I going completely wrong about this, I'm starting to think how is it even possible to tell the loop to assign a[i] the next value but for the next loop assign the previous value? My first two I'm...
Ok just got back from a break and I'm still lost. Its not swapping just add 1 to the number, also I was thinking I might have to use an if statement in the while not to go over 19? I've tried...
I see what your say I tried it it code but it doesnt work it give me the next value so 0 become 1 1 becomes 2 and then 19 gives me -8873948 because it is over the max value of the array
for (i =...
Man I'm blank lol I just dont see how I can do that. If I tell it that Temp = a[i] which is what ever i is for that loop (lets say 0) I just cant seem to find a way I would tell the system to go to...
Hi thanks for your reply, I just want to swap the current value with the next one. I only have 0-19 so the first swap would be to make 0 1 and 1 0, I just am clueless on how to start with a loop. I...
Hi Guys,
I hit a road block, I'm trying to swap the values of an array an example would be swapping a[0] with a[1]. I understand you could easily do with using a temp but I'm really stuck on how...
thanks you very much :) I was pullin my hair out over here
Thank for the help guys, now I just have to figure out why 2012 studio is being crazy and giving me that error
my complier must be broken it is still giving me that error, I even went as far as declaring it in the if loop to see if it removed the red underline but nothing.
...also its stay my scanf is...
Ok guys, I'm about to smash my computer. I am doing this function call the same way I have it in another program but it keeps tell me that when I try to call the function "a" is not indentified. Am...
Thanks but I must have something wrong it doesnt seem to be passing the odd or even values to the odd/even arrays
Ok I've worked it a little further Malcolm should I change the odd and even counter to 1? I dont think I have the code right. I'm tyring to put the odd and even values in separate arrays. Thanks...
Trying to figure out what I have done wrong but the second part were it is supposed to determine if it is a odd or even just prints the number 41
Thanks I'll update that
Hi guys, I am trying to print the odd and even values of an array 10 per row. I keep getting the same number printing out can anyone see if my logic is wrong for identifying the odd and even...
Hi Andi, thank you i was missing this one line it now prints it right. It is the terminal that makes it look like it isnt doing the numbers on 4 rows.
for(i = 0; i < 4; i++)
{
...
I have visual studio 2012 and I am not get any warnings it just prints out nonsense. I tried doing what my Prof. replied with I'm not sure if the program is correct, because it still is printing on...
Thanks Click_here changed that but I'm stuck lol. I'll wait to see when the Prof. gets back to me I'm just burnt out been messing with this since 3:00pm central time lol. Thanks again for everyone...
One last question and again thanks everyone for your help I'm just impatient and instead of waiting till Monday to hear back from my teacher I was hoping someone here might know. Is there a...
Ok I found out why I was getting trash lol noob mistake I was telling it to print 4 25 and forgot that arrays start at 0 lol. I got it going so far just need to think of how to get the for loop to...
LOL I think I figured out why its printing out only one value cause by putting array2 [4][25] I'm telling it to only print what is in there right? Now I just need to figure out why it is trash value...
Thanks again it worked but prints out trash and not in the format of 4 x 25 :( I posted my code below to show you what I have so far. Thanks again for all your help just hoping the teacher gets back...