View Single Post
  #2 (permalink)  
Old 08-02-2007, 03:04 PM
HelloWorld's Avatar
HelloWorld HelloWorld is online now
PT Admin
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: In front of computer...
Posts: 1,118
iTrader: (0)
HelloWorld is a jewel in the roughHelloWorld is a jewel in the roughHelloWorld is a jewel in the rough
PHP Code:
#include <iostream>
using std::cout;
using std::cin;
using std::endl;
int main() {
int *pointer
int test 5;
pointer = &test;
cout << "Enter value for the int test: ";
cin >> test;
cout << *pointer << endl;
return 
0;

LOL, just tried it out.. seems the same thing as when we use local variable as usual.. how can we increase efficiency by using pointers..?

__________________
PHP Code:
System.out.println("Hello World!"); 

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote