C++ Help

Game Editor comments and discussion.

C++ Help

Postby Bee-Ant » Sat Dec 15, 2007 5:47 am

You must make inputs at least 10 datas, character datas. And then make them all sort as ascending alphabet. I mean if you enter char datas such as : Gogo, Sparky, Automail, Spidy, Kall, Darkboy, Makslane, Tekdino...the output should be like this : Automail, Darkboy, Gogo, Kall, Makslane, Sparky, Spidy, Tekdino
My teacher said if I must send this homework next monday, so hurry up!!!(I use Ms Visual C++)
Code: Select all
#include "stdio.h"
#include "conio.h"
void main()
{
    char dat0,dat1,dat3,dat4,dat5,dat6,dat7,dat8,da9;
    printf("Input data 1 : ");scanf("%c",&dat0);
    printf("Input data 2 : ");scanf("%c",&dat1);
    printf("Input data 3 : ");scanf("%c",&dat2);
    printf("Input data 4 : ");scanf("%c",&dat3);
    printf("Input data 5 : ");scanf("%c",&dat4);
    printf("Input data 6 : ");scanf("%c",&dat5);
    printf("Input data 7 : ");scanf("%c",&dat6);
    printf("Input data 8 : ");scanf("%c",&dat7);
    printf("Input data 9 : ");scanf("%c",&dat8);
    printf("Input data 10 : ");scanf("%c",&dat9);
    //until here i dont know how to continue
    getch();
}

Please help me...(if you're the "Score-Hunter" I'll give you +3)
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: C++ Help

Postby Fuzzy » Sat Dec 15, 2007 9:12 am

Google "bubble sort". once you learn how it works come back and show the others and I will give YOU some points. And I am sure others will too.
Last edited by Fuzzy on Sat Dec 15, 2007 9:20 am, edited 1 time in total.
Mortal Enemy of IF....THEN(and Inspector Gadget)

Still ThreeFingerPete to tekdino
User avatar
Fuzzy
 
Posts: 1068
Joined: Thu Mar 03, 2005 9:32 am
Location: Plymostic Programmer
Score: 95 Give a positive score

Re: C++ Help

Postby Bee-Ant » Sat Dec 15, 2007 9:19 am

Still dont know...I'm bad in coding...
Could you post that codes here???
Btw, thanks Pete :D
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: C++ Help

Postby Bee-Ant » Tue Dec 18, 2007 8:57 am

Oh...wait...I've got something...OK, I'll try it :D
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: C++ Help

Postby Spidy » Tue Dec 18, 2007 3:25 pm

GOOD LUCK bee-ant!!
Image
VOTE FOR MY SIGNATURE PLEASE.......THANK YOU
User avatar
Spidy
 
Posts: 935
Joined: Tue Aug 14, 2007 1:28 pm
Location: http://www.inatonibai.com
Score: 38 Give a positive score

Re: C++ Help

Postby Bee-Ant » Wed Dec 19, 2007 2:44 am

Spidy wrote:GOOD LUCK bee-ant!!

Are you going to tease me??? :x
I'm suck in coding :cry:
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: C++ Help

Postby Spidy » Wed Dec 19, 2007 5:47 am

Bee-Ant wrote:Oh...wait...I've got something...OK, I'll try it :D

you said i try it so i say u to good luck and u r not good at coding mike will also help u
Image
VOTE FOR MY SIGNATURE PLEASE.......THANK YOU
User avatar
Spidy
 
Posts: 935
Joined: Tue Aug 14, 2007 1:28 pm
Location: http://www.inatonibai.com
Score: 38 Give a positive score

Re: C++ Help

Postby Bee-Ant » Fri Dec 28, 2007 7:40 am

Mikey doesnt really understand about C++ :cry:
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: C++ Help

Postby Troodon » Fri Dec 28, 2007 12:32 pm

Bee-Ant wrote:Mikey doesnt really understand about C++ :cry:


= I've never found big time/interest to study it. :)
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Re: C++ Help

Postby Bee-Ant » Fri Dec 28, 2007 12:45 pm

It's because your rap
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: C++ Help

Postby Troodon » Fri Dec 28, 2007 1:33 pm

Bee-Ant wrote:It's because your rap


Like old wise chinese man said: It's better to rap than kill house lizards.
:lol:
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Re: C++ Help

Postby Bee-Ant » Fri Dec 28, 2007 1:41 pm

Killing house-lizards is more interesting to me...it could train me to kill a demon :lol:
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: C++ Help

Postby Troodon » Fri Dec 28, 2007 2:48 pm

:lol:
Perhaps I will agree with you the day I meet a demon.
And I have no choice, I don't have lizards in my house. :wink: :D
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Re: C++ Help

Postby Bee-Ant » Fri Dec 28, 2007 3:03 pm

If I meet real demons I will scream and run away :lol:
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: C++ Help

Postby Troodon » Fri Dec 28, 2007 3:41 pm

:lol:
Perhaps I would react the same way when meeting a house lizard...just kidding.
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Next

Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron