Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
~2K People Reached
Favorite Forums
Favorite Tags
c++ x 13
c x 13
Member Avatar for fux0r

I need to create a christmast tree which takes R value from user then output on console a Christmas tree in which last part height equals R. The tree consists of triangles of heights from 1 to n.The shape must look like (for R=4) [IMG]http://img136.imageshack.us/img136/4862/christ.jpg[/IMG] thanks in advance...

Member Avatar for abhimanipal
0
110
Member Avatar for DJPlayer

I'm scanning a file to see if user input matches a word in the txt file.. if it matches.. increase the array size and add the word. This is a 2d array. "max_word_size" is currently just a constant variable. [CODE]void UserMode(char userAnswers[][max_word_size], int *size) { FILE *fid = fopen("dict.txt","r"); char …

Member Avatar for DJPlayer
0
180
Member Avatar for DJPlayer

ok I'm taking a text file.. 16 lines.. 6 character values per line and trying to randomly get one character per each line.. and place them into a 2d array (4x4). The values i'm getting aren't correct for some reason.. anyone have any helpful tips? [CODE] int main() { srand …

Member Avatar for WaltP
0
228
Member Avatar for DJPlayer

I'm trying to convert a double w/ a string of characters w/o using sprintf and padding w/ 0's.. omg... driving me nutz.. what I have thus far.. [CODE]#include <iostream> #include <cstdlib> #include <cmath> #include <deque> using namespace std; void d2s(double,char[], unsigned int); int main() { while (true) { double num; …

Member Avatar for Dave Sinkula
0
223
Member Avatar for DJPlayer

I have to lines listed.. a cin >> x and a scanf("%f",&x). If I use cin program works perfectly.. change it to scanf and values arent' even corect any longer.. different decimal values all together.. anyone??? [CODE] #include <iostream> #include <cstdlib> #include <cmath> using namespace std; double ApproxCos(double,double); int main() …

Member Avatar for Narue
0
153
Member Avatar for DJPlayer

asked to do something that is I suppose a little strange. maybe because it's out of the blue and never tried it before. Essentially take a .txt file and split it up into 4 files. (no criteria on size, readability etc.. etc. ) Just split it up.. give each a …

Member Avatar for DJPlayer
0
112
Member Avatar for DJPlayer

I just need a direction to go with this.. a simple program that assists with unix and/or windows GUI creation. I have fairly simple program using classes, virtual functions and inheritance. The functions are all implemented by a switch w/ 6 options that call one of the functions. Now what …

Member Avatar for Ahmed_I
0
111
Member Avatar for DJPlayer

I'm getting ready for a test in a couple days. I'm trying to find some decent well commented examples of programs that use polymorphism and inheritance (public,private,protected). Also it was mentioned about special circumstances on using const for a variable within the say private area of a class. Any assistance …

Member Avatar for Nick Evan
0
87
Member Avatar for DJPlayer

problem is a little harder than I expected maybe b/c of the specifications of the problem. Help would be appreciated because I've turned this into a mess. Input is a command line argument representing int between 0 and 255 Output: convert string to binary and output as array of numbers …

Member Avatar for cikara21
0
155
Member Avatar for DJPlayer

well I'm just stating this one and my brain is about racked w/ the # of assignments going on.. anyways. I have to write a program where a user will input a integer and it will determine the kaprekar #'s of that #, until it reaches the user # input. …

Member Avatar for Cepolation
0
155
Member Avatar for DJPlayer

OK, I'm under major time constraint and having difficulty understanding some issues in my current C++ class. I have an assignment which is maybe 20% done and no assistance is available. The final and assignment due date are SOON. So what I'm offering is maybe phone/chat assistance and I'll pay …

Member Avatar for ithelp
0
111
Member Avatar for DJPlayer

I think I have most most of this correct at this point. Getting a couple errors when compiling via G++ . Just trying to finish this up.. [code] #include <iostream> using namespace std; int main() { int array_size = 0; int number; int* list = new int[array_size]; cout << "enter …

Member Avatar for vmanes
0
84
Member Avatar for DJPlayer

ok so I class telling a point to rotate 90 degrees till it reaching the original point.... I'm not using Visual Studio when it compiles just looks like crap.. [code] #include <iostream> #include "point.h" using namespace std; void rotate(point &p); int Main() { a.point(0,0); cout << "(" << a.get_x() << …

Member Avatar for Duoas
-1
105