You are not logged in.

  • Login

ADA_Juger_

Unregistered

1

Friday, October 15th 2010, 1:42pm

c sharp

servus,

This post has been edited 1 times, last edit by "ADA_Juger_" (Oct 15th 2010, 3:21pm)


2

Friday, October 15th 2010, 1:45pm

und ich dachte beim Threadtitel, es ginge um Musik :(

Posts: 5,381

Location: Bremen

Occupation: Physiker

  • Send private message

3

Friday, October 15th 2010, 1:48pm

Guck dir mal Arrays an.

zecher_soratax

Professional

Posts: 855

Location: Bremen

Occupation: GER

  • Send private message

4

Friday, October 15th 2010, 1:50pm

ich hätt das so in etwa gemacht:


Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
            string eingabe = Console.ReadLine();
            int eingabeneu = Convert.ToInt32(eingabe);

            int nullyo = 0;
            string[] eingaben = new string[eingabeneu];

            while (nullyo < eingabeneu)
            {
                eingaben[nullyo] = Console.ReadLine();
                nullyo++;
            };

            while (nullyo > 0)
            {
                nullyo--;
                Console.WriteLine(eingaben[nullyo]);
            };


edit:extra für eru, und sogar eingerückt

This post has been edited 4 times, last edit by "zecher_soratax" (Oct 15th 2010, 3:31pm)


Posts: 4,305

Location: Regensburg

Occupation: GER

  • Send private message

5

Friday, October 15th 2010, 2:03pm

das sieht gut aus.
wobei das ja eigentlich schon nach 2 for-schleifen schreit...

Posts: 5,381

Location: Bremen

Occupation: Physiker

  • Send private message

6

Friday, October 15th 2010, 2:09pm

Vor allem schreit das mal nach [code] Tags! So will man gar nicht erst versuchen das zu lesen. :S

Posts: 2,153

Location: Freiberg

Occupation: GER

  • Send private message

7

Friday, October 15th 2010, 2:34pm

Source code

1
2
3
4
5
String[] a_strings = new String[42];
for (int i = a_strings.Length - 1; i >= 0; i--)
     a_strings[i] = Console.ReadLine();
foreach (String str in a_strings)
     Console.WriteLine(str);


ka was du da mit while schleifen willst

This post has been edited 2 times, last edit by "GWC_Vegeta" (Oct 15th 2010, 2:39pm)


Posts: 5,381

Location: Bremen

Occupation: Physiker

  • Send private message

8

Friday, October 15th 2010, 2:38pm

@GWC_Vegeta: :love:
Aber warum konstante Länge? Sehr statisch!

Edit: nvm

Posts: 2,153

Location: Freiberg

Occupation: GER

  • Send private message

9

Friday, October 15th 2010, 2:40pm

weil er die länge selbst vorgeben wollte

Dynamisch gings natürlich auch:

Source code

1
2
3
4
            List<String> l_strings = new List<string>();
            for (int i = 0; i < 42; i++)
                l_strings.Insert(0, Console.ReadLine());
            l_strings.ForEach(delegate(String str) { Console.WriteLine(str); });

This post has been edited 1 times, last edit by "GWC_Vegeta" (Oct 15th 2010, 2:42pm)


ADA_Juger_

Unregistered

10

Friday, October 15th 2010, 3:20pm

ok danke...

werd mal editen, er googlet evtl. hatter gemeint ^^

This post has been edited 1 times, last edit by "ADA_Juger_" (Oct 15th 2010, 3:21pm)


zecher_soratax

Professional

Posts: 855

Location: Bremen

Occupation: GER

  • Send private message

11

Friday, October 15th 2010, 3:22pm

jetzt haste den jungen voll verschreckt

ADA_Juger_

Unregistered

12

Friday, October 15th 2010, 3:29pm

soratax. pn geht bei dir nich, kannst dein zitat von mir rausnehmen bitte? ^^

zecher_soratax

Professional

Posts: 855

Location: Bremen

Occupation: GER

  • Send private message

13

Friday, October 15th 2010, 3:30pm

ja mach ich

14

Friday, October 15th 2010, 3:35pm

Juger du cheater ;(

Posts: 2,153

Location: Freiberg

Occupation: GER

  • Send private message

15

Friday, October 15th 2010, 3:45pm

scheinbar geht es auch mit Reverse:

Source code

1
2
3
4
5
6
            String[] a_strings = new String[42];
            foreach (String str in a_strings)
                Console.ReadLine();
            Array.Reverse(a_strings);
            foreach (String str in a_strings)
                Console.WriteLine(str);

nC_Flex

Professional

Posts: 820

Location: Dresden

Occupation: GER

  • Send private message

16

Friday, October 15th 2010, 7:41pm

lol, wo soll ich den Threadtitel hinschicken ? :bounce:

Posts: 5,381

Location: Bremen

Occupation: Physiker

  • Send private message

17

Friday, October 15th 2010, 7:43pm

Wie meinen? Die Sprache heißt so!

Posts: 11,465

Location: Hamburg

Occupation: GER

  • Send private message

18

Friday, October 15th 2010, 7:45pm

Glaub er wollte es eher an den Prof. schicken...

nC_Flex

Professional

Posts: 820

Location: Dresden

Occupation: GER

  • Send private message

19

Friday, October 15th 2010, 7:46pm

Quoted

Original von ADA_Juger_
ok danke...

werd mal editen, er googlet evtl. hatter gemeint ^^


:P

This post has been edited 1 times, last edit by "nC_Flex" (Oct 15th 2010, 7:46pm)


Posts: 11,465

Location: Hamburg

Occupation: GER

  • Send private message

20

Friday, October 15th 2010, 7:53pm

Quoted

Original von ADA_Juger_
werd mal editen, er googlet evtl. hatter gemeint ^^

Solange du nichts unterschreiben musst, dass du die Hausaufgabe alleine angefertigt hast, ist doch alles ok. Du darfst doch Fragen stellen.

21

Friday, October 15th 2010, 7:56pm

Nur mal so am Rande: Was studierst Du? Falls es Informatik sein sollte, solltest Du doch eigentlich in der Lage sein so eine triviale Aufgabe alleine zu lösen...

nC_Flex

Professional

Posts: 820

Location: Dresden

Occupation: GER

  • Send private message

22

Friday, October 15th 2010, 8:42pm

Quoted

Original von AtroX_Worf

Quoted

Original von ADA_Juger_
werd mal editen, er googlet evtl. hatter gemeint ^^

Solange du nichts unterschreiben musst, dass du die Hausaufgabe alleine angefertigt hast, ist doch alles ok. Du darfst doch Fragen stellen.


hmm bei mir mussten wir so nen Zettel gleich zur Immatrikulation mit unterschreiben...

Posts: 11,465

Location: Hamburg

Occupation: GER

  • Send private message

23

Friday, October 15th 2010, 9:09pm

Quoted

Original von nC_Flex

Quoted

Original von AtroX_Worf

Quoted

Original von ADA_Juger_
werd mal editen, er googlet evtl. hatter gemeint ^^

Solange du nichts unterschreiben musst, dass du die Hausaufgabe alleine angefertigt hast, ist doch alles ok. Du darfst doch Fragen stellen.

hmm bei mir mussten wir so nen Zettel gleich zur Immatrikulation mit unterschreiben...

Ich nur zu meinen Abschlussarbeiten.

24

Saturday, October 16th 2010, 11:20am

Quoted

Original von Tsu_ShiNe_
und ich dachte beim Threadtitel, es ginge um Musik :(


#2 ?(

Invader

Master

Posts: 2,188

Location: München

  • Send private message

25

Saturday, October 16th 2010, 11:36am

Kennt hier jemand für C# eine Alternative zum Visual Studio (Express) ?

Comadevil

Professional

Posts: 1,508

Location: Kiel

Occupation: GER

  • Send private message

26

Saturday, October 16th 2010, 11:38am


Invader

Master

Posts: 2,188

Location: München

  • Send private message

27

Saturday, October 16th 2010, 11:45am

Nehme das als eine Empfehlung, werds mir die Tage anschauen, danke. :)

SenF_GeAuge

Intermediate

Posts: 539

Location: 06766 Thalheim

Occupation: GER

  • Send private message

28

Saturday, October 16th 2010, 11:48am

wieso is das jetz besser als Visual Studio ???
oder anders gefragt was gefällt euch am Visual Studio nicht ???

grade das 2010 finde ich super^^

Invader

Master

Posts: 2,188

Location: München

  • Send private message

29

Saturday, October 16th 2010, 11:55am

Express Version kann manches nicht und läuft nur 30 Tage oder lieg ich da falsch?

Und mal eben so paar Hundert € ausgeben nur um ein paar Übungen zu machen, nein danke. Bisher habe ich nur Java programmiert sowie etwas Delphi.

SenF_GeAuge

Intermediate

Posts: 539

Location: 06766 Thalheim

Occupation: GER

  • Send private message

30

Saturday, October 16th 2010, 12:00pm

ja aber die Visual Studio Express 2010 is doch umsonst oder lieg ich da jetz falsch.
Jedenfalls habe ich sie mir offiziel kostenlos für Übungen runtergeladen ^^