Hi, can someone help me get started on writing a C, not C++ application in Visual Studio. What setting do I need to set and what code (ie, precompilers) need to be put in the file? A nice tutorial link would be great. Thanks Mucho. George
Hi, can someone help me get started on writing a C, not C++ application in Visual Studio. What setting do I need to set and what code (ie, precompilers) need to be put in the file? A nice tutorial link would be great. Thanks Mucho. George
Hi, can someone help me with functions that do substring, left and right cuts from a string.
examples:
thanksCode:string = "cprogramming" right(string,1) = "c" left(string,4) = "ming" substring(string,3,4) = "og"
I got my rights and lefts backwards, sorry.
with VC++ 6.0, all you have to do is name the file with a *.c extension, then turn off precompiled headers (they can't be used with C). you can even mix *.c and *.cpp in the same project and the compiler will compile them appropriately. Turn off precompiled headers, select menu item Projects --> Settings, then select c++ tab in the dialog box. Change "Category" combobox to "Precompiled Headers" and hit the Not Using Precompiled Headers radio button.
you have to write your own left, right and substr functions. Isn't very difficult, and will give you good practice improving your C language skills.
Last edited by Ancient Dragon; 10-01-2005 at 04:47 AM.
VB programmers stand out like a sore thumb
You're right sand_man, what was i thinking using that junk, VB made me a bad programmer. by the way, it worked Ancient Dragon, much thanks.
why do you call it junk?
This thread is 2 years old - see the rules, don't bump dead threads.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.