Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 23rd, 2008, 03:06 AM
Registered User
 
Join Date: Jul 2008
Location: Aurangabad, Maharashtra, India.
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.
Reply With Quote
  #2 (permalink)  
Old July 23rd, 2008, 03:11 AM
Friend of Wrox
 
Join Date: Mar 2007
Location: Hampshire, United Kingdom.
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
Reply With Quote
  #3 (permalink)  
Old July 23rd, 2008, 03:27 AM
Registered User
 
Join Date: Jul 2008
Location: Aurangabad, Maharashtra, India.
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
Reply With Quote
  #4 (permalink)  
Old July 23rd, 2008, 03:35 AM
Friend of Wrox
 
Join Date: Mar 2007
Location: Hampshire, United Kingdom.
Posts: 432
Thanks: 0
Thanked 1 Time in 1 Post
Default

Errr..

So does that solve your problem?

Rob
http://cantgrokwontgrok.blogspot.com
Reply With Quote
  #5 (permalink)  
Old July 23rd, 2008, 03:36 AM
Registered User
 
Join Date: Jul 2008
Location: Aurangabad, Maharashtra, India.
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
Reply With Quote
  #6 (permalink)  
Old July 23rd, 2008, 03:39 AM
samjudson's Avatar
Friend of Wrox
Points: 8,687, Level: 40
Points: 8,687, Level: 40 Points: 8,687, Level: 40 Points: 8,687, Level: 40
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
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 -/
Reply With Quote
  #7 (permalink)  
Old July 23rd, 2008, 03:44 AM
Friend of Wrox
 
Join Date: Mar 2007
Location: Hampshire, United Kingdom.
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
Reply With Quote
  #8 (permalink)  
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.


Reply With Quote
  #9 (permalink)  
Old July 23rd, 2008, 04:20 AM
Registered User
 
Join Date: Jul 2008
Location: Aurangabad, Maharashtra, India.
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
Reply With Quote
  #10 (permalink)  
Old July 23rd, 2008, 04:29 AM
Friend of Wrox
 
Join Date: Mar 2007
Location: Hampshire, United Kingdom.
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 09:53 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.