Oh... There have been times where dropping the .h hasn't worked for me, so I tend to leave the .h there. Also, I've gotten the program to work for sorting numbers that the user types in, but...
Type: Posts; User: Derek5272
Oh... There have been times where dropping the .h hasn't worked for me, so I tend to leave the .h there. Also, I've gotten the program to work for sorting numbers that the user types in, but...
I will try it, I was just using the first one thrown at me to get it to work. And, hey, it did. Its interesting though... I dropped the .h from the end of cstdlib and cstdio and it worked. Now I just...
Ok, I haven't copied that completely out onto my laptop, but for some reason cstdlib and cstdio aren't on there, but they're on this computer. So, I don't think that will work on it. I'll give it a...
Hey, that actually worked... Now I've gotta get it on my laptop @_@ Anyway, thanks.
I said cstdlib.h can't be used...
And Cat, if there were multiple problems, why did you only tell me of the one? I fixed the Index thing, and it says that before the sort it is "5" and after it is...
Ok, neither of those work, and I'm not even going to bother putting the errors up. Does anybody know a way to fix my code that will actually work?
Ok, sorry...
#include <iostream.h>
#include <stdlib.h>
#include <stdio.h>
#define SWAP(a,b,c) { a=c; c=b; }
#define INDEX 8
Ok, I'm gonna bump this before it slips off the page... Can't anybody help me?
Ok, thanks. It still gives me an error though. It says that 'std' doesn't exist or isn't a namespace.
Also, it said it couldn't use cstdlib.h, so I just removed that line.
Edit: Ok, I commented...
Ok, thanks. I thought I may have just been missing something because I had to copy from one computer to another... Thanks. By the way, do you know of a way that I could make the values strings...
Ok, here it is:
#include <iostream.h>
#include <stdio.h>
#include <stdlib.h>
#define SWAP(a,b) {int t; t=a; a=b; b=t}
#define INDEX 8
Because most people only post the code they're having trouble with, not the entire thing.
Ok... Now, could we get back on topic and answer my question? Thanks :)
Ok, I'm starting to get really confused...
Anyway, yesterday I found code for this in the source code section of this site (here). I copied that out, modified it to C++ commands and stuff, and it...
Nobody can help me out anymore? Guess I have to wait another 5 hours.
Thank you! Now I've gotta copy it onto my laptop... Ah well. Thanks again.
Edit: Sorry, maybe I'm just stupid. I can't figure out how that works. Could you possibly tell me how?
Um... That's exactly what I don't know how to do. Can you post a snippet of code to get me started?
I'm about to start work on a program that will sort strings in alphabetical/numerical order. I searched the tutorials and the FAQ, but I didn't see anything that would help with this. Could anybody...
:-( The download site isn't up so I can't download it... But that would be a LOT of code.
For the 2nd problem, it shows that when you have edited your code since you last executed it. The compiler notices that the executable file's code doesn't match your source code, so it decides that...
I use both MSN and AIM, but I am on MSN much more than I am on AIM.
Considering he wants code that will output "Hello" in a color, I'd say he wants it to have colored text in the dos window
MS VC++ 6.0 Intro Ed.
I think its installed with the compiler. You'll have to give her the .dll too if you want her to be able to run your program.
And I think you'd have to make the dll part of the install file...
msvcp60.dll or something like that... It should be in C:\Windows\System