Archive | EN C – C

[C / C ] Simulation of strategic coordination process

About the algorithm coordination process will not present themselves in this post, you can refer to read on the net if you want (may your will write about them in a certain beautiful day). In this article I just would like to introduce (Share) with the code you calculate, Simulation of this strategy alone. The program will include 2 file là file input.txt […]

Snake game on C

Snake program has been recast based on Snake game built by Pascal however omit map (remove obstacles). To be able to install and run the program. First you download unpack and install TurboC normal. Next download the file saved in C ran.cpp:DOSBoxTCBIN. Open TurboC out, find ran.cpp file and run only. […]

[C / C ] Check in with scanf string there is some?

Really when this article weigh yourself do not know its title should write how… “Check the number you enter there is some” @@Slightly funny because it's called number and then check what, or is “Check the number of C” – well not quite ready for the purposes of this article. And finally decided to put as above for the purpose of the […]

[C / C ] Only preprocessing – Preprocessor directives

Opening this article, I'll show you a picture and you spend about 1 minutes to read the following program, Consider carefully to recognize the difference… Content 1. #define 2. Operator # and ## Now you realize the difference is not ??? Initially when put this photo up people only pay attention to the content of […]

[Algorithm] Community Stack

Regarding the operations on Stack of you can see here For a list Stack is a link to the front to back so we can not direct public 2 Stack. Suppose need community at Stack Stack S2 S1, we use 1 Stack Stemp to store intermediate values ​​of S2 and then only turn putting values ​​into S1 Stemp. If […]

[C / C ] Copy file in C

The code below will copy the contents of the file you enter into 1 Other files so you can name. If no source file is offline. Note that the file can be the same or different folder.

[C / C ] The simulation algorithm by changing the base figure

About algorithm change the number you can see on the net, however, the program would be the change of system 10 to Us 2, 8, 16 and in accordance with the format we still do. Perform on dev-C Implementation in Linux terminal Read more: Principles to switch between the muscles of the Displays system 2, Contacts 8, Contacts 16 of decimal

[C / C ] Click in Dev-C – Mouse event in Dev-C

In this article I will walk on some mouse function and event in graphic mode Dev-C ++. void getmouseclick( int kind, int& x, int& and ); -> obtain the coordinates x,and ( in pixels) where can click bool ismouseclick( int kind ); -> returns true if they happen to click int mousex( ); -> retrieve the mouse coordinates in the x int mousey( ); -> obtain coordinates […]

[C / C ] getch(), getche() in Dev-C and Linux

In the dev-C from 4.9 or less and in Linux does not support conio.h library so we can not use some of the functions which getch() and getche. Here is the code construction 2 This content: See more on stackoverflow.com and zobayer.blogspot.com

[C / C ] Connect alternating 2 linked list