Thank you very much to everyone who helped me. if anyones interested heres the completed program:
// Runas Program Created by SuperStonerMan
#include <iostream>
#include <cstring>...
Type: Posts; User: superstonerman
Thank you very much to everyone who helped me. if anyones interested heres the completed program:
// Runas Program Created by SuperStonerMan
#include <iostream>
#include <cstring>...
Thanks sprintf( control , "access.cpl\0" ); works fine. The problem is however that I need a quotation mark at the end of access.cpl. So the output is: access.cpl".
How would I code this as I...
Thanks for your help but im having problems with strings. Iv read the following tutorial:
http://www.cprogramming.com/tutorial/string.html
But the the follwoing code wont compile:
#include...
hey everyone iv got a problem with the below source and I cant understand why it wont compile. When i try to compile it I get the following error:
105 runassrc.cpp incompatible types in assignment...
I can’t believe I missed that lol I must read over the code like ten times. Thanks.
One more quick question is there any difference compiling C source code on windows or Linux when the functions of...
Iv modified the code to create a larger program but when trying to compile the code in GCC in mac os x I keep getting the error:
program.c: In function 'main':
program.c:43: error: parse error...
oh actually after checking it doesnt. i just changed the code more than i had thought from the original from the site. This is the original code from the cprogramming site:
#include <stdio.h>...
Thanks for your help. the reaons i was so confused is that cprogramming.com says u need the & in the printf statement. oh well i guess their wrong lol. thanks
Thanks for your help it works now. I made the changes you suggested. One question though why do we use the & before the variable in the scanf statements but not printf statements:
scanf("%d", &p);...
Hello everyone im new to this forum so id like to use this first post to say hello.
Anyway im new to C and am currentley learning the basics. I am trying to create a simple program that will take...