Click here to Skip to main content
14,456,157 members
   

C#

 
AnswerRe: Best deployment guide for our winform application using CI/CD Pin
Richard MacCutchan18-Feb-20 11:25
communityengineerRichard MacCutchan18-Feb-20 11:25 
QuestionSystem.FormatException: 'Input string was not in a correct format. Pin
OsvaldoFernandoQueta17-Feb-20 18:43
MemberOsvaldoFernandoQueta17-Feb-20 18:43 
AnswerRe: System.FormatException: 'Input string was not in a correct format. Pin
OriginalGriff17-Feb-20 21:35
communityengineerOriginalGriff17-Feb-20 21:35 
GeneralRe: System.FormatException: 'Input string was not in a correct format. Pin
Member 798912218-Feb-20 0:17
MemberMember 798912218-Feb-20 0:17 
QuestionI want to open PDF-file on winforms axAcroPDF1.src (Adobe Reader) Pin
Member 1462552315-Feb-20 2:32
MemberMember 1462552315-Feb-20 2:32 
AnswerRe: I want to open PDF-file on winforms axAcroPDF1.src (Adobe Reader) Pin
Eddy Vluggen15-Feb-20 3:59
professionalEddy Vluggen15-Feb-20 3:59 
AnswerMessage Closed Pin
21-Feb-20 0:14
MemberMember 1475132521-Feb-20 0:14 
QuestionDifferent value from input Pin
chipp_zanuff14-Feb-20 7:15
Memberchipp_zanuff14-Feb-20 7:15 
i'm new to C# and i'm just doin a test proj... i wonder why this happened?

using System;

namespace test_cs
{
    class Program
    {
        static double calc(double n, double m)
        {
            return (n * m);
        }

        static void Main(string[] args)
        {
            Console.WriteLine("Welcome to calculator 1.0");
            Console.Write("Enter calculations:");
            double num1, num2;
            char oper;
            num1 = Convert.ToInt32(Console.Read());
            oper = Convert.ToChar(Console.Read());
            num2 = Convert.ToInt32(Console.Read());

            Console.WriteLine("{0} {1} {2}", num1, oper, num2);
            Console.ReadLine();
            Console.ReadLine();
        }

    }
}

the result is:

Imgur: The magic of the Internet[^]

anybody can explain why?

also, i actually wanna make input streaming like C++

std::cin >> num1 >> oper >> num2;


but haven't know how to do it in C#

modified 14-Feb-20 12:25pm.

AnswerRe: Different value from input Pin
OriginalGriff14-Feb-20 7:32
communityengineerOriginalGriff14-Feb-20 7:32 
GeneralRe: Different value from input Pin
chipp_zanuff14-Feb-20 18:48
Memberchipp_zanuff14-Feb-20 18:48 
GeneralRe: Different value from input Pin
OriginalGriff14-Feb-20 21:21
communityengineerOriginalGriff14-Feb-20 21:21 
AnswerRe: Different value from input Pin
Eddy Vluggen14-Feb-20 7:35
professionalEddy Vluggen14-Feb-20 7:35 
Questionauto fill data by using 3 layer in aso.net c# Pin
Member 1474357913-Feb-20 23:47
MemberMember 1474357913-Feb-20 23:47 
AnswerRe: auto fill data by using 3 layer in aso.net c# Pin
OriginalGriff14-Feb-20 0:39
communityengineerOriginalGriff14-Feb-20 0:39 
QuestionWhat is the correct way to do Business Validation on entities? Pin
Bastien Vandamme11-Feb-20 16:00
MemberBastien Vandamme11-Feb-20 16:00 
AnswerRe: What is the correct way to do Business Validation on entities? Pin
Gerry Schmitz11-Feb-20 20:48
mveGerry Schmitz11-Feb-20 20:48 
GeneralRe: What is the correct way to do Business Validation on entities? Pin
Richard Deeming12-Feb-20 0:47
communityengineerRichard Deeming12-Feb-20 0:47 
GeneralRe: What is the correct way to do Business Validation on entities? Pin
Gerry Schmitz12-Feb-20 3:16
mveGerry Schmitz12-Feb-20 3:16 
GeneralRe: What is the correct way to do Business Validation on entities? Pin
Richard Deeming12-Feb-20 3:30
communityengineerRichard Deeming12-Feb-20 3:30 
GeneralRe: What is the correct way to do Business Validation on entities? Pin
Gerry Schmitz12-Feb-20 3:42
mveGerry Schmitz12-Feb-20 3:42 
GeneralRe: What is the correct way to do Business Validation on entities? Pin
Richard Deeming12-Feb-20 3:52
communityengineerRichard Deeming12-Feb-20 3:52 
GeneralRe: What is the correct way to do Business Validation on entities? Pin
phil.o12-Feb-20 3:56
mvephil.o12-Feb-20 3:56 
GeneralRe: What is the correct way to do Business Validation on entities? Pin
Gerry Schmitz12-Feb-20 4:06
mveGerry Schmitz12-Feb-20 4:06 
AnswerRe: What is the correct way to do Business Validation on entities? Pin
Richard Deeming12-Feb-20 1:03
communityengineerRichard Deeming12-Feb-20 1:03 
QuestionHow do create a class property that is a collection of the same class? Pin
Member 1474182311-Feb-20 9:04
MemberMember 1474182311-Feb-20 9:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.