Better?
Type: Posts; User: glider_pilot123
Better?
What if I wanted;
void
myfunction(int t1,int t2,int t1s,int t2s)
{
int table[8][7];
int i;
if(t1s>t2s){
How do you return a 2D array from a void funtion?
Thanks.
Once I have read the data into the program how would I go about counting the number of certain letters within the string?
Such as;
I read in the list;
greg
stan
kyle
mark
I am wondering how I am to read in data from a file when there is more then one line in the file.
For example, I want to read in;
greg
stan
kyle
mark
mike
Thanks hk_mp5kpdw. Being able to see the start of the code helps wonders.
How would I count the number of characters in a string?
Example:
GHfgHG235, etc.
and I want to know the number of times G, H, f, g, 2, etc., appears in the string?
I would assume that the...
How do you generate random numbers within certain limits? Such as a random number between 0.2 and 4.3?
And, if this is possible how do you call it within a function. Such to generate 100 random...
Can anyone tell me what the % sign does in the following function?
i=z%CONST;
Thanks.
How do you use math functions such as cosine and sine?
Say I want to output the equation x+6 into a chart format showing both the x values and the sum.
IE;
X Sum
0 6
1 7
2 8
etc;
Is it possible to do with an array?
How would you use a variable in this?
I was wondering if it was possible to have an output in the form of a chart?
Such as;
N T F
1 2 5
4 6 3
2 5 9
If so how is this done?