DrHaximus
|
  |
| Joined: 22 Nov 2011 |
| Total Posts: 8410 |
|
|
| 11 Apr 2012 05:06 PM |
#include < iostream > char map[2][78]; namespace loa { void drawMap(); void drawMap() { for (int a=0;a<77;a++) { for (int b=0;b<77;b++) { if (b==0||77) { map[0][b] = '#'; std::cout << map[0][b]; } else { map[0][b] = ' '; std::cout << map[0][b]; } if (a==0||77) { map[0][a] = '#'; std::cout << map[0][a]; } else { map[0][a] = ' '; std::cout << map[0][a]; } } } } } using namespace loa; int main() { drawMap(); std::cout << "\n\n"; std::cin.get(); }
|
|
|
| Report Abuse |
|
|
wowzee
|
  |
| Joined: 02 Apr 2010 |
| Total Posts: 22692 |
|
|
| 11 Apr 2012 05:06 PM |
| I doubt anyone has that much free time. |
|
|
| Report Abuse |
|
|
DrHaximus
|
  |
| Joined: 22 Nov 2011 |
| Total Posts: 8410 |
|
|
| 11 Apr 2012 05:07 PM |
Huh? It would take like 5 minutes.. |
|
|
| Report Abuse |
|
|
peaspod
|
  |
| Joined: 29 Sep 2010 |
| Total Posts: 2809 |
|
|
| 11 Apr 2012 05:07 PM |
| Wrong forum. Go to "SPITW" (Saddest Person In The World) |
|
|
| Report Abuse |
|
|
| |
|
Screp
|
  |
| Joined: 25 Feb 2012 |
| Total Posts: 1246 |
|
| |
|
|
| 11 Apr 2012 05:07 PM |
I only know basic html :P
My ʇǝd Enderdragon Fido •д• |
|
|
| Report Abuse |
|
|
Memitchi
|
  |
| Joined: 03 Sep 2007 |
| Total Posts: 5917 |
|
|
| 11 Apr 2012 05:07 PM |
| Does Roblox support C++ now? |
|
|
| Report Abuse |
|
|
|
| 11 Apr 2012 05:08 PM |
@peas What are you, ten? I don't see how a hobby means someone has no life. |
|
|
| Report Abuse |
|
|
|
| 11 Apr 2012 05:08 PM |
if (b==0||77) {
77 is always true. This will always run.
All non-zero integers are true.
you need if (b==0||b==77) { |
|
|
| Report Abuse |
|
|
DrHaximus
|
  |
| Joined: 22 Nov 2011 |
| Total Posts: 8410 |
|
|
| 11 Apr 2012 05:08 PM |
@Whoever std::cin.get(); is a better replacement for using system().
std::
I need this becuase i'm not using the std namespace on main. |
|
|
| Report Abuse |
|
|
|
| 11 Apr 2012 05:09 PM |
| cool, shedletsky helped fix it! |
|
|
| Report Abuse |
|
|
DrHaximus
|
  |
| Joined: 22 Nov 2011 |
| Total Posts: 8410 |
|
|
| 11 Apr 2012 05:09 PM |
| Oh okay. Thanks for the help. |
|
|
| Report Abuse |
|
|
| |
|
DrHaximus
|
  |
| Joined: 22 Nov 2011 |
| Total Posts: 8410 |
|
|
| 11 Apr 2012 05:13 PM |
Becuase sometimes they're quite lazy.
For example; how long does it take to fix an exploit as simple as the teleporting service.
(The toolbox one.) |
|
|
| Report Abuse |
|
|
|
| 11 Apr 2012 05:13 PM |
Wrong forum Go to TIFCC. (There Isn't a Forum for C++ Code)
-legend8887 |
|
|
| Report Abuse |
|
|
Screp
|
  |
| Joined: 25 Feb 2012 |
| Total Posts: 1246 |
|
|
| 11 Apr 2012 05:15 PM |
| The toolbox exploit is patched. |
|
|
| Report Abuse |
|
|
DrHaximus
|
  |
| Joined: 22 Nov 2011 |
| Total Posts: 8410 |
|
| |
|
|
| 11 Apr 2012 05:16 PM |
| Woooooow... harder than chinese. |
|
|
| Report Abuse |
|
|
| |
|
DrHaximus
|
  |
| Joined: 22 Nov 2011 |
| Total Posts: 8410 |
|
| |
|
Sphyrinx
|
  |
| Joined: 05 Jul 2011 |
| Total Posts: 22022 |
|
| |
|
DrHaximus
|
  |
| Joined: 22 Nov 2011 |
| Total Posts: 8410 |
|
|
| 17 Jul 2012 10:33 PM |
@Sphrinx
Sorry, that's classified.
*Puts on sunglasses* |
|
|
| Report Abuse |
|
|
Sphyrinx
|
  |
| Joined: 05 Jul 2011 |
| Total Posts: 22022 |
|
| |
|
|
| 17 Jul 2012 10:35 PM |
| UMG SHEDLETSKY U LOOK WEIRD |
|
|
| Report Abuse |
|
|