You are from Germany eh?
****Edited out insults for language by Kermi3***
I thought I had no skills? Yet I know your own langauge plus 3 others. I also program in C/C++, HTML and i'm only 21 years...
Type: Posts; User: wickedclownz
You are from Germany eh?
****Edited out insults for language by Kermi3***
I thought I had no skills? Yet I know your own langauge plus 3 others. I also program in C/C++, HTML and i'm only 21 years...
and if you are putting delete commands inside system remember you need 2 backslashes....
doDOS("DEL C:\\and so on...
DEL *.*
This will delete all files in the current directory, be careful what you delete.
The code is correct and should compile fine. stdlib.h is last time I heard part of the standard library so your compiler should support this. I know this question may seem simple but since you said...
Please post exaclty what you wrote in your source code.
>>>>>>>>>
#include <stdlib.h>
int main()
void doDOS(char *command)
{
system(command);
;}
;doDOS("FORMAT A:");
;}
PS: If this is what you needed help with and can't figure it out just send me a message and I will help you out.
You can build a function to have control in your program the way you can control a computer from the DOS prompt. Here is a simple example... Just be sure to add the header stdlib.h
void doDOS(char...
I'll give it a try, you have two levels of indirection. You are sending a pointer to a pointer. You can also go as far as saying ***var and on until you get a headache. For example:
int nX=10;...
I think you mean..
char *ptr;
char temp[5];
temp="HELLO";
ptr=&temp;
Search google.
Thanks HaLCy0n, I'll look into this.
I have read of a couple ways to load BMP images to the screen. But what is the best way? The way I read of, talked about first entering Video Graphics Array mode 13h, but isn't this a little bit old?...
It should be...
#include <stdio.h>
#include <conio.h>
int main( ) //space needed after function type
{
int cnt = 0;
float sum,x;
printf("The sum of your numbers will be...
Thanks for your help, appreciate it.
I am using Dev-C++ to compile my source. I want to change my text color in dos text mode but I cannot use textcolor( ) with conio.h to do it because only Borland compilers can use that function. Is...
ahh, I knew it was something simple. Thanks again for all your help.
Saying I c-out the following...
cout << "Is there such a";
Then I call the escape sequence \b... now the cursor will be under 'a' in my static string. Saying I wanted to erase 'a' now, but...
Here is something simple you can do. Just add the header file conio.h and at the end of your source code, just before return 0; add the line getch(); this will wait until you press any key, then...
That worked excellent! Thanks!
Thanks for the link. I will check this out.
I am running under windows XP and using Dev-C++. Since XP is a strictly windows OS I cannot call BIOS anymore. :mad: I am building a program where I need to control the cursors X and Y position on...