It's not a case of one being better than the other; these are different syntaxes for different situations. . accesses the members of an...
Eventually, yes. But only if you have the will. Maybe a more cost effective solution than all the reverse engineering that will be necessary is...
There's no substitute for a skilled programmer going carefully through the code and fixing the problems. You can use stuff like valgrind but the...
It's very simple. Suppose you had an automatic version: struct sname M; and let's say that struct sname contains an integer j you would access...
Ok, so where exactly are you stuck? Do you know how to define a structure? To allocate memory dynamically? Make a start and see how far you...
Does this help? http://www.cplusplus.com/reference/stl/vector/
You don't sort a vector, by definition it's an unsorted set. If you want a sorted set, you have to use a different container than a vector.
Something like this maybe? void test33() { int arr[8][8]; int x=0, y=0; FILE *fp; if (!fopen_s(&fp,"C:\\_xfr\\numbers.txt","r")) { while...
Interesting. When I used ios::out, it didn't write all output to the file, probably cos it overwrote the previous contents; I had to use ios::app...
Also you never close Errorfile, so the changes you make won't be saved (they'll be rolled back when main exits and the cleanup code does its thing).
Errorfile.open ("C:\\_xfr\\Errorfile.out"); No mode specified. So it'll use the default. Which is...? (Previous post deleted cos I thought I'd...
Where would be the bit that tells it to write the output to a file?
from the command line: $ runApp within a C program: system("runApp"); I think redirection works too; not sure, you'd need to check. I think...
int x=5; int *ptr_to_x = &x; printf("x is %d\n", *ptr_to_x); Does that help? If not, what are your specific questions?
system() is your friend.
Perhaps a little more explanation would be helpful, rather than just dumping 200 lines of code on us and a one-line statement that means virtually...
No prob. Make sure you read the posting guidelines and the FAQs, you should *always* do that when you go to a new forum.
How do you want to control SVN: do you want to use an API? If you know the OS commands to perform the operations you want, I don't know SVN but...
strtok() is your friend. Merging entries: of course, when you get to those two, just combine them. No reason at all why you can't do that....
Four possible scenarios for answering the first question could be (1) P runs until it hits a wait(0), then Q starts; (2) Q runs until it hits a...
Separate names with a comma.