In this PHP web-programming language we will take a look at file handling. We will take a look at how to open en close a file, how to read a file line by line and how to read a file character by character. More »
Posted in PHP Tutorials |
In this C language tutorial we will look at a much-requested subject, printing a star pyramid and a string triangle using for loops.
We know that this question is often asked as part of homework (lab) assignments, but we got so much requests that we couldn’t ignore it. BUT we are urging you to at least try to make the homework questions yourself! At the end of this tutorial we will give two alternative questions, so you can try to fix those yourself. More »
Posted in C Tutorials |
In a previous C language tutorial post the user “nikko manlangit” asked the following question: “How to convert seconds to decade or vice-versa?”. This C tutorial make use of time.h functions to answer his question. More »
Posted in C Tutorials |
In a previous c++ language tutorial we looked at C++ overloading of binary operators. In the comment section of this tutorial the user ‘prince’ asked for a binary operator overloading example of greater than. This tutorial is the answer to his question. More »
Posted in C++ Tutorials |
In this PHP language tutorial we will take a look at server side includes (SSI). We will look at include(), require() and require_once() functions. These functions can be used to insert content of one PHP file into another PHP file (on the server side) before the server will execute the file. More »
Posted in PHP Tutorials |
After a comment of a visitor on the C++ Unary and binary operator overloading and static members we did a complete rewrite of the page, because there where some minor errors. The new tutorial is much better in our opinion and it has more examples + you can download the large examples. So don’t forget to check it out!
Posted in Website News |
Below you’ll find all the unary and binary operators in one easy table: More »
Posted in C Language Reference |
In this C language tutorial we will show you how to search for a string in a text files. We will make use of command-line input, fopen or fopen_c and system to clear the screen. Make sure that you have read and understand the following tutorial C tutorial File I/O using Text Files before you continue this one. Add the end of the tutorial you can download the source code of this tutorial.
We start this C language tutorial with some include statements. To make use of strings in your program you need to make sure that you include the header file string.h
More »
Posted in C Tutorials |
The function strstr() returns a pointer to the first occurrence of x in a string.
It is also know as searching for a sub-string in a string.
Usage:
char * strstr ( const char *, const char * );
char * strstr ( char * str1, const char * str2 );
Return Value
A pointer to the first occurrence in str1 of any of the entire sequence of characters specified in str2. If nothing is found a null pointer is returned if the sequence is not present in str1.
More »
Posted in C Reference string.h Functions |
The moving from website NextDawn.nl to CodingUnit.com is done!
All pages from nextdawn.nl will now redirect 301 to this site.
So please change your bookmarks and links in your website(s)!
From all the URL’s, only the first part will change, everything else will stay the same.
For example: http://www.nextdawn.nl/category/c-tutorials will become http://www.codingunit.com/category/c-tutorials and so on.
Please let us know if you are missing anything!
Posted in Website News |