Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
I am trying to compile c code in c++ and I get this error!
Illegal character(0x1)، Why this error occurred?
May be you have copied the code from the Internet!
Try typing it.
It will improve your coding ability.
Probably there really is a funny character in your file, maybe one your editor doesn't render.
Try using a hex dump program to see each byte of the file rather than an editor. You may find that there's more characters than you realize in your file.
When I started to learn C ( with an old borland in the late 90s ) I wish somebody would have told me this advice: don't use Borland. Use linux and gcc and you'll have a much better time. Now this might not be true of everyone, but it does support windows binaries too and sure would have felt better to me when I was just trying to learn ANSI C.
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed last year.
Improve this question
I'm a beginner in coding and I was practicing coding. I wanted to know that is it necessary to use conio.h in C Programming. Because I was able to run my program without using conio.h.
Is necessary to use conio.h in c?
If you don't use any declaration from a header, then you don't need to include it. There's nothing in the conio.h header that must be used to write a C program in general.
In fact, conio.h is a non-standard platform specific header on an ancient and obsolete operating system and shouldn't be used at all if your goal is to write modern cross platform programs - which is a reasonable goal to have.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
I can compile a simple app fine using codename one and netbeans. but my editor displays many errors all over making my code ugly and unreadable. See attached screenshot
Its very buggy. The first string displays no error but all the other ones do, but the code compiles and works fine. What the hell ?
also autocomplete dosent seem to work. but works fine with real java.
That's a problem in Netbeans. Typically quitting netbeans and deleting the caches directory forces a rescan which usually resolves that. See this answer for details: https://stackoverflow.com/a/10722287/756809
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have learned C for 2 months, I understand all the basics.
Pointers, Structs,Unions. all the basics in short.
But the only problem is.. that all the tutorials online just show how to make console program.
How do I start writing a useful program ?
Thanks !
I think everyone runs into this problem early on in their programming adventure. I know I did. I think the best advice is just to find something that itches, and scratch it. Think of a problem you can solve. When you have one, you will more than likely be forced to learn a few new things and then you are on your way.
It doesn't last long, by the way. As long as you persist in solving your problem, you will learn, and the more you learn, them more problems you will be able to solve.
Godspeed!
If you can't figure out something you'd like to do, then find an open-source project to get involved with, such as Apache or FreeBSD or whatever. Beware that the learning curve might be steep and you might end up doing absolute low-level monkey work (can you say documentation) but stick with it and you'll end up doing something "useful"
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I have installed codeblocks in windows 8 first time and try to run a simple C program but I get this error?
"can't find compiler executable in your search path (GNU GCC compiler)"
I tried many things to solve it but unable to compile.
I kind of encountered this problems long before.. when I was still using Windows and the Air-Quality in Beijing was still good at that time.
A problem code-blocks have, is that it might not find the proper C code compiler for you automatically. One think you can do.. is to go to the options(or something like that), and look for the compiler option, and it have some settings for you to set the compiler.
If you cannot find a proper compiler, I usually go install wxDev and use the wxDev's gcc in Code::Blocks.
Hope that helps :)
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I was reading "Operating Systems Design and Implementation" by Andrew S. Tanenbaum. It has Source code of MINIX when approaching the back of the book. I know C programming and have also studied the subject of Operating Systems, but still I was not able to understand the source code. Very few lines were such which could be understood.
I found many new libraries included over there. These libraries are not taught the syllabus of my university. Also, when asked teachers of this, even they don't understand the code. So, where can whole C programming be learnt, with all of its libraries? Because university doesn't go in depths.
In a nut shell, how can we learn C programming or any other programming language to such a depth, that by just looking at any code, one can tell what is the code gonna do.
I used to refer to a book a long time ago by Plauger...you may find it useful if you implement your own versions and then compare OR just study them. Ref: http://www.amazon.com/The-Standard-Library-P-J-Plauger/dp/0131315099
You need not learn all libraries. You have to learn how to use libraries. All libraries are presented as object files in the our c source. So you will not find any code for libraries. Learn how to use the libraries and make your task done.Here is a reference manual for standard c library. You can go through it.