請介紹一下寫簡單電腦程式的方法與語言

2006-11-20 1:23 am
請介紹一下寫簡單電腦程式的方法與語言
我聽見有些人可以寫出一個計算數學式子的程式
請舉一個計數程式例子
(例如怎樣用寫程式計算出1+1/2+1/3+1/4+......+1/n)
還有在哪裏寫?
寫完後要怎做?

回答 (2)

2006-12-04 11:01 pm
✔ 最佳答案
一般應用的電腦程式都是用C/C++ 語言寫的,

我提供以下簡單教學的電腦程式網站吧:

http://www.cs.cf.ac.uk/Dave/C/CE.html

C COURSEWARE
Lecture notes + integrated exercises, solutions and marking



Contents
The Common Desktop Environment

The front panel
The file manager
The application manager
The session manager
Other CDE desktop tools
Application development tools
Application integration
Windows and the Window Manager
The Root Menu
Exercises
C/C++ Program Compilation

Creating, Compiling and Running Your Program

Creating the program
Compilation
Running the program
The C Compilation Model

The Preprocessor
C Compiler
Assembler
Link Editor
Some Useful Compiler Options
Using Libraries
UNIX Library Functions
Finding Information about Library Functions
Lint -- A C program verifier
Exercises
C Basics

History of C
Characteristics of C
C Program Structure
Variables

Defining Global Variables
Printing Out and Inputting Variables
Constants
Arithmetic Operations
Comparison Operators
Logical Operators
Order of Precedence
Exercises
Conditionals

The if statement
The ? operator
The switch statement
Exercises
Looping and Iteration

The for statement
The while statement
The do-while statement
break and continue
Exercises
Arrays and Strings

Single and Multi-dimensional Arrays
Strings
Exercises
Functions

void functions
Functions and Arrays
Function Prototyping
Exercises
Further Data Types

Structures

Defining New Data Types
Unions
Coercion or Type-Casting
Enumerated Types
Static Variables
Exercises
Pointers

What is a Pointer?
Pointer and Functions
Pointers and Arrays
Arrays of Pointers
Multidimensional arrays and pointers
Static Initialisation of Pointer Arrays
Pointers and Structures
Common Pointer Pitfalls

Not assigning a pointer to memory address before using it
Illegal indirection
Exercise
2006-12-04 10:51 pm
The most simple example for computer language is print the "Hello World"
every book have this example.


收錄日期: 2021-04-23 00:09:30
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20061119000051KK03994

檢視 Wayback Machine 備份