View Single Post
Old Jun 2nd, 2008, 12:00 AM   #3
jamie7823
Newbie
 
Join Date: Jun 2008
Posts: 2
Rep Power: 0 jamie7823 is on a distinguished road
Re: When will i ever use pointers?

Wow,

Im trying to grasp that question and several more at the same time. programming is fun but mentally exhausting. Just when you think you understand a concept, It dosnt compile!

Im messing around trying to write a script and something I am trying to understand is how to get a variable inside func_2 and use it as a variable in main().


c Syntax (Toggle Plain Text)
  1. int func_two(x);
  2.  
  3. int main()
  4. {
  5. cout<<func_two(x);
  6. return 0;
  7. }
  8.  
  9. func_two(x)
  10. {
  11. x=2
  12. }

Last edited by Ancient Dragon; Jun 2nd, 2008 at 10:01 AM. Reason: add code tags
jamie7823 is offline   Reply With Quote