1. sayfa
ücretli ise bir iki arkadaşa yönlendirebilirim hocam bilg muh okuyan |
|
uzun olduğu için ücretsiz yapan olur mu bilmiyorum bu devirde. soruları ekliyeyim :) NOTES : • You have to use functions for each operations in menu. • When you use function , first declare function prototype before main function. Prototype includes function retrn type, function name, if parameters exist, their types. For instance, myFunction has no paramater and type is void : Before main function i have to write : void myFunction(); If myFunction’s return type int : int myFunction(); If myFunction has parameter : int myFunction(int, char); • You should write your function after main function. When you write function , first you declare function’s type, then declare name and write parameters. For example if my function don’t return anything and don’t take any parameters, i will write my function like this : o void myFunction() { //Codes in myfunction } If my function has parameters, i will write myFunction like this: void myFunction(int variable1,char variable2) { //Codes in myFunction } If myfunction return any value : int myFunction(int variable1) //bold int is myFunction return type { int result; result = variable1*2; return result; //Result is my return value } • You can build your menu using do while(). while() statement includes condition. During the condition is provided, while loop runs. In do while statement, codes are run first, then condition is checked. For example, i=0, and my condition is during i not equals zero, while loop runs. o do { printf(“Hello”); }while(i!=0); printf function is run, then condition is checked. So output will be just Hello. If i=-2 : o do { printf(“Hello\n”); i++; }while(i!=0); The output will be : Hello Hello |
pm attım |
cevapladım |
Öğlene kadar vakit var aslında :( geciken günler için de 20 puan eksilecek. ama 1 gün gecikebilir yardım edebilir misiniz? |
Gönder bakalım soruları |
pm attım |
|
1. sayfa
13 soru resimli olduğu için konuya ekleyemedim.
DH forumlarında vakit geçirmekten keyif alıyor gibisin ancak giriş yapmadığını görüyoruz.
Üye Ol Şimdi DeğilÜye olduğunda özel mesaj gönderebilir, beğendiğin konuları favorilerine ekleyip takibe alabilir ve daha önce gezdiğin konulara hızlıca erişebilirsin.