thegreatstudio wrote:There are some problems that i cant configure
Perhaps you mean you "can't figure out"?
You posted this on an OS development forum, but in your post you ask for help with a regular program.
An OS is a very special program, it is not an .exe that you can double-click on.
So if an OS is really what you want to code, read more here:
http://wiki.osdev.org/Main_Page
Anyway, here is the corrected version of your C program (not tested):
Code: Select all
#include <stdio.h>
#include <string.h>
int main(void) // return type int, and void for no parameters
{
char help[100]; // array of char, not one single char
int version;
version = 14;
printf("Welcome to Isaax OS!;");
printf ("Please type help for commands!: \n ] ");
scanf("%s", help); // missing quotation mark
if (!strcmp(help, "help")) // this isn't C++
{
printf("Available Commands:\n");
printf("osver -- prints the version of this os");
}
else if (!strcmp(help, "osver"))
{
printf("your kernel version is: %d", version);
}
}