Posts
 
Reputation
Joined
Last Seen
Ranked #255
Strength to Increase Rep
+8
Strength to Decrease Rep
-2
87% Quality Score
Upvotes Received
15
Posts with Upvotes
13
Upvoting Members
13
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
2
13 Commented Posts
~45.2K People Reached
About Me

Student

Favorite Forums
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 Dani
22
17K
Member Avatar for badmofo

I have an assignment to write a recursive function that takes one integer variable and output the integer in reverse order to the screen. I've tried converting it to a char array(c++ "string" class not allowed) but could not get a counter to work. I can reverse an int array …

Member Avatar for Ali_40
0
873
Member Avatar for mrboolf

Hi all there. Firstly I apologize if this is not a specific question (please do point it out if you find this unpolite). I don't have real problems so if you're not personally interested feel free to save your time and close this thread :) Anyway, I had to write …

Member Avatar for jsdncjnsci
1
442
Member Avatar for akira_shinizaki

Hello everyone, i have another assignments that i can't deal with my ability yet. This is the assignment : Make a pyramid from a character where you can define it's height ! Example : 4 characters height pyramid from "x" character [code] X XXX XXXXX [/code] 6 characters height [code] …

Member Avatar for kvprajapati
0
247
Member Avatar for rees90

There was a post about this before: [url]http://www.daniweb.com/forums/thread88472.html[/url] but no code in it, this is the code I have written and it calculates the sine of x, but not exactly what I was asked to do, I have set counter to 15, and there should be no counter, it should …

Member Avatar for VernonDozier
0
179
Member Avatar for VernonDozier

Here's one of those "wacky news" stories. Some guy named his kid Adolf Hitler because he liked the name and "because no one else in the world would have that name." (there's a good reason for this). His daughter is named "Aryan Nation", probably for similar reasons. Anyway, they threw …

Member Avatar for sneekula
2
483
Member Avatar for orwell84

I have a problem with a program I'm writing. It's supposed to find the factorial of the number you input, but it's not. The problem seems to be that the recursive function isn't...well...recursing. Right now, when compiled, the program multiplies the number by the number before it. So if it's …

Member Avatar for orwell84
0
150
Member Avatar for jimbob90

program read from cin what the user wants to do ("add" a name to list) or ("lookup" a name). in add just add whatever was read in to the file. in lookup print out a line of text with the string that wa read in. hopefully that makes some sense …

Member Avatar for deepglue555
0
176
Member Avatar for guest7

Hi, I wish to generate all the binary combinations for an input size n. So, the number of combinations in this case would be (2^n) and if n=2 my output should be : 00 01 10 11 How can i do it? What would be the best way? Thanks

Member Avatar for MosaicFuneral
0
332
Member Avatar for harryoma

hi everyone ;) i'm am having a problem, can you help me how to save big number into array? i have to input two big numbers (20 digits or less) and sum them. please help

Member Avatar for ddanbe
0
205
Member Avatar for mrboolf

Hi all there. Given the huge amount of blackjack/card games threads and me being personally interested in poker and other games, I was feeling like starting to play with a few useful (at least I hope so) classes for dealing (no pun intended :P) with card games. I started my …

Member Avatar for Murtan
1
519
Member Avatar for Manutebecker

[ICODE]//Deck Class #include<iostream> #include<stdlib.h> using namespace std; class Deck{ int Cards[51]; public: Deck(); void Display(); void Shuffle(); }; Deck::Deck(){ for(int n = 0; n < 52; n++){ Cards[n]=n; } } void Deck::Display(){ for(int n = 0; n < 52; n++){ cout << n+1 << ". " << Cards[rand()%51] <<endl; }} …

Member Avatar for ArkM
0
262
Member Avatar for iannemic

deleting first element of an array.... deleting last element of an array... deleting middle element of an array... inserting first element of an array.... inserting last element of an array... inserting middle element of an array... searching the 2nd highest positive even integer thanks i need it... thanks

Member Avatar for mrnutty
-2
128
Member Avatar for nitro

please tell me how i can code a BST in c++ ? i know that each node is like that of a linked list where one 'box' stores the item. another two boxes stores the address/pointers to the two siblings. but how can i transform this into code? like this? …

Member Avatar for AHUazhu
1
138
Member Avatar for Salem
Member Avatar for VernonDozier
0
140
Member Avatar for anbuninja

so i think we might have nested loops in my upcoming final. so im practicing some challanges. heres a program sample For how many years have you collected rainfall data? 2 Enter the rainfall (in inches) for month 1 of year 1: 4 Enter the rainfall (in inches) for month …

Member Avatar for deviantrunner
0
179
Member Avatar for callprem26

Hi all, 1. In C++, how can we print "Hello World" say 100 times witout using any loops (for, while/do while, for_each or recursion)? 2. I need to make a Base class underivavle. Could somebody tell me why "virtual" keyword is necessary in following code snippet? [code=cplusplus] #include <vector> #include …

Member Avatar for Narue
0
177
Member Avatar for micky692002

Hi guys, I have to make a program for my programming class and I have no idea of how to do it. Can someone help me? Here's the program that I have to make in C++. A common memory matching game played by children is to start with a deck …

Member Avatar for Murtan
0
3K
Member Avatar for Undermine

[B]header[/B] [ICODE] class DeckOfCards { public: DeckOfCards(); void Shuffle(); void deal(); void hand(); private: int deck[4][13]; int numcard; int row; int col; }; [/ICODE] [B]main[/B] [ICODE] #include "dc.h" using namespace std; int main() { DeckOfCards DeckCards; DeckCards.Shuffle(); DeckCards.deal(); DeckCards.hand(); return 0; } [/ICODE] [ICODE]#include <iostream> using std::cout; using std::cin; using …

Member Avatar for mrboolf
0
108
Member Avatar for freelancelote

This's got probably an easy answer but it's been puzzling me a few hours already. The code below declares a string object and fills it character by character. I can print every single character (line 16) but I can't print the string as a whole (line 19). Could anybody tell …

Member Avatar for Narue
0
146
Member Avatar for gunsmith2112

can someone please give me a hand in adding arrays to my game here is what i have. [CODE]#include <iostream> #include <string> #include <time.h> #include <cstdlib> using namespace std; void initMessages() { const char* END_OF_ARRAY = "end_of_array"; const int YES_MSG = 0; const int NO_MSG = 1; } char* getMessage(const …

Member Avatar for mrboolf
0
138
Member Avatar for mrboolf

[URL="http://www.castpuzzle.net/english/index.html"]castpuzzle.net[/URL] My brother just brought me one from Munchen and I went crazy about it :P This is mine: [URL="http://www.castpuzzle.net/english/castpuzzle/radix.html"]Cast Radix[/URL]. I found it to be a little more difficult than I thought at first (it's level 4) but I managed to take it apart and then assemble it again …

0
78
Member Avatar for GrimJack

The [URL="http://www.youtube.com/watch?v=nUDIoN-_Hxs&eurl=http://www.drawger.com/zinasaunders/?cat_id=426&sort="]woman[/URL] of my dreams.

Member Avatar for mrboolf
0
66
Member Avatar for freelancelote

Hi, I'm trying to have a function that takes an ifstream object and returns an int as in [ICODE]int wCount(ifstream myFile);[/ICODE] Is that possible? The compiler gives me loads of errors that I simply don't understand. Thanks,

Member Avatar for Freaky_Chris
0
207
Member Avatar for singhraghav

Hey guys! i Have a prblm writing a program, i hope i can find help here.... in the prgram i have to take user input on gender as 'm' or 'f' or 'male' or 'female' or 'Male' or 'FmAle'.... what i mean is i the input should not be case …

Member Avatar for unbeatable0
0
98
Member Avatar for elitedragoon

Please help, I keep getting error C2664: 'State_Tax' : Cannot convert parameter 1 from 'float *' 'to float' [CODE] #include <stdio.h> #include <stdlib.h> #include <string.h> #include "./myheader.h" void Calculate_Taxes(float gross, float deferred, float *federaltax, float *statetax, float *ssitax); float Federal_Tax(float deferred, float gross); float State_Tax(float federaltax); float SSI_Tax(float gross, float …

Member Avatar for elitedragoon
0
725
Member Avatar for shankhs

I am searching an efficient algorithm to find all the palindromes in a string(actually I have to find the largest palindrome in a string).. Here is my code [code] string palindrome(string str) { int n=sz(str); for(int l=n-1;l>=0;l--)//Palindrome can be of any size. { for(int i=0;i<n-l+1;i++) { int j=i+l-1; string str2=str.substr(i,j-i+1); …

Member Avatar for cikara21
0
150
Member Avatar for jasimp

As you may or may not know there is [URL="http://www.cnn.com/2008/WORLD/europe/12/07/greece.riots/index.html?eref=rss_topstories"]rioting in Greece[/URL] due to the fatal shooting of a sixteen year old boy. He was shot in the process of "throwing a fuel-filled bomb at officers." I don't think the officer wanted to kill this kid, but think about it, …

Member Avatar for jbennet
0
226
Member Avatar for The Dude

[url]http://blogs.usatoday.com/ondeadline/2008/12/texas-man-says.html[/url] [quote]Texan Michael E. Schwab said that the woman driving the sedan on U.S Route 281 near San Antonio "was not driving like a Christian" and that "God said ... she needed to be taken off the road,” according to the Bexar County Sheriff's Office. [more][/quote]Ah man!!

Member Avatar for Jen0608
0
186
Member Avatar for The Dude

Right now im enjoying WDAS Quiet storm :) [url]http://www.wdasfm.com/cc-common/hdradio/player.php?strid=211[/url]

Member Avatar for Jen0608
0
128