560 Posted Topics
Re: I wonder how much memory worth of game's he has by now. | |
Re: [QUOTE=djextreme5;946126]Take the Computer Science course if your school offers one. That is the best place you can start from. Good luck!![/QUOTE] No, it's often not the best place to start from. Lot's of CS teachers in high school are not good. Not all, but lot's. This is probably becouse most … | |
Re: Use code tags, it make's you post look nicer. Don't use `void main()` ever again except when telling other people to not to use `void main()`! Use `int main(),int main(void)` or `int main(int argc, char *argv[])`. > however the compiler when logically placing the value in stack places it as … | |
Re: >[COLOR="Red"]Isn't so a virtual address is allocated to it by the compiler.[/COLOR] Hmm... I'm not 100% about the internals of gcc, but dosen't the compiler handle the variable's for any given object (including "variable's" not yet given by the linker), and the linker set up the stack when interacting with … | |
Re: Use code tag's in your post to make it easer to read: [B][noparse][code=C][/noparse][/B] Code here. [B][noparse][/code][/noparse][/B] You have no int infront of your main(). :P | |
Re: [QUOTE=iamthwee;944389]store a char array = ["0123456789"] Loop through said string to check if it contains any of those numbers. Boom job done.[/QUOTE] Or loop through the string and check if any char is between the acsii value's of '0' and '9'. | |
Re: [QUOTE=yasaswyg;941328]How about you guys help me with a small question? how do i draw a pic of file with the file marker to explain an answer??[/QUOTE] That dosen't even make sence. By pic, I guess you mean picture. Not sure what you mean by "picture of a file," that could … | |
Re: You need a library that can support HTTP. I've never used it, but [URL="http://curl.haxx.se/"]libcurl[/URL] sound's like it will do the job. | |
Re: In your inputguess() function, put getchar() after each of your scanf's. Scanf leaves a newline in the buffer from my understanding. | |
Re: Look up how to [URL="http://www.cprogramming.com/tutorial/lesson4.html"]make and use[/URL] functions. By the way, use code tags in your post. Good luck. | |
Re: What do you want to do exactly? It sounds like your talking about functions. [code=C]void child(void); int main(void) { child(); /* Call child process */ return 0; } void child(void) { /* Random stuff */ }[/code] | |
Re: What does your print function look like? Take a look at [URL="http://c-faq.com/~scs/cclass/int/sx9b.html"]this[/URL]. | |
Re: You used void main() instead of int main(). Any parent process will have no idea if the program ran properly or not. Try attaching to code if it's long. It make's the thread's easer to read. | |
Hey guy's. I've never really cared for game dev befor, but it sounds kinda fun. I'm expecting a spair class next year and need to have something to do in my spair time. I'm thinking of making a clone of rogue (the 80's unix rpg). I'm wondering what the best … | |
Re: strtok() has bug's, so you have to be carefull with it. Why would you even need strtok() for this? [URL="http://www.cplusplus.com/reference/clibrary/cstring/memmove/"]memove()[/URL] does not return anything, so your printf statment look's... odd. What do you mean by "[COLOR="Red"]output backwards, not in reverse order[/COLOR]"? Give us a runtime example. | |
| |
I'm seeing if it is possible to write a pong game only using standard C with maximum portability. I've worked out everything except user input. When the game is playing, If the user has no key pressed down, the paddle does not move but the ball should keep moving. I … | |
Re: [QUOTE=Ihab Mortada;933672][COLOR="Green"]Hello everybody... I'm student,I'm sophomore o& major is MIS , i have studied C language and SQl... So my questions Is how can i continue... i need to know what is the next ? plz give me the "sequence" for my studies[/COLOR]...[/QUOTE] I'd suggest taking an english class (not … | |
Kinda had an idea for artificial intelligence, though I don't think it's original. I don't know much about AI, so I'm taking a shot in the dark. My idea comes from biology and evolution (not new in computer science). The 'algorithm' for evolution is simple. Lets say you have a … | |
Re: [QUOTE=lecotti;940415]Thanks for the fast reply, yeah was expecting 123 to be printed. Still don't fully understand why it dosn't work. Could you give me an example of the code i would need or point me in the right direction, cheers.[/QUOTE] Example of what you are doing: [CODE=C]#include <stdio.h> int main(void) … | |
Re: I think I just had [URL="http://www.daniweb.com/forums/thread209277.html"]daja vu[/URL]. | |
![]() | Re: Look's like you'll need an audio library. ![]() |
Re: Use code tags. [B][noparse][code=C][/noparse][/B]<Your code here>[B][noparse][/code][/noparse][/B]. Can you give us the output of the compiler? That would make answering your question alot easer. | |
Re: Pass through the input array twice. The first time, if the number is even, put it in the output array. The second time, if the number is odd, put it in the output array. | |
Re: It look's like you posted in the wrong forum. Next time, post in the Hardware/Software hardware forums. I think they'll also need to know what operating system you are using. | |
Re: Hmm... Would pluging the audio output into the microphone input be cheating? If the operation system your using can't intercept it, and your audio drivers can't intercept it, than try another player. I have no idea if this can even be done on windows or not, but perhaps you can … | |
Re: Switch \code with /code. Shorten your code. What is an IF loop? I think you mean while loop. I hope this wasnt suppost to be your loop: if storenum >=1 || if storenum <=3 //While Loop to Request Input of 1,2,or 3, still working on this A while loop looks … | |
Re: [QUOTE=evstevemd;938706]My assumption was wrong. I thought that after building, the wxWidgets library are being put somewhere and then you can delete that folder. Thanks for the answers :)[/QUOTE] Wait, what? That would be a completely different question. After you build and install WxWidgets, you can remove the directory that you … | |
Re: [QUOTE=MrNoob;936656] i dont know how simple *num++ can affect the string anyways when i remove it the function itself doesnt work it returns 0 character but when i remove it work fine .....[/QUOTE] Well if you got it to work, than whats the problem? If it's not working try replacing … | |
Re: [URL="http://lmgtfy.com/?q=C%23+if+statement"]Try this.[/URL] | |
I'm probably not going post for a few days becouse I'm on Vacation in Toronto (it's hot down here :).) The only roller coster I've ever ridden on is a small one, with a 20 foot hill. Today, I rid on a roller coster called the bebemoth in Canada's wonderland. … | |
Re: What do you mean by "[COLOR="Red"]stops running[/COLOR]"? Also what function? I'm guessing add_customer_file(). Try using printf's where you think it "stops runing" If you don't see your message on the screen when you run it, the error is higher up. If you see your message, than the error is lower. … | |
Re: 1. We will not just give you the code. We might however, help you find problems in code you have already written or tell you how to approch a particular problem. 2. What do you mean by a double linked list? Do you mean a nested linked list (a list … | |
Re: Create two arrays, loop through 0 - 10, calculate coressponing array elements. Cake. I only finished Grade 10 math so far, so I might be naive, but in your function: [COLOR="Red"]f(x)=y=(e^x) (sinx)[/COLOR], whats the value of e? | |
Re: Here's one problem: [CODE=C]int main() { Customer custDB[SIZE]; // an array of Customer type of size SIZE int i; for(i = 0; i < SIZE; ++i); { printf("Enter Data for Customer %d\n"); printf("Enter First Last Phone: "); scanf("%s %s %s", &cust.firstName, &cust.lastName, &cust.phone); printf("Address (Street City State ZIP): "); scanf("%s … | |
Re: He already stated his question, "[COLOR="Red"]please can any1 help fix this......[/COLOR] ", and I think it's fair we answer it... Yes we can fix this. Hope I was able to help you, xfreebornx. :P | |
Re: Look's like your confused about passing arguments. Actually, it look's like you don't understand, or you didn't write half the code up there. Here's what you need to do: 1. Write a function that will take two int pointer's as arguments. Get the user input and write the values into … | |
Re: How do you calculate remainder? There is an operation called modulo that will do this. Its used like: 5 % 6 = remainder of 5/6. BTW, the program you were given is not vary good programming practice. It uses the exit() every single time it needs to exit! Generally, exit() … | |
Re: Use code tags! When you see extra characters after what it is suppost to print out, it's probably becouse you forgot to put the null terminator after your string. Also, where is the variable SIZE defined? | |
Re: [QUOTE=wesduncan;934606]sorry about that. the main thing I need to know is how could I have a user enter a measurement and have the program search through a file for a matching string. and then have that print out.[/QUOTE] You need to be more percise than that. Give us an example … | |
Re: I reccomend starting with [URL="http://www.petesqbsite.com/sections/introduction/intro.shtml"]QBASIC[/URL] (almost everyone is familar with basic, so it can be used to communicate idea's to other programmers) or [URL="http://www.python.org/"]python[/URL] (python is popular, even nasa uses it apparently). C is... its hard to explain. Compair it to learning how to drive. You'll want to know how … | |
Re: [URL="http://projecteuler.net/"]Project euler[/URL]? That would give you experience in solving problems. [URL="http://wxwidgets.org/"]wxwidgets[/URL] for gui programs. [URL="http://www.libsdl.org/"]SDL[/URL] and [URL="http://www.opengl.org/"]OpenGL[/URL] for graphics. Maybe [URL="http://www.portaudio.com/"]portaudio[/URL] for sound. Learn C++ thoroughly. From here, you can try low level programming like x86 assembly (which will benefit higher level programming), or you can try higher level programming … | |
Re: [QUOTE=leowasif;933580]i have a project, during the running of my project there is an run time error occur that say can't run specific file but it run so i want to terminate this error "it is window error" i already don with the system properties but it is still there can … | |
Re: It's kind of hard to help you if you don't have a clear question: >[COLOR="Red"]how to cut the 10 steel from stock with minimum waste.[/COLOR] Are you talking about robotics? Also, what does this have to do with your title: [COLOR="Red"]Calculation[/COLOR]? Did you need to calculate something? | |
Re: Load the file into memory. Scan the file for 1 type of error, print errors to the screen and scan for another type of error. Continue the process for each type of error. Making a perfect one would be vary hard, but if you only need to check for a … | |
Re: If you don't want the cards to reapeat, you can create an array of all the possible cards, and do random swaps. Thats the easy way. If you need speed for some reason, you can do this: create two arrays: deck (any type) and temp (int). Make sure temp is … | |
Re: [COLOR="Red"]First off, use int main(), not void main()[/COLOR]! At the end of your main() you should have return 0; Also note that using globals is generally a bad idea. It makes the program less moduler. Your functions also don't return anything, so you can declare them as voids. Looking at … | |
Re: In standard C? Use characters to draw the pie chart (such as asterisk or pound sign). You can hard code the circle, or use one of the circle algorithms such as [URL="http://en.wikipedia.org/wiki/Midpoint_circle_algorithm"]this[/URL]. To draw lines in the circle, use one of the line algorithms such as [URL="http://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm"]this[/URL]. This sounds like … | |
Re: From the vague information given on google, I think it's about how computers interface with humans for entertainment. I think playing the computer in pong is an example of ludic computing. Try [URL="http://books.google.ca/books?id=BaUC776zbOoC&pg=PA3&lpg=PA3&dq=ludic+computing&source=bl&ots=6oRZJRHsPB&sig=O1SZuPAx-TlrLSDPKrYHGXi0PVQ&hl=en&ei=5Q1uSqb_GISsswOVybDKDg&sa=X&oi=book_result&ct=result&resnum=10"]this[/URL] maybe. |
The End.