- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 5
- Posts with Downvotes
- 4
- Downvoting Members
- 5
20 Posted Topics
Re: 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: … | |
Re: Post your code. Maybe we can help. This might [URL="http://www.cplusplus.com/reference/clibrary/ctime/strftime/"]help[/URL]. | |
Re: Explain in details how your program works. Did you find any error? | |
Re: 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 … | |
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 … | |
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 … | |
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; … | |
Re: Did you find any error? | |
What are the most useful keyboard shortcuts for visual c++ 2008? | |
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(); … | |
Re: 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] | |
Re: 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] | |
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; … | |
![]() | Re: We only give homework help to those who show effort. |
Re: 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 … | |
Re: 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. | |
Re: This might [URL="http://www.functionx.com/cpp/keywords/typedef.htm"]help[/URL]. Upvote my post if they help. | |
Re: Line 52. It must be a void instead of a double. |
The End.