int Qt1::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: fun(); break; case 1: fun1((*reinterpret_cast< QString(*)>(_a[1]))); break; case 2: fun3((*reinterpret_cast< QString(*)>(_a[1]))); break; case 3: fun2(); break; case 4: tellme((*reinterpret_cast< int(*)>(_a[1]))); break; case 5: textchange(); break; case 6: addtext(); break; case 7: settext((*reinterpret_cast< int(*)>(_a[1]))); break; case 8: settext1((*reinterpret_cast< QString(*)>(_a[1]))); break; case 9: settext2((*reinterpret_cast< int(*)>(_a[1]))); break; case 10: displayimage(); break; case 11: displayqt2(); break; } _id -= 12; } return _id; }
void main() { fun1(); fun2(); printf("Hello world\n"); }
int main(void) { int N, M,i ,j ,k , m , n; char *str; //char a[8] = "ABCDEFG"; //printf("%s\r\n", a); //fun4(a,2,3); //printf("%s\r\n", a); int a,b,c; while(scanf("%d", &N) != EOF) { if(scanf("%d", &M) != EOF) { if(NULL == (str = (char*)malloc(sizeof(char)*(N+1)))) { return 0; } scanf("%s", str); printf("%s\r\n", str); char **array = (char**)malloc(sizeof(char*)*M); for(i = 0; i < M; i++) { array[i] = (char*)malloc(sizeof(char)*20); gets(array[i]); gets(array[i]); printf("%s\r\n", array[i]); k = 0; while(array[i][k] != ' ') k++; printf("k = %d \r\n", k); while(array[i][k] == ' ') k++; printf("k = %d \r\n", k); if(array[i][k] == '1') { while(array[i][k] != ' ') k++; while(array[i][k] == ' ') k++; a = array[i][k] -'0'; while(array[i][k] != ' ') k++; while(array[i][k] == ' ') k++; b = array[i][k]-'0'; while(array[i][k] != ' ') k++; while(array[i][k] == ' ') k++; c = array[i][k]; printf("%d %d %c\r\n",a,b,c); fun1(str,a,b,c); } else if(array[i][k] == '2') { while(array[i][k] != ' ') k++; while(array[i][k] == ' ') k++; a = array[i][k]-'0'; while(array[i][k] != ' ') k++; while(array[i][k] == ' ') k++; b = array[i][k]-'0'; while(array[i][k] != ' ') k++; while(array[i][k] == ' ') k++; c = array[i][k]-'0'; fun2(str,a,b,c); } else if(array[i][k] == '3') { while(array[i][k] != ' ') k++; while(array[i][k] == ' ') k++; a = array[i][k]-'0'; fun3(str,a,N); } else if(array[i][k] == '4') { while(array[i][k] != ' ') k++; while(array[i][k] == ' ') k++; a = array[i][k]-'0'; while(array[i][k] != ' ') k++; while(array[i][k] == ' ') k++; b = array[i][k]-'0'; fun4(str,a,b); } } printf("%s",str); } } return 0; }
int fun2(int n) { if (n <= 1) return n; return fun2(n-1) + fun2(n-1); }
int main() { fun2(); return 0; }
void fun1() { printf("in func1 !\n"); fun2(); }
main() { fun2(100); }
int main() { fun1(tfun<int>); // ok fun2(tfun<int>); // error: unresolved overloaded function type }
int main() { fun1(); fun2(); }
void fun3 (void) { /* fun3.1 */ fun1 (); /* fun3.2 */ fun2 (); /* fun3.3 */ } /* fun3.4 */
int scope_test () { fun1 (); fun2 (); }
void fun1() { fun2(); }
int fun1(int u, int v) { PRINT_INT(u, __FUNCTION__); PRINT_INT(v, __FUNCTION__); return fun2(v, u); }
void fun1(double *x, double *y) { *y = fun2(*x) / (*x); }
int fun1() { set_bp(); return fun2(); }
int fun1(){ fun2(); }