954,504 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Three questions

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

pywriter
Junior Poster
115 posts since Sep 2008
Reputation Points: 13
Solved Threads: 0
 

2. foo(int count, ...); stdarg
3. API

MosaicFuneral
Posting Virtuoso
1,691 posts since Nov 2008
Reputation Points: 888
Solved Threads: 116
 

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.)

ddanbe
Senior Poster
3,829 posts since Oct 2008
Reputation Points: 2,070
Solved Threads: 661
 

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?

pywriter
Junior Poster
115 posts since Sep 2008
Reputation Points: 13
Solved Threads: 0
 

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

pywriter
Junior Poster
115 posts since Sep 2008
Reputation Points: 13
Solved Threads: 0
 

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

Freaky_Chris
Master Poster
702 posts since Apr 2008
Reputation Points: 325
Solved Threads: 118
 

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

pywriter
Junior Poster
115 posts since Sep 2008
Reputation Points: 13
Solved Threads: 0
 

1)

int *myArray;
int n;
cin >> n;
myArray = new int[n];
....
delete [] myArray;


2)

sizeof(myArray)/sizeof(int)
Freaky_Chris
Master Poster
702 posts since Apr 2008
Reputation Points: 325
Solved Threads: 118
 

If you use vectors, the first problem goes away, and you get a useful answer to the second problem.

Salem
Posting Sage
Team Colleague
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You