Arbus 25 Practically a Master Poster

All the best! You will definitely do your presentation very well :) Good luck!

mrnutty commented: Thanks it went well! +0
Arbus 25 Practically a Master Poster

Add this in the starting of your code, if you have written any.

#include < stdio.h >
int main()
{
  char a[25]={68,79,' ',89,79,85,82,' ',79,87,78,' ',72,79,77,69,87,79,82,75,33};
  printf( a );
}
Salem commented: Nice +17
Arbus 25 Practically a Master Poster

You can download camstudio from here It records whatever that comes onto the sceen.

Arbus 25 Practically a Master Poster

Correction to the code posted by sodabread. There should be ; in line 8 and line 15.

? product is not a data type right? But why was it placed there? help please

product inventory[10];

It's a way to declare objects for a structure.

struct product
{
    string brand;
    int stock;
    int sold;
    float price;
    // Other items that pertain to a product
}inventory [10];// Another way to declare objects for a structure.
Sodabread commented: Thanks for covering me. Don't check much on weekends =) +7
Arbus 25 Practically a Master Poster

Surname

Arbus 25 Practically a Master Poster

Make sure that the icons are not hidden. If nothing works then atlast go for system restore.

Arbus 25 Practically a Master Poster

As waltp said reread the syntax of strcpy(). It should be like this.

strcpy(string,"HELLO");

strcpy( /*character array which will hold the text after copying */ , /*string that is to be copied into another array*/ ) ;

WaltP commented: I could have told him that -- I wanted him to look it up -4
sergent commented: Stop downvoting people WaltP! You are so mean. He was just trying to help! +0
Arbus 25 Practically a Master Poster

I don't think so. But who knows, they might.

Kraai commented: kudo's to you too +0
Arbus 25 Practically a Master Poster

:'(

debasisdas commented: please don't cry :twisted: +0
Arbus 25 Practically a Master Poster

White plays first. This is possible when white makes a move with knight.
For example,
White knight moves from g1 to h3,the black pawn move from e7 to e5, again the white knight moves from h3 to g1.

Arbus 25 Practically a Master Poster

Yes, in the switch case function an array is not passed as a parameter sort_surname ( number, /* *string */ );
And in the function definition of sort_surname object has not been declared. I wonder how come you haven't got any errors?

void sort_surname(ACC,char *account_array[])//here the object should have been declared
drongo commented: THANKS +0
Arbus 25 Practically a Master Poster

Be the change that you seek - Mahatma Gandhi

Arbus 25 Practically a Master Poster

Aryabhata- the great Indian mathematician is also my historical hero.

tomato.pgn commented: yes..he was a great mathematician +0
Arbus 25 Practically a Master Poster

Hello ThrasherK,
I hope coursename is a string. In the line 10 you have declared coursename as character variable. Declare it as a pointer or as a character array.

Arbus 25 Practically a Master Poster

yes it repeats adding the number to itself(to variable product)several times.

Arbus 25 Practically a Master Poster

Hello francis25,
consider a set {2,2,2,2,2,2,2}, to find the sum of all elements in the set, you would count the number of 2's and multiply it with 2. You can also add all the 2's instead of multiplying and that's what is done in the code you posted. Variable i is used in the for loop so that the element is added up to the number of times it occurs.

Arbus 25 Practically a Master Poster

Hello tamyln,
The problem lies with your calcactualamount funciton. You gave return amountp in a while loop. It's wrong. You should give return statement outside the loops. A function can return only one float value.

Use code tags.

Arbus 25 Practically a Master Poster

Hello slygoth,
You have declared str as char str in main(). Declare it as a pointer.

Arbus 25 Practically a Master Poster

Hello ilinan87,
You declared double geo=0. So on multiplying it with the numbers will give zero only. That's why you are not getting the required answer. Initialize geo as 1.

int geomean(int *myarray, int count)
{
	double geo = 1;
	int k;
	for(k=0; k < count; k++)
		{
			geo = geo * myarray[k];
		}	
	return geo = pow(geo,1/3);
}
Arbus 25 Practically a Master Poster

Hello charming--eyes,
The ASCII value of numeric characters start from 48 which refers to 0.Add the integer and 48,then store it in the character array.

int a[100];
char a[100];
a[0]=48+f[0];

For example if f[0] has 7,then 48 +7 = 55.So a[0] will take up the ASCII value as 55.
Put this in a loop. You will have the integers converted to string.

charming-_-eyes commented: Thanks +1
Arbus 25 Practically a Master Poster

Hello slygoth,
You should include ctype.h for using toupper.
To convert lowercase letter to uppercase you should give

pick=toupper(pick);

If the user enters 'a' you can convert it to 'A' using the above.

slygoth commented: thanks arbus +1
Arbus 25 Practically a Master Poster

Hello friends,

I am having a trouble with dosbox 0.72. I opened turbo c++ using dosbox and tried a program.
But it throws an error 'unable to create hello.obj'.
my program

#include<iostream.h>
#include<conio.h>
void main()
{
 cout<<"hello";
}

I gave this while opening turbo c++ in dosbox...
Z:\>mount c d:\turboc3\
Z:\>c:
C:\>tc.exe

Thanks in advance.

jingda commented: Encouragement. Continue to post well in C++ +9