Always define main as returning an int, then return one. It's that simple.
Try using Valgrind, see if that gives you any info.
Please read the "Before you make a query" thread. Incidentally, your judgement that you know better how to format your post than Shabbir does...
See Alazar's post, the malloc statement.
Duplicate. Thread closed. Stop doing that.
You might check out file attributes. Aside from that, I'm not going to help you do anything insidious.
This sort of stuff occurs two or three times a day. Let me make a suggestion: when you come to a forum, read the rules, the faqs, the "how to...
Mukul.Mangla, I am not deleting your posts, because I want the owner of the forum to see them and ban you. I am closing this thread, meanwhile....
This means that you have set up your project to be a Windows project, not a console project. It has nothing to do with your code, per se. A...
You should never put actual code in a header file. Header files are designed to make declarations available to a number of source files....
Duplicate thread. Locked. Do not do this anymore.
This is not a free software store. You should either 1) Attempt to write the code and ask here for help with your problems. 2) Put your...
Here's the deal, then. Open a file for output. Set up a while loop. Inside the loop, ask the user to enter two numbers. Validate the input...
Your question is not clear. I don't think you want to write your own programming language. I think you probably want to use C/C++ to accept...
Read the "Before you make a query" thread, particularly with regard to the use of code tags.
You may not realize it (you should), but tens of thousands of people, if not millions, have solved this problem. Read your responses and follow...
See another of today's posts regarding programs closing in some manner that seems premature to you. It is not strange. It is appropriate...
Programs do not wait for you to view their output. Theyperform their tasks, then they terminate. This is not a strange phenomenon, it is...
You have a bad, but common idea. Values stored in (and used by) your computer are binary. When your view these values on your screen (or...
You can't delete a string unless it's dynamically allocated, you can only make it empty.
Separate names with a comma.