|登录 |注册

楼主: LoL|z
打印 上一主题 下一主题

诚心想学Programmer...(可是我一点都不懂)

[复制链接]
RENOzZ
2009-1-22 02:54 PM
hacker 可沒有那么好當
不只要有network的知識還要知道基本的programing 語言
想就容易咯~em0023 em0023
~Zero
2009-1-22 08:49 PM
原帖由 RENOzZ 于 2009-1-22 02:54 PM 发表
hacker 可沒有那么好當
不只要有network的知識還要知道基本的programing 語言
想就容易咯~em0023 em0023

"基本" 的 programming 语言??? 那么容易吗?
RENOzZ
2009-1-23 07:54 AM
原帖由 ~Zero 于 2009-1-22 08:49 PM 发表

"基本" 的 programming 语言??? 那么容易吗?


呵呵~是沒那么容易啦。。。至少要看的懂code  > <

回复 #43 RENOzZ 的帖子

goodhermit95
2009-1-23 10:02 PM
好心,最少要会写不是会看
汉堡棒棒糖
2009-2-5 09:43 PM
请问一下那些code是打在那里~
我真的是从0开始的~
现在还在读电脑课程(文凭)
第2个semester
因为太无聊了~想找一些难的~

教教我em0008
Jay1515Jay
2009-2-6 12:53 AM
原帖由 汉堡棒棒糖 于 2009-2-5 09:43 PM 发表
请问一下那些code是打在那里~
我真的是从0开始的~
现在还在读电脑课程(文凭)
第2个semester
因为太无聊了~想找一些难的~

教教我em0008


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            int i, j, k;
            i = 5;
            j = 3;
            k = 1;
            Console.WriteLine(i);
            Console.WriteLine(j);
            Console.WriteLine(k);

        }
    }
}

红色部分是自己打的
黑色是新建时候已存在

[ 本帖最后由 Jay1515Jay 于 2009-2-6 12:54 AM 编辑 ]

回复 #46 Jay1515Jay 的帖子

丧送狂曲
2009-2-6 01:19 AM
hmmm很基本的例子~我也来一个c++

#include<iostream.h>  
void main()
{
     int num1, num2, sum;  (这些是程式里要用到的variable)
     cout<<" Please enter the 1st number:"<<endl; (显示Please.......并要求使用者输入第一个数目)
     cin<<num1; (接收输入1)

     cout<<" Please enter the 2nd number:"<<endl;(显示Please.......并要求使用者输入第2个数目)
     cin<<num2;  (接收输入2)


    sum=num1+num2; (算式)

    cout<<"The addiction for the both number u entered is "<<sum<<endl; (显示答案)
    cout<<""<<endl;

}

我写的这个是初学者基本中的基本~超级简单的
如果你看不懂的话...真的是0罗~


注: 显示出来的会是这样~请想象背景是黑色

Please enter the 1st number:
_  (假设输入2)

输入后进入下面

Please enter the 2nd number:
_  (假设输入5)

输入后进入下面

(算式会将第一个数字和第二个数字加起来所以是7)

The addiction for the both bumber u entered is 7

press any key to continue_

过了上面就会跳出程式

[ 本帖最后由 丧送狂曲 于 2009-2-6 01:28 AM 编辑 ]

回复 #47 丧送狂曲 的帖子

goodhermit95
2009-2-6 09:22 AM
那些 << << 的 只有console application 有用到是吗?
Jay1515Jay
2009-2-6 09:37 AM
  1. #include<iostream.h>  
  2. void main()
  3. {
  4.      int num1, num2, sum;
  5.      cout<<" Please enter the 1st number:"<<endl;
  6.      cin<<num1;
  7.      cout<<" Please enter the 2nd number:"<<endl;
  8.      cin<<num2;
  9.      sum=num1+num2;
  10.      cout<<"The addiction for the both number u entered is "<<sum<<endl;
  11.      cout<<""<<endl;

  12. }
复制代码

转换成C#:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            int num1,num2,sum;
            Console.WriteLine(" Please enter the 1st number:");
            num1=Console.ReadLine();
            Console.WriteLine(" Please enter 2nd number:");
            num2=Console.ReadLine();
            sum=num1+num2;
            Console.WriteLine("The addiction for the both number u entered is "+sum);
        }
    }
}

em0012
丧送狂曲
2009-2-6 09:51 AM
应该是的~因为写那么久都没有GUI
您需要登录后才可以回帖 登录 | 注册

JBTALKS.CC |联系我们 |隐私政策 |Share

GMT+8, 2025-12-31 09:09 PM , Processed in 0.098766 second(s), 20 queries .

Powered by Discuz! X2.5 © 2001-2012 Comsenz Inc.

本论坛言论纯属发表者个人意见,与本论坛立场无关
Copyright © 2003-2012 JBTALKS.CC All Rights Reserved

Dedicated Server powered by iCore Technology Sdn. Bhd.

合作联盟网站:
JBTALKS 马来西亚中文论坛 | JBTALKS我的空间 | ICORE TECHNOLOGY SDN. BHD.
回顶部