560 Posted Topics

Member Avatar for The Dude
Member Avatar for Mental1ty

[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 …

Member Avatar for JameB
0
148
Member Avatar for Salem

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 …

Member Avatar for frk
4
585
Member Avatar for duggydiggy

>[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 …

Member Avatar for Salem
0
200
Member Avatar for mevanga

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

Member Avatar for mevanga
0
125
Member Avatar for revenge2

[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'.

Member Avatar for Hiroshe
0
5K
Member Avatar for yasaswyg

[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 …

Member Avatar for yasaswyg
-1
122
Member Avatar for kiel19

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.

Member Avatar for Protuberance
0
383
Member Avatar for patrick k

In your inputguess() function, put getchar() after each of your scanf's. Scanf leaves a newline in the buffer from my understanding.

Member Avatar for Hiroshe
0
252
Member Avatar for sara9111

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.

Member Avatar for jesseb07
0
122
Member Avatar for guyod

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]

Member Avatar for guyod
0
167
Member Avatar for NRaf

What does your print function look like? Take a look at [URL="http://c-faq.com/~scs/cclass/int/sx9b.html"]this[/URL].

Member Avatar for Dave Sinkula
0
90
Member Avatar for yasaswyg

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.

Member Avatar for Hiroshe
0
151
Member Avatar for Hiroshe

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 …

Member Avatar for Hiroshe
0
136
Member Avatar for carlcarman

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.

Member Avatar for wildgoose
0
129
Member Avatar for jephthah
Member Avatar for Hiroshe

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 …

Member Avatar for Duoas
0
2K
Member Avatar for Ihab Mortada

[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 …

Member Avatar for syahrizal
0
305
Member Avatar for Hiroshe

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 …

Member Avatar for Hiroshe
0
206
Member Avatar for lecotti

[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) …

Member Avatar for lecotti
0
2K
Member Avatar for nandini vishuu

I think I just had [URL="http://www.daniweb.com/forums/thread209277.html"]daja vu[/URL].

Member Avatar for Hiroshe
0
98
Member Avatar for nuar046
Member Avatar for XMyKillX

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.

Member Avatar for yellowSnow
0
91
Member Avatar for taikoprogrammer

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.

Member Avatar for yellowSnow
0
1K
Member Avatar for blade_costic

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.

Member Avatar for Hiroshe
0
121
Member Avatar for sgauravv

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 …

Member Avatar for MosaicFuneral
0
114
Member Avatar for no1zson

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 …

Member Avatar for no1zson
0
192
Member Avatar for Stefano Mtangoo

[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 …

Member Avatar for Hiroshe
0
121
Member Avatar for MrNoob

[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 …

Member Avatar for Dream2code
0
232
Member Avatar for NargalaX
Member Avatar for sknake
0
109
Member Avatar for Hiroshe

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. …

Member Avatar for sknake
0
187
Member Avatar for Defaye

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. …

Member Avatar for Hiroshe
0
152
Member Avatar for ju_10_ve

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 …

Member Avatar for invisal
0
164
Member Avatar for sara9111
Member Avatar for raseel

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?

Member Avatar for raseel
0
85
Member Avatar for RobBrown

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 …

Member Avatar for RobBrown
0
447
Member Avatar for xfreebornx

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

Member Avatar for mrnutty
0
115
Member Avatar for flamingice

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 …

Member Avatar for Hiroshe
0
95
Member Avatar for taikoprogrammer

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() …

Member Avatar for Dave Sinkula
0
158
Member Avatar for cokaznsyco72

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?

Member Avatar for cokaznsyco72
0
185
Member Avatar for wesduncan

[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 …

Member Avatar for WaltP
0
98
Member Avatar for alvalany

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 …

Member Avatar for sftwr21
0
201
Member Avatar for Silvershaft

[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 …

Member Avatar for Dave Sinkula
0
93
Member Avatar for leowasif

[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 …

Member Avatar for Salem
0
68
Member Avatar for laks_samy

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?

Member Avatar for Hiroshe
0
200
Member Avatar for shou2009

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 …

Member Avatar for Nick Evan
0
298
Member Avatar for yasaswyg
Re: HELP

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 …

Member Avatar for Hiroshe
0
181
Member Avatar for hughesadam_87

[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 …

Member Avatar for Hiroshe
0
88
Member Avatar for karpaklu

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 …

Member Avatar for MrNoob
0
116
Member Avatar for hellonikki

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.

Member Avatar for Hiroshe
0
70

The End.