Got it!! Yay! Thanks for your help! I appreciate it!
Type: Posts; User: Donn
Got it!! Yay! Thanks for your help! I appreciate it!
This code is supposed to take in ten numbers from the user and print out the highest two numbers. I think I'm having a problem with the last buffer not being cleared when I enter 1 thru 10. Here is...
Pointers on C - Reek
It's a little more advanced, but an excellent reference.
Yay! It works! Thanks!!!! :)
I tried gets(name), but upon execution, it doesn't let me input information. I'm not sure what I'm doing wrong here.
Ok...this is the code that's not working well for me so far. I assume it's a problem with my function calls since I see that the scanf is working correctly. Where am I going wrong? Thanks in advance....
er, Nevermind. Got it going. Thanks for your help!
I tried using those but when I run the program, it never gives me the chance to input the information. It just flashes by...Did I need to do something else?
I would like to input a whole name (including spaces), Here's what I have so far:
#include <stdio.h>
char name[50];
int main(void)
{
scanf("%s",name);
printf("%s",name);
Hello,
How would I get my C program to email a file automatically via something like Microsoft Outlook? And can I get the file to be emailed at times that I could designate? I've never done this...
I tried this line:
ShellExecute(NULL, "open", "c:\\helpme!.doc", NULL, NULL, SW_SHOWNORMAL);
and I received a linker error saying:
Link Error : Undefined symbol: _WinMain@16 in...
WitchKing,
I cut and pasted your code. I changed to my Metrowerks compiler and I'm running Win98. The document is on the C: drive as well as MSWord. Still hasn't run for me. I have to note to you...
I appreciate the help everyone, but I've been unable to get it going using the system function. I think I may go look up a spawn function or shellExecute and see what they do and try to get it going...
That's just it. When I go to the command prompt and type in my document name (i.e. >>c:\mydoc.doc<<) , MSWord does start up. But I can't get it to start up within my program. That's why I figured...
I tried:
system("c:\\winword mydoc.doc");
and
just for laffs,
system("c:\\winword.exe mydoc.doc");
Yep, the files there. I thought of that...I tried on various files to try to get this working. I also tried different things on the system function such as a "copy" and "dir" and those things work...
Go to www.ee.cleversoul.com....On the left hand corner, scroll down to "software", and click on "compilers"...there should be a few there.
I revised the program (i.e. put the extra slash in and put in int main() and return 0) and I still get a "Bad command or file name" when I try to execute the program. Any other suggestions?...
I've used the following code to invoke MSWord from a DOS based C compiler unsuccessfully....Where am I going wrong?
#include <stdio.h>
#include <stdlib.h>
main()
{
system("C:\helpme!.doc");...