Posts
 
Reputation
Joined
Last Seen
Ranked #16
Strength to Increase Rep
+17
Strength to Decrease Rep
-4
90% Quality Score
Upvotes Received
571
Posts with Upvotes
421
Upvoting Members
170
Downvotes Received
52
Posts with Downvotes
33
Downvoting Members
37
278 Commented Posts
~1.31M People Reached
Favorite Tags
Member Avatar for Duki

Well I just started eating dinner and thought this would be a neat topic. Everyone knows we love to eat while on the computer; two birds, one chair. I'll start it off: Deli Sandwiches, macaroni salad, potato salad and a Pepsi :)

Member Avatar for Reverend Jim
22
17K
Member Avatar for comwizz

I would like to know what is the difference betn getchar(),getch(), and getche() functions and which should be used in which conditions. Thanks, comwizz. :confused:

Member Avatar for Smartfitness33
1
5K
Member Avatar for Demetrius

[COLOR=Indigo]Hey I'm pretty new to C++. I'm taking a class on it now but I don't know how to make sounds in C++... I've done QBasic so I have a little programming background. I'm right now thinking of what to do for a program, and it largely depends on if …

Member Avatar for k191376
0
15K
Member Avatar for kanebt

The title pretty much says it all. I cant find an option in my control panel? Thanks [fake signature removed]

Member Avatar for Олег_9
3
3K
Member Avatar for DemonLady

I got this assignment and I'm stuck. I have to write a function that takes an integer value and returns the number with its digits reversed. For example, given the number 7631, the function should return 1367. Can someone help? :confused:

Member Avatar for Ajini
0
3K
Member Avatar for Aild

Hi all, I'm having a little problem with array and some "unqualified-id" problem. I've created gazillions (okay, maybe 80) arrays before but I had never encountered such problem. Especially with static arrays. [CODE] #include <stdio.h> #include <cstdlib> using namespace std; int main() { // with addition of buffers for 3x3 …

Member Avatar for Andy_20
0
13K
Member Avatar for pavankumar77
Member Avatar for Dave Sinkula

Many times [inlinecode]strtok[/inlinecode] is recommended for parsing a string; I don't care for [inlinecode]strtok[/inlinecode]. Why? [list][*]It modifies the incoming string, so it cannot be used with string literals or other constant strings. [*]The identity of the delimiting character is lost. [*]It uses a static buffer while parsing, so it's not …

Member Avatar for anti_neoliberal
0
10K
Member Avatar for vegaseat

The strange title comes from a skit by Benny Hill, where he tells his wife all the facts she shouldn't know, but she always answers "I know! I know!" Anyway, this thread is suppose to be a collection of strange facts. Let's have fun! Here are a few facts to …

Member Avatar for vegaseat
11
9K
Member Avatar for Dave Sinkula

With regard to C++ books, I'll just echo the advice here .The following books are recommended; read them in mostly the order listed." Accelerated C++ " Andrew Koenig & Barbara Moo " The C++ Standard Library " Nicolai Josuttis --- a "must have" " Effective C++ ", " More Effective …

Member Avatar for shahidali6
11
10K
Member Avatar for ~s.o.s~

EDIT: Please note, as I write this, the post is now 6 years old and might have some outdated information. I'd personally recommend beginners start with "Learn C the hard way" by Zed and this book since I have heard good things about them. Reading the FAQ put together by …

Member Avatar for mack1
29
5K
Member Avatar for William Hemsworth

Quite a while ago, I made [URL="http://www.daniweb.com/code/snippet217147.html"][B]this[/B][/URL] snippet. This code is basically the same, except that it adds animation. This method of blitting is very fast assuming you don't use a surface that's too large. On a 500 x 500 surface, I managed 350fps using only 0-1% of the cpu. …

Member Avatar for thetukiet
1
7K
Member Avatar for AJones

Hi Folks: I just installed Dev-C++ 4.9.7 beta 7 and compiled a simple "Hello World" console app, I get a lot of error related to iostream.h file not being found. Dev-C++ is installed in C:\Dev-Cpp\ directory, Has anyone else have had this problem. Thanks AJ

Member Avatar for Wajid sardar
0
2K
Member Avatar for bops

Hi again everyone, Im running into big trouble with my compiler Dev-C++, every time i compile any project, whether it is 1 im working on, or a completely fresh 1 I get the same error every single time, I have been on the bloodshed forums and IRC channel but Im …

Member Avatar for muhammad raees
0
25K
Member Avatar for makan007

I want count the elements in a srand generated array. The array is char array. Can anyone advise me on my void countElements (char* a, int size) function as it don't work? TIA. [CODE] #include <iostream> #include <ctime> #include <cstring> #include <cstdlib> using namespace std; const int MAX = 10; …

Member Avatar for TalhaMoazSarwar
0
778
Member Avatar for debasisdas
Member Avatar for James_28
8
16K
Member Avatar for taverasme

Hi all, First time poster here, I've referenced posts here on daniweb in the past and it has always been helpful, thanks! But I can't find the answer to this particular problem here on the forums. I need to write a basic string parser as part of a coding assignment …

Member Avatar for Nikolas9896
0
6K
Member Avatar for lara_

i just want to whether there is a replacement for getch() in C++. my friend said getch() is C function. thanks!

Member Avatar for nootan.ghimire_1
0
7K
Member Avatar for vegaseat

This is an example of a singly linked list allowing you to enter a number of names and associated ages. The twist is that the names are inserted into the list in ascending order. When the list is displayed, it is already sorted by name. Note: This is not an …

Member Avatar for Ancient Dragon
1
446
Member Avatar for mariners95

I need help with transposing a matrix. I already did the transpose matrix using 2 arrays. But I can't figure out how to do it using only one array. So read a matrix and create the transpose within itself. Do I use the swap or what? Any help would be …

Member Avatar for johnnew
0
392
Member Avatar for policeachan

dennis richie made c language with only 32 keywords all the functions and statements are to be created by the programer. if so wher is the source code of "printf" "scanf" "cin" "cout" ?

Member Avatar for Nishant_2
0
1K
Member Avatar for sargarpramod

Plz..guys i want to know is there any function that can give ASCII value of character? and do i need to use any header file to use that function

Member Avatar for tilakkumar
0
3K
Member Avatar for Dave Sinkula

Finding some text and replacing it with new text within a C string can be a little trickier than expected. Here is what I had come up with one day.

Member Avatar for deceptikon
0
1K
Member Avatar for The Dude

1. How Do You Catch A Unique Rabbit? Unique Up On It. 2. How Do You Catch A Tame Rabbit? Tame Way, Unique Up On It. 3. How Do You Get Holy Water? You Boil The Hell Out Of It. 4. What Do Fish Say When They Hit A Concrete …

Member Avatar for Ene Uran
9
3K
Member Avatar for ndeniche
Member Avatar for chrishea
0
1K
Member Avatar for ndeniche

i can't beleive i'm starting a thread about this... but it is a subject that must be discussed through and through... 1.- when i was talking about hating everything gay, i wasn't talking about what they've invented, because the fact that they're gay doesn't mean they're intelligent... 2.- i never …

Member Avatar for GrimJack
0
2K
Member Avatar for Lardmeister

The other evening I was visiting my great grandpapa in the old folks home. The TV was running, and we both got captivated by a program on the History channel. It talked about the Mayan calendar and that it abruptly ends in 2012. The winter solstice to be exact. That …

Member Avatar for sneekula
2
2K
Member Avatar for animesh
Member Avatar for Asif_NSU

[QUOTE=Dave Sinkula]You may want to investigate makefiles. Then you can use your favorite editor and still write modular code the correct way.[/QUOTE] I just had a glance at how to write makefiles. Looks messy(will look into that later). So opened Dev C++ instead, and tried to work with projects for …

Member Avatar for Musa_Jutt
0
3K
Member Avatar for abd2

hi, this is the code: #include <stdio.h> main() { int m1, m2, m3, m4, m5, per; printf("Enter marks in five subjects\n"); scanf("%d%d%d%d%d",&m1,&m2,&m3,&m4,&m5); per=(m1+m2+m3+m4+m5)/5; if(per>=60) printf("first division\n"); if((per>=50) && (per<60)) printf("second division\n"); if((per>=40) && (per<50)) printf("third division\n"); if(per<40) printf("fail\n"); } this is the output for: [root@localhost lbin]# gcc -o division division.c …

Member Avatar for kimchong
2
2K