Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 199331
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T17:00:51+00:00 2026-05-11T17:00:51+00:00

I am a C++ user and now trying to use c#. In c++ taking

  • 0

I am a C++ user and now trying to use c#.

In c++ taking input from the user was fun (just >>) and supported all the types. So was for the files. But in c# it is too complex, as I can take only strings. Then I have to manipulate it for later use.

And if I want to take multiple inputs in same line separated by whitespaces, it become more complex as I have to go for string splitting. Then conversion…

May be it is for error handling and safe code. But I am disappointed with C# anyway.

You are all expert guys here. Is there any easy way?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T17:00:51+00:00Added an answer on May 11, 2026 at 5:00 pm

    As far as I’m aware, you have to do it the hard way. (On the bright side though, the hard way is simpler than it’d be in C++ ;))

    Console.OpenStandardInput() does give you the input stream, so it can be treated the same as files, but you’ll have to do the string splitting yourself if you need that. Of course, C# has a nice Regex library that may help here.

    T.TryParse (where T is int, float, whichever type you want to read) should let you convert the string to those types.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I understand that you can now create MVC-specific user controls, but will my existing
How can I validate the user input by using scanf. Right now I have
In acts-as-authenticated, and now restful-authentication, the first user fixture is Quentin. Just curious if
As a Pylons user I'm trying to switch to Pyramid now trying to understand
I'm trying to use netlink sockets to exchange messages between user-space and kernel space...i
I'm trying to use Devise authorisation with CanCan roles in my rails3+mongoid app. Now
I'm trying to figure out how to upload an image and get user input
I'm trying to use Twitter's Oauth Single Token for posting from a rails app
Now that I can make useful user controls in WPF (thanks to this stackoverflow
I'm a long-time ActionScript 2 user, now getting started with ActionScript 3. The one

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.