Posts
 
Reputation
Joined
Last Seen
Ranked #293
Strength to Increase Rep
+9
Strength to Decrease Rep
-2
100% Quality Score
Upvotes Received
23
Posts with Upvotes
21
Upvoting Members
19
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
11 Commented Posts
~79.2K People Reached
Favorite Tags
c x 159
php x 109
c++ x 91
java x 20
mysql x 13
Member Avatar for vineeshvs

[URL="http://www.mega-nerd.com/libsndfile/"]http://www.mega-nerd.com/libsndfile/[/URL]

Member Avatar for NantKKNyein
0
9K
Member Avatar for sargarpramod

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.

Member Avatar for tilakkumar
0
3K
Member Avatar for chirag_mittal

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.

Member Avatar for chirag_mittal
0
466
Member Avatar for faithful4ever

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 …

Member Avatar for zeroliken
0
130
Member Avatar for karoma

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 …

Member Avatar for death_oclock
0
222
Member Avatar for khess

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.

Member Avatar for cwarn23
-8
1K
Member Avatar for Stunt

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

Member Avatar for maxlipman
0
574
Member Avatar for death_oclock

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 …

Member Avatar for death_oclock
0
121
Member Avatar for kirtics344

"[URL="http://www.daniweb.com/forums/announcement118-2.html"]We only give homework help to those who show effort[/URL]"

Member Avatar for maqsood8797
1
165
Member Avatar for ravish_26490

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?

Member Avatar for niran manandhar
0
1K
Member Avatar for erictham83

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

Member Avatar for shiva_202
0
405
Member Avatar for Dionysus

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

Member Avatar for Adak
0
727
Member Avatar for almefab

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.

Member Avatar for almefab
0
971
Member Avatar for coco24

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 …

Member Avatar for JKP()
0
121
Member Avatar for vineeshvs

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.

Member Avatar for vineeshvs
0
346
Member Avatar for u_v

[URL="http://lmgtfy.com/?q=java+microsoft+access+database"]http://lmgtfy.com/?q=java+microsoft+access+database[/URL]

Member Avatar for Akill10
0
108
Member Avatar for plasticfood

Where are you initializing vowelCount? Anyway, you could just reuse the vowelNum method and do something like this: [ICODE]return word.length() - vowelNum();[/ICODE]

Member Avatar for plasticfood
0
100
Member Avatar for PCSAWICK829
Member Avatar for anirudh33
0
253
Member Avatar for matrixcool

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.

Member Avatar for JamesCherrill
0
187
Member Avatar for VichuTheWizard

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 …

Member Avatar for VichuTheWizard
0
194
Member Avatar for justin3085

You can call [ICODE]myGuiWindow.add(component);[/ICODE] from any class as long as it has a reference to the window.

Member Avatar for Akill10
0
102
Member Avatar for murtazamzk

This program uses many outdated practices (void main, clrscr, kbhit) and should [U][B]not[/B][/U] be used as an example by anyone.

Member Avatar for death_oclock
-2
109
Member Avatar for death_oclock

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 …

0
52
Member Avatar for Kamatari

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.

Member Avatar for death_oclock
0
122
Member Avatar for johngalt10

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

Member Avatar for jonsca
0
96
Member Avatar for death_oclock

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 …

Member Avatar for HHBones
0
220
Member Avatar for al3x748769

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.

Member Avatar for viwenka
0
145
Member Avatar for Eric Cute
Member Avatar for ZeRo 00

fgets to get the string, strtok to tokenize it. To do this multiple times, just put your code inside the body of a loop.

Member Avatar for ALi Nuces
0
94
Member Avatar for death_oclock

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?

Member Avatar for jakesee
0
102