- Strength to Increase Rep
- +9
- Strength to Decrease Rep
- -2
- Upvotes Received
- 23
- Posts with Upvotes
- 21
- Upvoting Members
- 19
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Re: [URL="http://www.mega-nerd.com/libsndfile/"]http://www.mega-nerd.com/libsndfile/[/URL] | |
Re: In C, you can use the char data type just like a number and it will automatically convert it to the ASCII value. Here's a minimal example: [CODE=c]int myNum = 'a';[/CODE] myNum would have the value 97 in it. | |
Re: There is a single arithmetic operation you can use to convert the ranges 0-89, 90-179, 180-269, 270-359 into the values 0, 1, 2, 3, respectively. The result represents the quadrant; 0 would be the first quadrant. | |
Re: Your original code is almost right. Just take a look at your structure definition. You want [ICODE]comments[/ICODE] to hold a string, but you have defined it as a single character. That's why you're getting an error with gets. Now, gets won't allocate the variable for you so you'll need to … | |
| Re: There are a few other considerations when using [ICODE]malloc[/ICODE]. The function returns [ICODE]NULL[/ICODE] if memory can't be allocated, so you need to test for that possibility: [CODE]void *mem = malloc(size); if(mem == NULL) // or if(!mem) { // error handling }[/CODE] You also need to free the memory when you're … |
Re: In addition to the XHTML comment, tags need to be closed properly. And is this really the place for yet another PHP tutorial? There are some really great ones out there already. | |
Re: If you really want it simple, I like the "write it yourself" approach as well. Paul Hudson has a nice [URL="http://hudzilla.org/phpwiki/index.php?title=Creating_a_messageboard"]tutorial[/URL]. | |
So I have a table containing various software and a table containing various features. Each software entry need to have a list of features. Here's where it gets tricky: In my application, I need to be able to select a software entry if it has all the features in a … | |
Re: "[URL="http://www.daniweb.com/forums/announcement118-2.html"]We only give homework help to those who show effort[/URL]" | |
| Re: It seems you read all the posts about the problem, but none about the solutions. Computer specs are not the issue. Care to post which compiler you use? |
Re: Why, in any circumstance, would resurrecting a four year old thread to ask a vague question using bad grammar (forget english grammar, I mean C grammar. C doesn't have "commands") be a good idea? Hmmm... | |
Re: [URL="http://cplusplus.com/reference/clibrary/cstdio/fgets.html"]fgets[/URL] will do that. [URL="http://cplusplus.com/reference/clibrary/cstring/strtok.html"]strtok[/URL] will split up this string into its parts. | |
Re: startX and startY should be private or protected. [CODE] public int getStartX() { return startX; }[/CODE] I trust you can write the method for startY on your own. | |
Re: Your hottestDay method does the same exact thing as highestTemp. Which variable represents the current day you are checking? In checkDuplicates, your outer loop will only run once while the inner loop will run 48 times. The variable x will never change from 0. Use your previous for loops as … | |
Re: You don't need to allocate memory for x_transpose. After the line [ICODE]x_transpose= transpose(array,nrows,ncolumns);[/ICODE] x_transpose points to the same block of memory that was allocated for y. You do need to free all of this memory before the program closes, however. | |
Re: [URL="http://lmgtfy.com/?q=java+microsoft+access+database"]http://lmgtfy.com/?q=java+microsoft+access+database[/URL] | |
Re: Where are you initializing vowelCount? Anyway, you could just reuse the vowelNum method and do something like this: [ICODE]return word.length() - vowelNum();[/ICODE] | |
Re: Try using [ICODE]printf("Greetings, human!");[/ICODE] (just a guess, honestly) | |
Re: Why do you need to write this recursively? It would be much simpler with a single loop. Also, recursive methods tend to be much slower and more memory-intensive than their iterative equivalents. | |
Re: Whether you like it or not, every key press involves several method calls to send the key event to the proper object. If you don't want to send data on every key press then you can create a buffer (array) to store key strokes and only send it when the … | |
Re: You can call [ICODE]myGuiWindow.add(component);[/ICODE] from any class as long as it has a reference to the window. | |
Re: This program uses many outdated practices (void main, clrscr, kbhit) and should [U][B]not[/B][/U] be used as an example by anyone. | |
I just wrote a program that plays various drum sounds when certain keys are pressed. It works for the most part but, when two keys are pressed at the same time, only one sound plays. Both key presses are received, however. I am using the Clip class which allegedly supports … | |
Re: Google ("c sound library") returns plenty of good results. You can find tutorials/documentation for any of them. Check out the features to find which library fits your needs best. | |
Re: You will have to use COM objects. MSDN provides a [URL="http://msdn.microsoft.com/library/ms680573%28VS.85%29.aspx"]programming guide[/URL] and a [URL="http://msdn.microsoft.com/library/ms693341%28VS.85%29.aspx"]reference[/URL]. These can be hard to understand so you may want to find a tutorial on google.. | |
I'm not all that familiar with the C syntax rules, I've mostly worked with C++, and I'm having some weird problems working with Visual C 2008. Here's my code: [CODE=c]#ifndef IFF_H #define IFF_H #include <stdio.h> #include <stdlib.h> #define IDS_GROUP "" #define IDN_GROUP 1 #define IDS_CAT "cat " #define IDN_CAT 2 … | |
Re: What on earth do you need a binary counter for in a tic tac toe game? Computers store everything in 8-bit binary. How you refer to the number doesn't make a difference, other than maybe speed. | |
Re: We can help you better if you post the relevant code as well. | |
Re: fgets to get the string, strtok to tokenize it. To do this multiple times, just put your code inside the body of a loop. | |
I can't find, within my project directories, any option to specify where I want my .exe to start in. I want to do this for that sake of .dll and other file references. Any help? |