This is the C++ forum.
Dev-C++.
BUT, I need it to happen in DOS. As in, booting to a bootable floppy.
Are you sure? Usually the "DOS" found in Start->Run->"cmd"/"command" will work just fine. Or you can run your programs straight from Dev-C++.
Download Dev-C++ and try this sample program:
Code:
#include <stdio.h>
int main(void) {
printf("Hello, World!\n");
getchar();
return 0;
}
I need to query the CPU for the CPU-ID string "name string" and display it.
The CPU? Never mind. Try this program:
Code:
#include <stdio.h>
int main(void) {
char name[80];
printf("Enter your name: ");
fgets(name, sizeof(name), stdin);
printf("Hello, %s", name);
return 0;
}
(That leaves the newline on name, but it should give you a general idea.)