Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 23rd, 2008, 03:06 AM
Registered User
 
Join Date: Jul 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Kalyan Khetre
Default for c# beginers

hi friends,
i am beginner to d c#. i am facing a prob. that i have a prog. which runs successfully but it only stays for fraction of seconds. what i have to do so that d i can see output.
suggestion invitable.
have a nice day.
 
Old July 23rd, 2008, 03:11 AM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 432
Thanks: 0
Thanked 1 Time in 1 Post
Default

Sounds like your running a console app. Which terminates and closes.

Either run with Control+F5, and it will ask you to press a key to continue once the program has ended, or
(and this is the preferable option) Add some code like:
Code:
Console.WriteLine("Press Enter to Continue");
Console.ReadLine()
This will display the text and wait for an ENTER KeyPress,

Rob
http://cantgrokwontgrok.blogspot.com
 
Old July 23rd, 2008, 03:27 AM
Registered User
 
Join Date: Jul 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Kalyan Khetre
Default

Quote:
quote:Originally posted by robzyc
 Sounds like your running a console app. Which terminates and closes.

Either run with Control+F5, and it will ask you to press a key to continue once the program has ended, or
(and this is the preferable option) Add some code like:
Code:
Console.WriteLine("Press Enter to Continue");
Console.ReadLine()
This will display the text and wait for an ENTER KeyPress,

Rob
http://cantgrokwontgrok.blogspot.com
 
Old July 23rd, 2008, 03:35 AM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 432
Thanks: 0
Thanked 1 Time in 1 Post
Default

Errr..

So does that solve your problem?

Rob
http://cantgrokwontgrok.blogspot.com
 
Old July 23rd, 2008, 03:36 AM
Registered User
 
Join Date: Jul 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Kalyan Khetre
Default

thank u..........!
can you send me some practice tutorials so i can learn d concepts c#.
have nice day.
Quote:
quote:Originally posted by robzyc
 Sounds like your running a console app. Which terminates and closes.

Either run with Control+F5, and it will ask you to press a key to continue once the program has ended, or
(and this is the preferable option) Add some code like:
Code:
Console.WriteLine("Press Enter to Continue");
Console.ReadLine()
This will display the text and wait for an ENTER KeyPress,

Rob
http://cantgrokwontgrok.blogspot.com
 
Old July 23rd, 2008, 03:39 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

Could we recommend that perhaps you get yourself a good book? (This is the WROX web site you are on after all).

/- Sam Judson : Wrox Technical Editor -/
 
Old July 23rd, 2008, 03:44 AM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 432
Thanks: 0
Thanked 1 Time in 1 Post
Default

You're welcome :)

No, I cannot send you some practice tutorials so you can learn the concepts of C# programming!
You can go out, spend some money on books and other training materials like the rest of us have.

If you want to be a "professional" developer, then invest in your career.

I have spent over £6000 on training materials and I still have a long way to go.

Please respect the fact that all the guys that contribute on here also have their own work
and learning to do. Do NOT expect to be "spoon fed". We all had to start somewhere
and we are always happy to help. But I would say 80% of development is about having the
ability and desire to want to learn, grow and develop.

Dont ask for training/tutorials. Ask yourself the same questions. What do I need to know?
Then go and buy a book/course/research on the Internet.

If you get stuck of some of the code. THEN ask here.

This is "programmer to programmer" - not "programmer to teach you programming".

Rob
http://cantgrokwontgrok.blogspot.com
 
Old July 23rd, 2008, 04:01 AM
edurazee
Guest
 
Posts: n/a
Default

You can write :-
Code:
Console.WriteLine("Press any key to continue...");
Console.ReadKey(true);
Or,
Code:
Console.WriteLine("Press Enter to Continue");
Console.ReadLine();
The difference between the first one and the second one is, the first one will work for any key in the KB.

But the later will work only for ENTER(Return) key.


 
Old July 23rd, 2008, 04:20 AM
Registered User
 
Join Date: Jul 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Kalyan Khetre
Default

hi Rob,
thank's for guidance.
i'm student of M.Sc. I.T. i'm in little confusion to choose d opt. subjects. We have 5 opt. subject of which i have to chose 2.
but which sub's should i hve take for my career point of view. considering : i hv interest in programming. i hv no knowledge of physics or electronics.
the subjects are:
 1. Emebded System.
 2. Image Processing
 3. Artificial Imaging
 4. WAP
 5. WML

pls reply with explainations
hnd
Quote:
quote:Originally posted by robzyc
 You're welcome :)

No, I cannot send you some practice tutorials so you can learn the concepts of C# programming!
You can go out, spend some money on books and other training materials like the rest of us have.

If you want to be a "professional" developer, then invest in your career.

I have spent over £6000 on training materials and I still have a long way to go.

Please respect the fact that all the guys that contribute on here also have their own work
and learning to do. Do NOT expect to be "spoon fed". We all had to start somewhere
and we are always happy to help. But I would say 80% of development is about having the
ability and desire to want to learn, grow and develop.

Dont ask for training/tutorials. Ask yourself the same questions. What do I need to know?
Then go and buy a book/course/research on the Internet.

If you get stuck of some of the code. THEN ask here.

This is "programmer to programmer" - not "programmer to teach you programming".

Rob
http://cantgrokwontgrok.blogspot.com
 
Old July 23rd, 2008, 04:29 AM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 432
Thanks: 0
Thanked 1 Time in 1 Post
Default

Wow.. I can only reply with the following:

OMFG. STFW. WTFFFFF!

So let me get this straight. You want me to explain to you what courses to take in your degree, since you have no idea what they mean?
So you have taken up a MASTERS degree with no prior understanding of what is actually involved?



Rob
http://cantgrokwontgrok.blogspot.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP: SQL BEGINERS!!! gijapon_x SQL Server 2005 2 December 1st, 2006 03:52 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.