10 Archived Topics
Remove Filter Hey guys! I am working on a project using single linked list and currently on the last task which is overloading the += operator. My merge from a+=b is inefficient because I am having a memory link problem and its slow when it used in list size of 100000. Please … | |
Hey Guys, I am writing a Recursive Function which picks the best move for Computer(sort of A.I.) i have done all the base cases however couldn't figure out how to deal with the last part. [QUOTE]Given n stones the player can remove 1, 2 or 3 stones per move. The … | |
hey guys my while loop is not working correctly..doesnt matter which character i enter it will still run the loop..and what it should do is test to see if character entered is 'y'(well thats what i want it to do ) thanks!! [CODE]#! /usr/bin/perl $exp = "y"; while ($exp =="y") … | |
Hey guys, I am working on a assignment. I am 90% done with the code. However I stuck on the part where i have to flip the output(vertically and horizontaly). I tried I everything i could. I tried setting the row up side down that way it would help and … | |
hey guys im new to recursion to recursion..pls look at the function call ...question is how do i call in two functions at the same time..and which one should i return thank you. [CODE]#include <iostream> using namespace std; bool canMakeChange(int total, int nums[], int length){ if(total==0) return true; else canMakeChange(total,nums,length-1); … | |
hey guys i wrote a code for honework problem...the code works fine however everytime user puts more number than the static array it keep those number in the memory and later in the program if i do cout and cin it will ignore that and assign the number to the … | |
hey guys im working on a homework problem which requires two things -count the total number of clumps -determine the longest clump i finally made my code to recognize the number of total clumps however i still cnt figure out how to determine the longest clump any help be great!thanks:) … | |
hey guys...my code is working fine..only problem i have is my first do-while loop doesnt work...every time i try to compare the word given by the user to 'q' ||'Q'...it gives an error saying no match for the operator..please help me ....thanks! [CODE]#include <iostream> #include <string> using namespace std; bool … | |
hey guys im working on a homework problem..im done with 99% of the problem :|however i cnt figure out how to display my output(which is in dollars) using the comma my output shows >>160000 how would i make it >>160,000 um should i use setprecision??? please help thanks:) | |
hey guys..ok so i did this problem about 80% but i cnt figure out the last part[I] which is sort the characters in order of increasing size. [/I] [B]Question:[/B] Input: 4 words (strings with no spaces) and the order in which they are to be displayed, forward alphabetical, reverse alphabetical … |
The End.