   Please translate this code to C++ and Allegro
// Project: example// Created: 23/05/2009 17.05.59// ***** Main Source File *****set display mode 800, 600, 32 // this is clear, sets the display mode to 800x600 32 bitsset window on // this sets windowed modehide mouse // this hides the mouse cursorsync on // this is dbpro only: sets manual syncing of the screendim grid(7, 23) // this would be equivalent to int grid[7][23];load image "blocks.bmp", 1 // loads an imagepaste image 1, 0, 0 // paste such image onto the screen. please note the next operations are done on the screen and not on the imagefor (int x = 1; x <= 4; x++) {    for (int y = 1; y <= 2; y++) {   get image (x + (y - 1) * 4), 32 * (x - 1), 32 * (y - 1), 32 * x, 32 * y   // this will get an image from the screen, the parameters are:   // get image (image number), (x left), (y top), (x right), (y bottom)    }}for (int x = 1; x <= 7; x++) {    for (int y = 1; y <= 23; y++) {   grid[x][y] = rand() % 7 + 1    }}while(!(escape_key)) {    cls // clear the screen    for (int x = 1; x <= 7; x++) {   for (int y = 1; y <= 23; y++) {   paste image grid(x, y), x * 32, (y - 1) * 32   // this will paste the tile on the screen. parameters are   // paste image (image number), (x coordinate), (y coordinate)   }    }    sync // update the screen}Thanks.   
  Um, why?   ;  What exactly are you willing to pay for the following?// Project: example// Created: 23/05/2009 17.05.59// ***** Main Source File *****#include <engine.h>using namespace std::engine;int main () {    set_display_mode (800, 600, 32); // this is clear, sets the display mode to 800x600 32 bits    set_window_on(); // this sets windowed mode    hide_mouse(); // this hides the mouse cursor    sync_on(); // this is dbpro only: sets manual syncing of the screen    dim_grid(7, 23); // this would be equivalent to int grid[7][23];    load_image ("blocks.bmp", 1); // loads an image    paste_image (1, 0, 0); // paste such image onto the screen. please note the next operations are done on the screen and not on the image    for (int x = 1; x <= 4; x++) {   for (int y = 1; y <= 2; y++) {  get_image (x + (y - 1) * 4), 32 * (x - 1), 32 * (y - 1), 32 * x, 32 * y);   // this will get an image from the screen, the parameters are:   // get image (image number), (x left), (y top), (x right), (y bottom)   }    }   for (int x = 1; x <= 7; x++) {   for (int y = 1; y <= 23; y++) {  grid[x][y] = rand() % 7 + 1   }    }    while(!(escape_key)) {   cls(); // clear the screen   for (int x = 1; x <= 7; x++) {  for (int y = 1; y <= 23; y++) { paste_image_grid (tuple(x, y), x * 32, (y - 1) * 32);// this will paste the tile on the screen. parameters are// paste image (image number), (x coordinate), (y coordinate)  }   }   sync(); // update the screen    }}Then, if you use GCC, type:g++ -Wall -Wextra -lengine main.cpp. Not sure if std::engine is included in C++0x.   ;  Oh, pardon. I have missed the Allegro part. How much would pay for that?   ;  Nothing.People usually post on forums for finding out someone solving his/her issues, not to be payd. I have an issue and I'm searching for someone solving it, nothing more.Thanks anyway if you don't wish to help.Bye, Berserk..;  People post questions on forums so they can learn how to solve problems on their own. Not so they can get others to do their work for them for free.If you have an actual question, please post it and we'll do our best to answer. Don't post "here's some work I have to do, please do it for me."For example, the allegro website has lots of examples and tutorials for getting started.   ;Quote:Original post by Thc-03_BerserkNothing.People usually post on forums for finding out someone solving his/her issues, not to be payd. I have an issue and I'm searching for someone solving it, nothing more.Thanks anyway if you don't wish to help.Bye, Berserk..A good introduction about good questions: How to ask smart questions. It also says you shouldn't expect others to do your work, but rather to point you into the right direction, like Codeka did by mentioning the Allegro site. Actually, Codeka was very nice to you, because he had valid reasons to post a link like that: click, teaching you about to first use google or gd.net's own google search, and upon non-success post a question here.Further your post was quite unpolite, because you posted a bunch of code without introducing yourself or your problem first, and then all you say was "Thanks.".Now, the indoctrination is over :DYou should try to transcribe your code into C++ yourself first, and if you run into specific problems, we are the last to not help you ;)   ;  Nevermind, I solved on another forum.Bye, Berserk..;Quote:Original post by Thc-03_BerserkNevermind, I solved on another forum.Bye, Berserk..Seems like a standard answer of you:http://www.allegro.cc/forums/thread/600334/814010http://www.gamedev.net/community/forums/viewreply.asp?ID=3457139http://www.gamedev.net/community/forums/viewreply.asp?ID=3464704As you seem to be unwilling to learn how to compose good questions and posts, never mind whether in an italian forum, allegro forums, gamedev.net, or on mailing lists and bug reports, I simply put you on my ignore list. Especially when I read rants like "52 views and not a reply..." and the like.edit: What I really wonder about: In your online curriculum vitae, you write that you have advanced knowledge of C/C++, but fail to transcribe that snippet of code? [rolleyes]   