Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
14% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
5
Posts with Downvotes
4
Downvoting Members
5
1 Commented Post
2 Endorsements
Ranked #630
Ranked #2K
~7K People Reached
Favorite Forums
Favorite Tags
Member Avatar for trinibaby

Hi, I'm having some trouble with my code that convert binary to decimal using recursion. this is my code #include <cstdlib> #include <iostream> using namespace std; void binaryToDecimal( int binaryNumber, int decimal, int weight ); int main(int argc, char *argv[]) { // binary to decimal int decimalNum; int bitWeight; int …

Member Avatar for great_learner
0
3K
Member Avatar for ultrAslan

I need to write a code to be able to interpret the input date to calendar system. First input is the date and second input is the first day of the year. I dont know how to start. I hope someone could help me. Thanks 12/10/2011 S Output: October, 2011 …

Member Avatar for bbman
0
173
Member Avatar for ayeshashahid

i need help in making the size of the array to n size in queues.i have made a program help me in it. [CODE]////##############///// #include <iostream> using namespace std; #define MAX 5 class queue { private: int t[MAX]; int al; int dl; public: queue() { dl=-1; al=-1; } void remove() …

Member Avatar for Mr. K
0
110
Member Avatar for sandman64

[CODE] #include <iostream> #include <fstream> #include <string> using namespace std; string constestantName(istream &); void getJudgeData(istream &, string); void CalcScore(ostream &, string, double, double, double, double, double); double findLowest(double, double, double, double, double); double findHeighest(double, double, double, double, double); int main() { int loopnum, counter, nestcounter; string name; ifstream infile; infile.open("starsearch.txt"); …

Member Avatar for Mr. K
0
209
Member Avatar for Mr. K

I make a program that reads a file and then it stores the information in two char.The problem is related to the char Elements and symbol. What is causing errors in my program? Thanks in advance. [CODE]#include "stdafx.h" #include <iostream> #include <fstream> char* Elements;//The problem char * symbol; using namespace …

Member Avatar for Mr. K
0
210
Member Avatar for Mr. K

I created my own Pong, but the ball is not moving. I don`t have any error in my error list. In this game I used time.h to move the ball. Why the ball is not moving? What is wrong with my code? Thanks in adbvance [CODE]#include <allegro.h> #include <time.h> int …

Member Avatar for raptr_dflo
0
94
Member Avatar for thetwig

hey guys heres a portion of my code, im trying to validate a users input of price and then convert it to cents before doing some other calculations. Im having problems with my validation still somehow allows letters if they are not the first digit entered. For example, a2 is …

Member Avatar for WaltP
0
210
Member Avatar for Mr. K

I am trying to move a ball using time. The ball must move 5 pixel per second. In my code the ball is moving faster. Why is it moving faster? What is wrong with my code? [CODE]#include <allegro.h> #include <cstdlib> #include <time.h> int ball_x = 320; int ball_y = 240; …

Member Avatar for Mr. K
0
115
Member Avatar for clickspiker23

i keep getting this error in my main.cpp [code]main.cpp:17: undefined reference to `Game::Game()'[/code] this is the code i have pertaining to the error [code] #include "Game.h" #include<iostream> #include<cstring> #include<iomanip> #include<cctype> #include<fstream> #include<string> int main() { ifstream din; Game output; output.fillGame(din); return 0; } [/code] i doubt it but just in …

Member Avatar for clickspiker23
0
138
Member Avatar for munitjsr2

[CODE] #include <iostream> #include <vector> #include <algorithm> using namespace std; class A { public : void getData(vector< A > &); void putData(vector< A > &); private : int x; char name[90]; }; vector< A > v; void A :: getData(vector< A > &Aref) { cout << "id = "; cin …

Member Avatar for munitjsr2
0
238
Member Avatar for Mr. K
Member Avatar for Mr. K

I am trying to move a ball using time. What do I need to know to move the ball? How can I move the ball 20 pixel per second? [CODE]#include <allegro.h> int ballx = 320; int bally = 240; void ball(){ if(key[KEY_RIGHT]){ } else if(key[KEY_LEFT]) { } acquire_screen(); circlefill(screen,ballx,bally,5,makecol(255,255,255)); release_screen(); …

Member Avatar for Mr. K
0
174
Member Avatar for kimmyfufu

I am taking this class through devry and that is my assignment for week four and this is my second attempt at the class..but this is what i got for this assignment..program compiles properly and runs...with no errors..got it from code snippet stealing from other classmates lol [code]# include <iostream> …

Member Avatar for donkeylopulus
-3
499
Member Avatar for Akill10

Hi, I am writing this template Array class. I am trying out some different functions, anything I can think of to implement. I have written an Add function as follows: [CODE] /**Add function - adds an element at the top of the stack**/ //creates new Array 1 larger //sets position …

Member Avatar for Akill10
0
218
Member Avatar for Mr. K

What is wrong with my code? My fps time is not working.I found two errors in my code. Error 1 error C3861: 'install_timer_ex': identifier not found. Error 2 error C3861: 'textmode': identifier not found. [CODE]#include <allegro.h> BITMAP* buffer = create_bitmap(480,480); volatile int fps = 0; volatile int avg_fps = 0; …

Member Avatar for rxlim
0
200
Member Avatar for Josue198s

guys how to slpit a date string ie....30/jully/2001 i want the following output 30 jully 2001 please help...

Member Avatar for sharathg.satya
-1
178
Member Avatar for ahtaniv

[CODE]class A { public: int a; A() : a(100) { } }; class B : public A { public: int b; B() : b(200){ } }; int main() { A a; B *ptrB =(B*)&a; cout<<ptrB->b<<endl; // Is there a way to get this to print 200?? }[/CODE]

Member Avatar for ahtaniv
0
159
Member Avatar for smokin745

Hi guys, I am doing a project wherein i have to make an OpenGL animation and its a Sainsbury advertisement and it kinda sucks till now. Now i really need to add images, viewports and be more creative. Following is the code till now, (yeah laugh at it...it sucks more …

Member Avatar for smokin745
0
186
Member Avatar for lochnessmonster

im quite confused on how typedef int (__cdecl *MYPROC)(LPWSTR); works exactly? how do you typedef a function? any explanation is greatly appreciated! thx :D [CODE]// A simple program that uses LoadLibrary and // GetProcAddress to access myPuts from Myputs.dll. #include <windows.h> #include <stdio.h> typedef int (__cdecl *MYPROC)(LPWSTR); VOID main(VOID) { …

Member Avatar for mike_2000_17
0
554
Member Avatar for Abelville

Im getting this error and I am so new at this that I have no idea how to correct it. If someone has any suggestions. Programming for 10 weeks! [CODE]#include <iostream> #include <string> #include <iomanip> using namespace std; int InputData(string [], int []); int main() { string players[99]; int score[99]; …

Member Avatar for Abelville
0
190