Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch
"no data is returned" and "null value" are not the same thing. A query returning no results is fine, the result of the Linq expression will be an IQueryable that when iterated over runs the iteration 0 times.
Can someone help understand how to write code in c# 2010. I am currently taking a c# course but I'm not grasping all the concepts. This is the 2 week and I'm lost. I'm reading the material but it is not sticking.
Example: using the console IDE only, must be able to create a grade tabulation app The grades must be entered from the cdrm prompt allowing for to decimal places. Catagories are 10 homeworks, 5 projects, 1 midterm and 1 final. Can someone provide me with the code for this app in c# 2010.
Sure buddy - head over to the Homework thread and post the question there. The guys modding that thread are experts in homework assignments! There might be a small fee involved, but hell, it makes you life easier by not having to go through the pain of putting in effort and time in your studies!
Voted 1 for the 'gimme codez' aspect. We're not here to make you artificially pass a course that you aren't competent in.
Most courses are well graded and it's hard to suggest a better place to start than your course. Is it a school/university course with lectures and real people giving it? If so, if there are small parts that you don't get, you may need to ask your teacher/lecturer or class to explain it in a different way until it goes in. If it's a self-taught course from a book or online, take it slowly, practice each step until you really get it, and then move on to the next one.
Reading the material is never enough, you need to practice doing as well. Most courses have exercises every chapter, and if you want to learn, you will want to do those.
As you can see, it's too hard for you to do all at once, but breaking it down into simpler steps that are more manageable will enable you to do it. (I'm a professional programmer, and this approach works for me when I'm faced with a task that's too hard to do all at once.)
The first step is to get a program running. C programmers start with a program that simply prints "Hello world." on the console, and this would be a good first step for you. It requires you to be able to edit a file to add the code, and compile and run it. You'll have to look up the statement that outputs text to the console. (Looking it up is good practice, because this is how you acquire programming knowledge you don't already have. We all do it.)
The next step is accepting input from the command prompt. (More lookup.) Don't be afraid to experiment! This is an important way of learning what works and what doesn't.
The next step is getting the input into numeric variables you can use to calculate grades.
If you think your program is behaving incomprehensibly, use what you learned in the first step to print out the values of some variables to see what's REALLY happening as your program executes. (Later you'll learn how to use the debugger to do this. The debugger will save you HOURS of guesswork -- learn it.)
Baby steps. Good luck!
"Microsoft -- Adding unnecessary complexity to your work since 1987!"
Help I don't know what I'm doing wrong.
the below code is in my form but I am getting
the results below from textBox3.Text = Convert.ToString(Dns.GetHostEntry("google.com"));
what returns into the textbox is System.Net.IPHostEntry
i try textBox3.Text = Convert.ToString(Dns.GetHostAddresses("google.com")); and i get System.Net.IPAddress in the textbox I tried a new project doing the same things and its still giving me this, IDE is VS2010 Visual C#