| New Reply |
Text Editor and Complier |
Share Thread | Thread Tools |
| May7-12, 10:29 AM | #1 |
|
|
Text Editor and Complier
Hey everyone,
Recently I bought a programming book for C, I've been waiting eagerly to start, but I can't because I dont have a text editor or complier. A couple of people have suggested that I download Microsoft Visual. I did this and I tried to write a simple program from the beginning of the book, but sadly, It wouldn't let me. If anyone could help me out and give me a good solution, I would greatly appreciate it. Also, sorry if it seems like I have no clue what I'm talking about (which I don't). Thanks!! |
| May7-12, 10:55 AM | #2 |
|
|
How about Eclipse or NetBeans? I've used both but prefer Netbeans since many of the more common plugins are available in Netbeans bas download.
NetBeans IDE can be used to develop Java or C/C++ projects. However n Windows you may still need to download a C/C++ compiler such as the GNU C/C++ compiler. Both IDEs have builtin lexical editors for Java and C/C++ source code. |
| May7-12, 12:22 PM | #3 |
|
|
A small nice IDE is Code::blocks. I have it in my Windows OS. I usually code C++ but I am sure it works for C as well.
Windows does have a text editor (default one is NotePad). If you want to write C code, you will have to save it as a .c extension. Then you can use your compiler to compile the code. |
| May7-12, 04:32 PM | #4 |
|
|
Text Editor and Complier
|
| May7-12, 04:37 PM | #5 |
|
|
Also, are you sure the program you downloaded was something like "Microsoft Visual C++ 2010 Express"? Visual Studio works with a number of languages, and you want to make sure you're using the C++ one. e.g. you do not want "C#", "Visual Basic", or anything ".NET". |
| May7-12, 04:54 PM | #6 |
|
|
|
| May7-12, 05:02 PM | #7 |
|
|
One quick question. Why C instead of C++?
|
| May7-12, 05:08 PM | #8 |
|
|
|
| May7-12, 05:25 PM | #9 |
|
|
Really?
Getting the whole language in C++ is a bit harder, but after the first half of most C++ tutorials, you're pretty much able to do anything you could do in C in C++. So that half isn't any harder to grasp than the C bit. C also teaches "bad habits" from an Object-oriented point of view. |
| May8-12, 12:12 AM | #10 |
|
|
for eclipse: www.eclipse.org and for netbeans: www.netbeans.org both are free
both handle C/C++ and Java and several other languages. The editors understand the syntax of your code and will warn you when you go astray. Notepad on windows won't do any of that but for a true hacker notepad would be a luxury. Another low-cost editor would be vim, also free, while you might have to get used to vi editing style its saving grace is that it and/or vi are available on every platform imaginable ie windows, macos, linux flavors. It will show your code in color and handle brace checking. Also anytime someone suggests something without a web site you could try googling for it before asking. Its always good to be somewhat proactive and independent in learning about new things. |
| May8-12, 12:47 AM | #11 |
|
|
|
| May8-12, 01:03 AM | #12 |
|
|
I downloaded the Netbeans software. Looking at it I've come to realize that I have absolutely no clue what to do );
|
| May8-12, 01:30 AM | #13 |
|
Recognitions:
|
visual c++ express should work, even for a c program. It might be easier to create a new project following these steps: Create a new directory. Create a small .c file in that directory. Start visual c++ express. Select create new (win32) project, and enter the directory name you created as the project name, then click next. Click on "empty project" (otherwise you get stuff you won't want). This should open up the main project window. Click on project, then click on "add existing item" and select the c file you created. Optionally, click on project, properties, configuration properties, then select "all configurations" (instead of just debug), then "character set" and change from "unicode" to "not set". Then click on file and save all.
You can then start entering your c program from the book, compile it, and debug it step by step. |
| May8-12, 06:53 AM | #14 |
|
|
|
| New Reply |
| Thread Tools | |
Similar Threads for: Text Editor and Complier
|
||||
| Thread | Forum | Replies | ||
| Best math text editor (windows) | General Discussion | 1 | ||
| Strange behavior of Forum text editor | Forum Feedback & Announcements | 4 | ||
| Crafting text editor | Computing & Technology | 2 | ||