How to start programming? [closed] - c

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I read a lot of books about C/C++ in Linux and write simple programs. Now I want to try myself with some project. What you can recommend to? (Sorry for my bad English)

If you don't know what to do and just want to get a little experience, try implementing the towers of Hanoi, it's a classical programming exercise (the Wikipedia article might seem frightening at first sight, but the actual algorithm is dead-simple and you'll find lots of material about it online, even a lot of sample implementations). First, start with a text-only solution that just prints numbers. Then, try to "draw" the towers using ASCII art. You can also do this with a GUI, but as a novice it's easiest to start with text-based version.

Related

Getting the number of CPU cores using only C standard library? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I was asked this during an interview, and I wasn't able to come up with an answer.
The idea is to write a program using only the C standard library, and find out how many CPU cores the box has. The solution needs to be platform independent, and using external libraries or system calls is not allowed.
Does anybody have experience with this? Thanks!
Thanks everyone who participated. I think now it seems like the answer will be "there's no reliable way of doing this." Great discussions guys!

Need to write a program that takes an assembly-language program and produces the corresponding machine language [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I am very new to programming and I need to write a program that takes an assembly-language program and produces the corresponding machine language.
I need to write the program in C
Does anyone know any good tutorials I can find to create this program?
What you would want to do is finding a datasheet which describes the different op codes for the assembly instructions you're writing. Try ISA "your processor name" - this might come up with something useful.
It probably will be hard and you will run into a lot of problems, but you'll probably learn something from it.

3D or 2D graphics in c/c++? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I need to construct a circuit from a structural program and break it and interchange the parts.
I was wondering how do I do that in C++/C?I try drawing graphics using graphics.h line by line,circle by circle its s time consuming!!! Is there any other way of doing it?
I use turbo C and dev c++.
You will have to draw every line and circle through your code,there won't be a shortcut for that. Though, I would suggest using other graphics libraries like OpenGL. In other languages certain IDEs have features wherein you don't have to write a code but you can manually design your graphics on a editor window and the code behind is generated on it's own. I'm not sure if there are any such IDEs for c/c++.

Console Based Calculation For Super Human Mind Training? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
Thanks for giving me your valuable time, I wanna create a Brain Calculation Package. Basically, I will generate random numbers and throw it to user and user will enter the result. This will test his accuracy and will make him more sharp.
But, I am pretty confused to use what sort of programming language. My aim is to make the user to calculate digits till 100 digits with time. Please throw some light on this.
What sort of algorithms and strategies can i use?
Are there any other programs available currently to achieve this?
I have no idea what you're trying to do. But if I were drunk and wanted to spit out random numbers, I'd probably use Python.

how to write a web browser from stratch use c [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
These days I'm aware of the powerful web browser. In order to know what happend behind the screen. I want to write a simple web browser. But When I try to find document about that. Nothing find! Any one konw how to write a simple web browser or know where is the book will be useful. Please tell me !
Thank you very much!
Start off with a simple browser -- e.g., look at existing text only ones like lynx or w3m. Once you've got them cracked, then you can work up to adding graphical elements. It can get complicated fairly quickly, so make sure you've read the appropriate RFCs for HTTP and the W3C standards as well. These aren't light reading material though :-)
Here's something to get you started:
https://developer.mozilla.org/en/Download_Mozilla_Source_Code
C might not be the best language for this job.

Resources