- Strength to Increase Rep
- +8
- Strength to Decrease Rep
- -2
- Upvotes Received
- 15
- Posts with Upvotes
- 13
- Upvoting Members
- 13
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
Student
Re:
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 :) |
|
Re:
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 … |
|
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 … |
|
Re:
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] … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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 |
|
Re:
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 |
|
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 … |
|
Re:
[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; }} … |
|
Re:
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 |
|
Re:
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? … |
|
Re:
[url]http://www.vnunet.com/vnunet/news/2232488/teacher-slams-linux[/url] |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
[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 … |
|
Re:
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 … |
|
Re:
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 … |
|
[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 … |
|
Re:
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. |
|
Re:
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, |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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); … |
|
Re:
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, … |
|
Re:
[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!! |
|
Re:
Right now im enjoying WDAS Quiet storm :) [url]http://www.wdasfm.com/cc-common/hdradio/player.php?strid=211[/url] |