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
1 Endorsement
Ranked #858
Ranked #2K
~7K People Reached
Favorite Forums
Favorite Tags
c++ x 35
c x 2

20 Posted Topics

Member Avatar for trinibaby

Did you find any error? What type of error did you get? [CODE]#include <iostream> #include <math.h> int sum = 0; using namespace std; int binaryToDecimal( int binaryNumber, int weight ); int main() { // binary to decimal int bitWeight; int binaryNum; bitWeight = 0; cout <<"enter a number in binary: …

Member Avatar for great_learner
0
3K
Member Avatar for ultrAslan

Post your code. Maybe we can help. This might [URL="http://www.cplusplus.com/reference/clibrary/ctime/strftime/"]help[/URL].

Member Avatar for bbman
0
177
Member Avatar for ayeshashahid
Member Avatar for Mr. K
0
114
Member Avatar for sandman64

Your code is hard to read. That is the MAIN Problem. Rewrite the function findhighest and findlowest. This is an example. [CODE]double max(double a, double b){ return a > b ? a:b; } double min(double a, double b){ return a < b ? a:b; }[/CODE] Second instead of using if …

Member Avatar for Mr. K
0
213
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
211
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
107
Member Avatar for thetwig
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
117
Member Avatar for clickspiker23
Member Avatar for munitjsr2
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
193
Member Avatar for kimmyfufu

We only give homework help to those who show [URL="http://www.daniweb.com/forums/announcement9-2.html"]effort[/URL] [QUOTE]this is what i got for this assignment..program compiles properly and runs...with no errors..got it from code snippet [B]stealing [/B]from [U]other classmates[/U] lol[/QUOTE]

Member Avatar for donkeylopulus
-3
512
Member Avatar for Akill10

This might solve your problem.Why msize +=1? [CODE] void Add(DataType p_item) { if(m_array != 0) { m_array[m_size] = p_item; } }[/CODE]

Member Avatar for Akill10
0
222
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
211
Member Avatar for Josue198s
Member Avatar for sharathg.satya
-1
288
Member Avatar for ahtaniv

First use code tags. Your code is not formatted.[URL="http://www.gidnetwork.com/b-38.html"]Formatting[/URL] makes your code easier to read. [CODE]class A { public: int a; A() : a(100) { } }; class B : public A { public: int b; B() : b(200){ } }; int main() { A a; (B*)&a; cout << ptrB …

Member Avatar for ahtaniv
0
277
Member Avatar for smokin745

Your code is not [URL="http://www.gidnetwork.com/b-38.html"]formatted[/URL]. Format you code and then we will help you. Formatting makes your code easier to read.

Member Avatar for smokin745
0
192
Member Avatar for lochnessmonster

This might [URL="http://www.functionx.com/cpp/keywords/typedef.htm"]help[/URL]. Upvote my post if they help.

Member Avatar for mike_2000_17
0
561
Member Avatar for Abelville

The End.