On Tue, Mar 12, 2013, at 02:09 PM, Michael Savage wrote: > In C, the data and code are separated. Thus, I hope to get over that > hump soon. Right nowe though, it is the visual studio interface is > confusing me. ie. When I create any kind of application, it creates a > whole whack of files. > Where do I put my code? A separate program?
Yep. Where depends on what solution type you selected. For example, a console application will have a familiar 'main.cs' that works the same as a C/C++ one. A Windows Forms solution will create a project within it (you can have multiple projects in a solution), and in that project will be a 'program.cs' that runs the form. > Part > of the generated code? Not unless you want it to get overwritten when you make UI changes etc.! > > I don't want to look stupid, but I am totally confused. I found a lot of > Youtube videos, but it would take days if not weeks to get through them. Visual Studio (or any comparable IDE) has a bit of a learning curve in itself, before you even get to coding in anger. You could start very simple with a text editor and the command line compilers for .NET, or a simpler IDE like SharpDevelop. But yes, there is a fair bit of 'scaffolding' in any of these, however you rarely have to deal with any of it directly. > > At present, I will create a game for my use. (Probably battleship, as > this was my first programming foray in just about any language I know.) > > I find a simple game, always help as it gives me looping, decision > making, input, output, etc. > > I am interested in C# as I am very proficient in C. I was hoping to use > my knowledge of C to my advantage. > Well, it'll seem familiar in terms of syntax to an extent but don't fall into the trap of trying to write C in C# - the latter, and the .NET framework are very different beasts. _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/1363102118.20559.140661203345769.40aa2...@webmail.messagingengine.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

