|
 |
blitzcoder
We have all read about C++ Standard Template Library. It provides generic code for data types. Like vectors, pairs, list, sets, maps, etc. Today we'll take a good look into Vectors.
VECTOR
We have all been using arrays to store elements. But you must have thought at one point or another,...
|
|
0 |
64 |
|
 |
coderzone
/*question number 1*/
int z,x=5,y=-10,a=4,b=2;
z = x++ - --y * b / a;What number will z in the sample code above contain?
Choice 1
5
Choice 2
6
Choice 3
10 Corrected by buddy by running the program
Choice 4
|
|
115 |
156,777 |
|
 |
blitzcoder
We have all been using screensaver's since the time we first entered the world of computers. Everyone of us must have thought how one can make a screensaver of his/her own. Screensavers were originally meant to prevent damage to phosphorus coated computer screens. Now they are mostly used for...
|
|
0 |
142 |
|
 |
coderzone
Finds INTEGRAL of f(x) by Trapezoidal and Simpson method Simultaneously
TRAPEZOIDAL RULE :-
Integral of F(x) in between the limits a and b is given by
=(h/2)*(y+2(y+y+y+..y)+y)
where y=F(x),
x=x+h,
h=(b-a)/n.
|
|
2 |
289 |
|
 |
blitzcoder
Networking is all about transmitting messages from one node to another. The simplest example can be to transmit "Hello World" from one computer to another. Socket programming in C/C++ has already been covered. Today we will see how to check if the transmitted data has any errors.
There are many...
|
|
0 |
133 |
|
 |
techgeek.in
Today we will discuss about Sockets programming paradigm, elements of Sockets applications, and the Sockets API. The Sockets API allows to develop applications that communicate over a network. The network can be a local private network or the public Internet. An important item about Sockets...
|
|
5 |
2,192 |
|
 |
blitzcoder
Dev-Cpp is an application which is used to code and run programs in C/C++. It has its variations but none of them come with a pre-installed graphics library. So if you are switching from some primitive editor like TurboC to Dev-Cpp (which follows ANSI specifications correctly) and try to write the...
|
|
2 |
242 |
|
 |
shabbir
InFix to PostFix
Introduction
Infix Expression :
Notation in which the operator separates its operands. Eg (a + b) * c. Infix notation requires the use of brackets to specify the order of evaluation.
Postfix Expression :
|
|
26 |
47,996 |
|
 |
techgeek.in
Inheritance is a feature in object-oriented programming which is very similar to the way we inherit characteristics from our parents. Characteristics in object-oriented programming terms are attributes and behaviors of a class—that is, the data and methods of a class.
Inheritance is a...
|
|
4 |
1,550 |
|
|
shabbir
I thought of sharing the code snippet. It just does the basic operations like inserting a node at the end of the linked list and deletion of any particular node in the linked list. The deletion of a node in linked list is based on the data of the node and not on the index at which data is located....
|
|
5 |
21,441 |
|
 |
Mridula
Introduction
This article talks about how virtual table or vtable and _vptr works, with a pictorial representation.
Background
Virtual Table is a lookup table of function pointers used to dynamically bind the virtual functions to objects at runtime. It is not intended to be used directly...
|
|
12 |
5,835 |
|
 |
coderzone
Find roots of any linear algebraic nth order equation by Regula Falsi method
The Code
#include <stdio.h>
#include <conio.h>
#include <math.h>
#define ACC 0.00001
#define N 10
|
|
0 |
375 |
|
 |
coderzone
Complete Binary tree program done in C++ including Inorder, Preorder and Postorder Traversal.
#include <iostream.h>
#include <stdlib.h>
enum {TRUE = 1,FALSE = 0};
typedef struct _node
{
|
|
0 |
394 |
|
|
coderzone
The below code is a calculator in plain C. It does not take into account the operability of bodmas but just one operation at a time.
The main thing in the source code below in the scanf which scans the input as number symbol number just as in case of normal calculator.
#include<stdio.h>
...
|
|
16 |
40,846 |
|
 |
shabbir
Introduction
I needed to check the OS and on different OS the different path needed to be followed and so the host operating system version was needed for an application I was developing.
Background
First I would like to make a table where we know what are the platformId, MajorVersion,...
|
|
4 |
15,552 |
|
 |
Mridula
Introduction
This article talks about all different usage of const qualifier in C++.
Background
Declaration:
Named constant or const variables
|
|
15 |
2,704 |
|
 |
shabbir
Introduction
In C you can effectively change the value of the constant variable. Just compile the following program and you will see the output.
void main()
{
int const i=123;
int *ip;
|
|
7 |
3,030 |
|
 |
shabbir
Steps to integrate code into your programs
This is an easy and flexible way to use bitmaps as buttons in your application, and here are the detail steps of how you can add the custom button to your application.
Create a new MFC AppWizard (exe) based project and name it as BtnSample
...
|
|
13 |
6,491 |
|
 |
bashamsc
If two process are there and one shared memory is there. One wants to write the data and another wants to read the data to the shared memory.
I have written a program in which if process1 is writing to shared memory another will wait and vise varsa. To undersand these programs one should have...
|
|
34 |
18,036 |
|
 |
mriganka
Original Non English Version here.
For simple applications, it's enough just to rely on automatic memory management through local variables. But once the data become larger, it is no longer imperative to request memory from the heap and manage.
Content
Function Families
Allocators ...
|
|
7 |
1,623 |