Three questions

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Sep 2008
Posts: 94
Reputation: pywriter is an unknown quantity at this point 
Solved Threads: 0
pywriter's Avatar
pywriter pywriter is offline Offline
Junior Poster in Training

Three questions

 
0
  #1
Jan 9th, 2009
Hi men
1-I wanna ask that how an OP works.I mean you install and launch a software on an OP.But you launch an OP on what.and how is programming an OP?
2-How can i define a function that the number of its parameters is infinite.
3-The difference of programming for win and Linux and etc is about the their structure or the compilers?I mean imagine that a company builds a compiler in two versions:one for windows and another for linux.then the same program has same source code in both of them because the company is same or the source is different because the OPs are different?
Thanks
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 941
Reputation: MosaicFuneral is just really nice MosaicFuneral is just really nice MosaicFuneral is just really nice MosaicFuneral is just really nice MosaicFuneral is just really nice 
Solved Threads: 92
MosaicFuneral's Avatar
MosaicFuneral MosaicFuneral is offline Offline
Posting Shark

Re: Three questions

 
0
  #2
Jan 9th, 2009
2. foo(int count, ...); stdarg
3. API
Last edited by MosaicFuneral; Jan 9th, 2009 at 2:04 pm.
"Jedenfalls bin ich überzeugt, daß der Alte nicht würfelt."
"I became very sensitive to what will happen to all this and all of us." -Two geniuses named Albert
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 1,908
Reputation: ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of 
Solved Threads: 274
ddanbe's Avatar
ddanbe ddanbe is offline Offline
Posting Virtuoso

Re: Three questions

 
0
  #3
Jan 9th, 2009
What is an OP?
I infer from the rest of your question it might be an OS(Operating System)?
Am I right?
What is your native language?(Don't be affraid to tell, mine isn't english either.)
Today is a gift, that's why it is called "The Present".
Make love, no war. Cave ab homine unius libri.
Danny
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 94
Reputation: pywriter is an unknown quantity at this point 
Solved Threads: 0
pywriter's Avatar
pywriter pywriter is offline Offline
Junior Poster in Training

Re: Three questions

 
0
  #4
Jan 12th, 2009
Just a mistake at that moment ddanbe and yeah my native language is farsi and i'm iranian.
and three more questions:
1-how to work work with those infinite arguments?
2-what you mean by "API"?Please explain!
3-I read in a c++ pdf that using typedef can increase portability for some data types.How?
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 94
Reputation: pywriter is an unknown quantity at this point 
Solved Threads: 0
pywriter's Avatar
pywriter pywriter is offline Offline
Junior Poster in Training

Re: Three questions

 
0
  #5
Jan 12th, 2009
and the fourth on:
Is there any difference in writing games for Computers and Consoles(like XBOX360 and etc)?
if yes what is it?
thanks
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 670
Reputation: Freaky_Chris is a jewel in the rough Freaky_Chris is a jewel in the rough Freaky_Chris is a jewel in the rough 
Solved Threads: 113
Freaky_Chris's Avatar
Freaky_Chris Freaky_Chris is offline Offline
Practically a Master Poster

Re: Three questions

 
0
  #6
Jan 12th, 2009
1) http://www.cplusplus.com/reference/clibrary/cstdarg/
2) Application Programming Interface - google it
4) Not a great deal, take XNA development for example.It uses C# the only differnce with developing windows applications to Xbox360 applications is that fact thatyou have to account for the different controller

Chris
Knowledge is power -- But experience is everything
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 94
Reputation: pywriter is an unknown quantity at this point 
Solved Threads: 0
pywriter's Avatar
pywriter pywriter is offline Offline
Junior Poster in Training

Re: Three questions

 
0
  #7
Jan 12th, 2009
hey men
again me with questions
1-Is it possible to declare an array with the number of elements entered by the user?
2-Is there any way to know how many elements an array has(no I don't know the answer of my last question.I mean when you define a pointer and give elements to its next addresses.) to use in a for loop for example?(please don't tell about null-terminated arrays because it has some problems.)
thanks
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 670
Reputation: Freaky_Chris is a jewel in the rough Freaky_Chris is a jewel in the rough Freaky_Chris is a jewel in the rough 
Solved Threads: 113
Freaky_Chris's Avatar
Freaky_Chris Freaky_Chris is offline Offline
Practically a Master Poster

Re: Three questions

 
0
  #8
Jan 12th, 2009
1)
  1. int *myArray;
  2. int n;
  3. cin >> n;
  4. myArray = new int[n];
  5. ....
  6. delete [] myArray;

2)
  1. sizeof(myArray)/sizeof(int)
Knowledge is power -- But experience is everything
Reply With Quote Quick reply to this message  
Join Date: Dec 2005
Posts: 5,850
Reputation: Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute 
Solved Threads: 749
Team Colleague
Salem's Avatar
Salem Salem is offline Offline
Void main'ers are DOOMed

Re: Three questions

 
0
  #9
Jan 12th, 2009
If you use vectors, the first problem goes away, and you get a useful answer to the second problem.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC