asm
47 отговора
1705 прегледа
Re: А баба ти има ли Kylix 3?
kakvo pravish - opitvash se da me vpechatlish li?
ujasno sum vpechatlena, mojesh da prestanesh da se nabirash veche (kato glist na butza)
ujasno sum vpechatlena, mojesh da prestanesh da se nabirash veche (kato glist na butza)
Re: То верно
3.6.1 Main function [basic.start.main]
1 A program shall contain a global function called main, which is the designated start of the program. It is implementation-defined whether a program in a freestanding environment is required to define a main function. [Note: in a freestanding environment, start-up and termination is implementation-defined; startup contains the execution of constructors for objects of namespace scope with static storage duration; termination contains the execution of destructors for objects with static storage duration. ]
2 An implementation shall not predefine the main function. This function shall not be overloaded. It shall have a return type of type int, but otherwise its type is implementation-defined. All implementations shall allow both of the following definitions of main:
int main() { /* ... */ }
and
int main(int argc, char* argv[]) { /* ... */ }
In the latter form argc shall be the number of arguments passed to the program from the environment in which the program is run. If argc is nonzero these arguments shall be supplied in argv[0] through argv[argc-1] as pointers to the initial characters of null-terminated multibyte strings (NTMBSs) (17.3.2.1.3.2) and argv[0] shall be the pointer to the initial character of a NTMBS that represents the name used to invoke the program or "". The value of argc shall be nonnegative. The value of argv[argc] shall be 0. [Note: it is recommended that any further (optional) parameters be added after argv. ]
3 The function main shall not be used (3.2) within a program. The linkage (3.5) of main is implementation-defined. A program that declares main to be inline or static is ill-formed. The name main is not otherwise reserved. [Example: member functions, classes, and enumerations can be called main, as can entities in other namespaces. ]
1 A program shall contain a global function called main, which is the designated start of the program. It is implementation-defined whether a program in a freestanding environment is required to define a main function. [Note: in a freestanding environment, start-up and termination is implementation-defined; startup contains the execution of constructors for objects of namespace scope with static storage duration; termination contains the execution of destructors for objects with static storage duration. ]
2 An implementation shall not predefine the main function. This function shall not be overloaded. It shall have a return type of type int, but otherwise its type is implementation-defined. All implementations shall allow both of the following definitions of main:
int main() { /* ... */ }
and
int main(int argc, char* argv[]) { /* ... */ }
In the latter form argc shall be the number of arguments passed to the program from the environment in which the program is run. If argc is nonzero these arguments shall be supplied in argv[0] through argv[argc-1] as pointers to the initial characters of null-terminated multibyte strings (NTMBSs) (17.3.2.1.3.2) and argv[0] shall be the pointer to the initial character of a NTMBS that represents the name used to invoke the program or "". The value of argc shall be nonnegative. The value of argv[argc] shall be 0. [Note: it is recommended that any further (optional) parameters be added after argv. ]
3 The function main shall not be used (3.2) within a program. The linkage (3.5) of main is implementation-defined. A program that declares main to be inline or static is ill-formed. The name main is not otherwise reserved. [Example: member functions, classes, and enumerations can be called main, as can entities in other namespaces. ]
Re: А баба ти има ли Kylix 3?
/home/pet/
ha taka! otivam da hackwam sega hoopla!
da widi toj kakvo edno linux-n00bie sus nessus mozhe da napravi!
obache kude mu e IP adresa! basi...
tirulirutatuutuu
ha taka! otivam da hackwam sega hoopla!
da widi toj kakvo edno linux-n00bie sus nessus mozhe da napravi!
obache kude mu e IP adresa! basi...
tirulirutatuutuu
Re: А баба ти има ли Kylix 3?
Хе :) Евала за набитото око. Хич не го бях видял. Много са старателни с debug info-то.
Тюх, пак не можах да впечатля едното момиче. А така се надявах...
Тюх, пак не можах да впечатля едното момиче. А така се надявах...
Re: Измама!
da, tova e c++ standarta ot 1998 godina
[линк]
Imam go, pukni se ot iad :P
[линк]
Imam go, pukni se ot iad :P
Re: Neka i az da se izhuwrlja....
.data
helloStr: .asciiz "Hello, World!"
.text
.globl main
main: li $v0, 4 # print string
la $a0, helloStr# the address of the string
syscall
jr $ra
haide, neka se uchi
helloStr: .asciiz "Hello, World!"
.text
.globl main
main: li $v0, 4 # print string
la $a0, helloStr# the address of the string
syscall
jr $ra
haide, neka se uchi
Re: Литература
То да четеш за дос, асемблер и борланд е като да купуваш фабрики на 8.септември 1944 :)