11 Replies - 1761 Views - Last Post: 24 March 2010 - 03:37 AM Rate Topic: -----

#1 owazio  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 9
  • Joined: 23-March 10

C# basics

Posted 23 March 2010 - 10:19 AM

Note: Hello everyone, i created this thread because it's an assignment from American college of the Middle East, my teacher asked me to post at least 10 post to in any C# forum to increase our knowledge in programing since it needs lot of efforts.

Since i am a very basic programmer and i didn't programed any application i will start asking about the basics.

What is the difference between class, object and method?

This post has been edited by owazio: 23 March 2010 - 10:20 AM

Is This A Good Question/Topic? 0
  • +

Replies To: C# basics

#2 owazio  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 9
  • Joined: 23-March 10

Re: C# basics

Posted 23 March 2010 - 10:28 AM

Here is one of my basic codes that i created in the class with my teacher's help.


Posted Image
Was This Post Helpful? 0
  • +
  • -

#3 MentalFloss  Icon User is offline

  • "ADDICTED"[2:5]
  • member icon

Reputation: 526
  • View blog
  • Posts: 1,397
  • Joined: 02-September 09

Re: C# basics

Posted 23 March 2010 - 10:29 AM

How big is your class? This assignment scares me a little.

Anyway, tell your teacher that they are lazy. They and a book should be teaching you. Once you have at least a grasp on fundamentals then the forum becomes useful.

How about instead of just posting questions, you take an existing post question and try to answer it? You obviously won't be able to answer it right away but you will have an idea on the things to research. Once you've researched the issue enough, try to make a post about it that attempts to answer it.

This will be a much better device for learning C#.

So, the first thing you're going to do is tell us what the difference between a class, object, and method is.

It's not a three second project.
Was This Post Helpful? 0
  • +
  • -

#4 owazio  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 9
  • Joined: 23-March 10

Re: C# basics

Posted 23 March 2010 - 10:33 AM

I would like to know how the the program in c# reads this code when i chose the option " run without debugging" ?

x = Convert.ToInt32(Console.ReadLine());

Dose it means that it stores the value of X in a certain memory ?
Was This Post Helpful? 0
  • +
  • -

#5 MentalFloss  Icon User is offline

  • "ADDICTED"[2:5]
  • member icon

Reputation: 526
  • View blog
  • Posts: 1,397
  • Joined: 02-September 09

Re: C# basics

Posted 23 March 2010 - 10:39 AM

Learn what Convert.ToInt32() is doing. Then learn what Console.ReadLine() does. Then try to figure out why you would do that. If you're using Convert.ToInt32() what does that mean x is declared as?

Cmon... try to put just a bit of effort into this.
Was This Post Helpful? 0
  • +
  • -

#6 owazio  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 9
  • Joined: 23-March 10

Re: C# basics

Posted 23 March 2010 - 10:56 AM

View PostMentalFloss, on 23 March 2010 - 09:39 AM, said:

Learn what Convert.ToInt32() is doing. Then learn what Console.ReadLine() does. Then try to figure out why you would do that. If you're using Convert.ToInt32() what does that mean x is declared as?

Cmon... try to put just a bit of effort into this.


I appreciate your replay but my major is not programing it's networking :) i need to know what i asked for if possible it would be great if you posted a link where i can find some basic about c#.

Anyways, my teacher asked me to post the forum link to the Moodel so he knows what i am asking for and i hope he sees what i am doing s useful if people answered my question? or at least give my a hints, links or whatever :)

This post has been edited by owazio: 23 March 2010 - 10:57 AM

Was This Post Helpful? 0
  • +
  • -

#7 owazio  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 9
  • Joined: 23-March 10

Re: C# basics

Posted 23 March 2010 - 11:03 AM

View PostMentalFloss, on 23 March 2010 - 09:29 AM, said:

How big is your class? This assignment scares me a little.

Anyway, tell your teacher that they are lazy. They and a book should be teaching you. Once you have at least a grasp on fundamentals then the forum becomes useful.

How about instead of just posting questions, you take an existing post question and try to answer it? You obviously won't be able to answer it right away but you will have an idea on the things to research. Once you've researched the issue enough, try to make a post about it that attempts to answer it.

This will be a much better device for learning C#.

So, the first thing you're going to do is tell us what the difference between a class, object, and method is.

It's not a three second project.


I do know that in this code

Console.WriteLine("input the first number");


Console is the class

WriteLine is the object

Methods is where C# program starts to execute the commands or codes.

This post has been edited by owazio: 23 March 2010 - 11:04 AM

Was This Post Helpful? 0
  • +
  • -

#8 MentalFloss  Icon User is offline

  • "ADDICTED"[2:5]
  • member icon

Reputation: 526
  • View blog
  • Posts: 1,397
  • Joined: 02-September 09

Re: C# basics

Posted 23 March 2010 - 11:04 AM

No. It's not useful at all to be doing what you're doing. Not in the least. This is essentially like "How do I program in C#?".
Was This Post Helpful? 0
  • +
  • -

#9 owazio  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 9
  • Joined: 23-March 10

Re: C# basics

Posted 23 March 2010 - 11:06 AM

View PostMentalFloss, on 23 March 2010 - 10:04 AM, said:

No. It's not useful at all to be doing what you're doing. Not in the least. This is essentially like "How do I program in C#?".


I juts need my question to be answered in a basic way just the basics.
Was This Post Helpful? 0
  • +
  • -

#10 MentalFloss  Icon User is offline

  • "ADDICTED"[2:5]
  • member icon

Reputation: 526
  • View blog
  • Posts: 1,397
  • Joined: 02-September 09

Re: C# basics

Posted 23 March 2010 - 11:08 AM

Quote

I juts need my question to be answered in a basic way just the basics.


http://msdn.microsoft.com

There's a handy little search box you can use. Have a blast.
Was This Post Helpful? 1
  • +
  • -

#11 owazio  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 9
  • Joined: 23-March 10

Re: C# basics

Posted 23 March 2010 - 11:10 AM

So what you suggest where do i starts learning an ask about the basics ?

View PostMentalFloss, on 23 March 2010 - 10:08 AM, said:

Quote

I juts need my question to be answered in a basic way just the basics.


http://msdn.microsoft.com

There's a handy little search box you can use. Have a blast.



Thanks :) i will star from there :)
Was This Post Helpful? 0
  • +
  • -

#12 owazio  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 9
  • Joined: 23-March 10

Re: C# basics

Posted 24 March 2010 - 03:37 AM

Here is a website for C# basic it's very useful, i will try to read something and post in this forum.

http://www.c-sharpco....545am/csp.aspx

This post has been edited by owazio: 24 March 2010 - 03:51 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1