PigRider Blogs

Sign In
HTML CSS Javascript Ruby on Rails C++ Java Python SQL Git Linux Others All
Previous 1 Next

Basic C++ Concepts

[Author: Dingyu]   [Wed, 2013-10-02, 09:35]   [1421 views]

C++

Basic C++ Concepts
Pointer
int square(int iNum) {
  return iNum*iNum;
}
int main() {
  int iNum=10;
  int* p1=&iNum;      // Define a pointer and let it point to an integer variable
  int* p2=p1;      // Still point to that integer variable
  int** p3=&p2;      // Define a pointer that points to ano ... see full article
Previous 1 Next

Most Popular in This Category: