How to Make File Descriptors in C
Utilizing the Unix I/O functions that use file descriptors in C is an alternative way to work with files in your program. A file descriptor is an integer value that identifies an open file. The...
View ArticleHow to Make a Lottery Game Using C++
Creating a lottery game in C++ is a great way to introduce yourself to the basics of user input, output, arrays, random numbers and loops. To code a lottery game you first need to have the user input...
View ArticleHow to Make Random Number Codes Only Even on C++
Generating random numbers is useful in conducting statistical experiments or when designing games of chance. Like most programming languages, C++ has a random number generating command. Its output can...
View ArticleHow to Have Nullable Variables
In C#, a C-like, simple, general-purpose programming language, variables can be made nullable; it is possible for the value of a variable to be null. For example, for some Boolean queries, particularly...
View ArticleC++ Fibonacci Number Function
Create a Fibonacci sequence in C++ by encoding a formula that starts with 0 and 1, adds them together and then adds the product to the largest factor in the equation. Set the number of the members of...
View ArticleHow to Compile C Projects
Compiling your C project helps you create an executable program from your source code. C is a popular procedural programming language. A C compiler transforms your source code into a lower level...
View ArticleDefinition of the C++ String Function
A common feature of most programming languages, strings simply contain information. In the C++ programming language, the string function possesses an entire class of commands and features for increased...
View ArticleHow to Make a Basic Game in C++
C++ is a computer programming language that allows for the development of a variety of applications, including interactive games. While making a modern game takes dozens of developers years to...
View ArticleOdd/Even Function in C Programming
The C programming language was designed as a human-readable, system design language for programmers to work with on software development. The syntax and operations of C (such as mathematical...
View ArticleHow to Jump Out of a Void Function in C++
A "void" function data type returns no value to the function that called the void procedure. C++ void procedures provide programmers with calculations that can be re-used several times in the code...
View ArticleHow to Compile C Code With G++
Programming languages like C require that source code be translated into an executable program a CPU can understand. This is accomplished using a compiler. Compilers translate the syntax of the C...
View ArticleHow to Embed in Python
Python is a high level computer programming language designed by Guido van Rossum in 1991. Python is licensed through the "Python Software Foundation License," which is a free software license. You can...
View ArticleHow to Link to a CPP File
Microsoft Visual C creates a CPP file that contains all of your C++ source code. You can link and include any CPP file to another project. This means that you do not need to create the code a second...
View ArticleHow to Get Keystrokes in C++
Use the "cin >>" function in C++ to capture user input from the keyboard. You get the entered characters when the user presses the Enter key. Include the "conio.h" function library in your source...
View ArticleHow to Calculate the Size of Elements in Buffers in C
When programming in C, a buffer is an array used to hold a set of elements. Calculate the size of a buffer in C by using a built-in function. Knowing the size of a buffer in C is important, as it tells...
View ArticleHow to Create a Vector of Strings in C++
C++ is an intermediate-level programming language, as categorized by its degree of abstraction away from machine code. Creating a vector of strings is sometimes used as a problem given to students...
View ArticleHow to Compile C++ Code Using GNU
The Gnu Compiler Collection, or GCC, is a free open source compiler that compiles C, C++, C#, Fortran, Java, Ada and Go source code. It is available for the Linux and Unix operating systems. Use the...
View ArticleHow to Do Vector Addition in "C"
In mathematics, vectors are objects that have both a direction and a magnitude, and are used in both simple and complex calculations. The C programming language was designed with vector support in mind...
View ArticleHow to Cast in C From Object to Datetime
In the C programming language, "casting" an object involves converting it from one format to another format. For example, if you have a string that contains and date and time, you can convert it from...
View ArticleC Static Inline Function
Functions in C (and in most any other programming language) are integral to developing and maintaining any sort of complex coding project. Functions name blocks of code that perform a certain task,...
View Article
More Pages to Explore .....