Jump to content

someboddy

Ultra Members
  • Posts

    1,661
  • Joined

  • Last visited

Everything posted by someboddy

  1. If torrent's to illegal files were illegal, you coulden't get them so freely on the net. I read the sticky, but this forum is not like the dum non-releated-to-emulation forum suggestions that pop up around here. This forum will replace our lost "Request Any Rom" forum.
  2. I know there are alot of dumm forum requests lately, but I think this is a good one. In this forum, people could get help about the P2P programs out there, and to request and post browserlinks and torrent (This shouldn't be against the new rules, right?)
  3. Maby that's because the emu crushes when you load another rom.
  4. http://www.1emulation.com/forums/index.php?showtopic=2486 Anyways, topic moved to the corrent affairs.
  5. I have 5 arms and 6 eyes, and belive it or not, 2 ears.
  6. In the memory, the cells of an array are placed by order. The array variable is basicly just a pointer to the first cell of the array. Thats the reason you can send an array to a function and change it inside the function. Thats allso the reason you can't copy one array to each other like a regular variable. You can create and delete an array on the fly like that: int *a; a=new int[5]; a[2]=2; delete [] a; Notice that you don't write "*a[2]=2", because the [] already tell the compiler you refer to a pointer.
  7. I will only stop my illegal downloads when video games drop from 90$ a game back to 30$, and when the video-games stores in israel will get the latet games.
  8. I checked on google. There are many results for both spells.
  9. This subject is complicated, so don't be too shy to ask questions. Pointers are very powerfull tools in programing. Wo what are pointers? Every variable has an address. The address tells the computer where in the memory the variable is located. A pointer is a variable that can store such addresses. To declare a pointer, add '*' in before it's name: int *p; p is a pointer to integer. If you add '&' before a variable name, you get the variables address. You can put that address inside a pointer: int a,*p; p=&a; To use the value in the address the pointer holds, put '*' before the pointers name: int a=0,*p; p=&a; *p++; a is now 1. You can create variable on the fly using pointers like this: int *p; p=new int; "new int" find an empty place in the memory, and return it's address. You can to it to other types of variables: char *c; float *f; c=new char; f=new float; You can release the memory like this: int *p; p=new int; delete p; That will be all for today. Class dismissed.
  10. What's wrong with the title?
  11. Megaman battle chip chalange is the most overrated game. When I call it a game I am overrating it.
  12. What about forum requesting forum.
  13. Just get an emu.
  14. Sometimes you don't want to know what number you will use. You want to generate a random number. There are some functions that generates a random number. To use those functions, you need to include "stdlib.h": #include<iostream.h> #include<stdlib.h> void main() { randomize(); cout<<random(10); } the output will be any number between 0 and 10, includeing 0 not includeing 10. We can think about those functions like a lottory. Randomize mix up the balls, and random pick a ball. Use randomize only once, before the first random, or you will get the same number any time you use random. If you don't use randomize, you will get the same numbers every time you run the program. That will be all for today. Class dismissed.
  15. You can make variables accessible for all functions includeing the main program ("void main()": it's a function) by making them global. When you declare a variable inside a function, it's accessible only inside that function. However, if you declare a variable outside of functions, it's accessible to the entire program (all the program after the decleration, of course): #include<iostream.h> int num=0; void func() { num++; } void main() { num++; func(); } "const" variables and "enum"s are allso following that rule. "#define"s, however, is accessible to the entire program after the command, since it's precompiling action. That will be all for today. Class dismissed.
  16. Moved to PS2 section.
  17. It still doesn't work
  18. I need to backup my PC to install the dahs, but whatever.
  19. Functions are code parts that you can call. Functions are used to split the program into simple parts, making it easyer to write and to read, and/or to save codes: you can call a function any time you want. You declare a function like this: #include<iostream.h> void func1() { //bla bla bla } void main() { //yada yada yada func1();//calling the function } First, the program will run "yada yada yada". Then, by calling func1, the program will run "bla bla bla". So: #include<iostream.h> void func1() { cout<<"bla"; } void main() { cout<"yada"; func1(); } Will output "yadabla" functions ca allso have parameters between the (): void f(int a,int b,char c,char s[]) Then you can use those variables in the function. Few notes: You can't put two parameters after the same type(int, char ect.) In arrays, you don't put the number of cells inside the []. In matrixes, you don't put the number in the first [], but you put it in the others. I will explain the reasons later. If you change the parameter inside the function, it wont effact whatever you put there when you call the function. So: #include<iostream.h> void changenum(int a) { a++; } voin main() { int a=5; changenum(a); cout<<a; } will output "5". The "a" inside the function is not the "a" inside the main program. You can call it any other legal name. if you put "&" before the name of the parameter, The cangews you do to it will affact the outside: #include<iostream.h> void changenum(int &a) { a++; } voin main() { int a=5; changenum(a); cout<<a; } will output "6". Functions can allso return values: #include<iostream.h> int multipile(int a,int b) { return a*b; } voin main() { cout<<multipile(4,5); } will output "20". Nonvoid functions must have a return command. The return can allso be put in a void function. The function will end itself when it reach to a return command, so: #include<iostream.h> void func() { cout<<"first"; return; cout<<"second"; } void main() { func(); } will return "first" That will be all for today. Class dismissed.
  20. There is a link, but I can't FTP. "Limited or no connectivity" Problem. Anyone know what to do?
  21. I got my cable crossed at the store!!!
  22. Topic moved to online gaming forum.
  23. I DON'T HAVE A HUB!!! I only have a direct router cable. My question is: is there any adaptor that makes my direct router a crossover?
  24. I forgot to tell the sellsman I need a crossover cable. I havn't knew that there is a different. I just want to know if there is any adaptor, to make my direct router into crossover.
  25. O.K., found out the problem. I bought a direct router instend of crossover... I am the dammest man alive. Is there an adapter, or I just thrown away 10$?
×
×
  • Create New...