Ton_yao Pogi

This is a discussion on Ton_yao Pogi within the Game Programming forums, part of the General Programming Boards category; Code: #include <iostream.h> void heading(void); int main() { unsigned int choice = 0; heading(); return 0; } void heading(void) { ...

  1. #1
    Registered User
    Join Date
    Jul 2005
    Posts
    6

    Ton_yao Pogi

    Code:
    #include <iostream.h>
    
    void heading(void);
    
    int main()
    {
    	unsigned int choice = 0;
    	
    	heading();
    		
    	return 0;
    }
    
    void heading(void)
    {
    	int i, j;
    	cout << char(-55);
    	for(i = 0; i < 78; ++i)
    		cout << char(-51);
    	cout << char(-69);
    	cout << char(-70);
    	for(i = 0; i < 9; ++i)
    	{
    		cout << char(-80);
    		cout << char(-79);
    		cout << char(-78);
    	} 
    	cout << "   WELCOME TO MY WORLD   ";
    	for(i = 0; i < 8; ++i)
    	{
    		cout << char(-80);
    		cout << char(-79);
    		cout << char(-78);
    	}
    	cout << char(-80);
    	cout << char(-79);
    	cout << char(-70);
    	cout << char(-56);
    	for(i = 0; i < 78; ++i)
    		cout << char(-51);
    	cout << char(-68);
    
    	cout << "\n\n   " << char(-99) << "MENU" << char(-99);
    	cout << "\n" << char(-55);
    	for(i = 0; i < 10; ++i)
    		cout << char(-51);
    	cout << char(-69);
    	cout << "\n" << char(-70);
    	cout << "(1)  ADD  " << char(-70) << "\t";
    	for(i = 0; i < 60; ++i)
    		cout << char(-37);
    	cout << "\n" << char(-70);
    	cout << "(2)  SHOW " << char(-70) << "\t";
    	for(i = 0; i < 60; ++i)
    		cout << char(-79);
    	cout << "\n" << char(-70);
    	cout << "(0)  QUIT " << char(-70) << "\t";
    	for(i = 0; i < 60; ++i)
    		cout << char(-37);
    	cout << "\n" << char(-56);
    	for(i = 0; i < 10; ++i)
    		cout << char(-51);
    	cout << char(-68);
    
    	//line 1
    	cout << "\n\n\t" << char(-78) << '\t' << char(-78) << '\t' << char(-78) << '\t' 
    					 << char(-78) << char(-78) << char(-78) << char(-78) << char(-78)
    					 << '\t' << char(-78) << "     " << char(-78) << "     "
    					 << char(-78) << "   " << char(-78) << "   " << char(-78) << '\t'
    					 << char(-78) << char(-78) << char(-78) << char(-78) << char(-78);
    	//line 2
    	cout << "\n\t" << char(-78) << '\t' << char(-78) << "      " << char(-78) << ' ' 
    			       << char(-78) << '\t' << char(-78) << "       " << char(-78)
    				   << "    " << char(-78) << "      " << char(-78) << char(-78)
    				   << "     " << char(-78) << char(-78) << "   " << char(-78);  
    	//line 3
    	cout << "\n\t" << char(-78) << '\t' << char(-78) << "     " << char(-78) << "   "
    				   << char(-78) << "     " << char(-78) << "       " << char(-78)
    				   << "   " << char(-78) << "       " << char(-78) << " " << char(-78)
    				   << "   " << char(-78) << ' ' << char(-78) << "   " << char(-78);
    	//line 4
    	cout << "\n\t" << char(-78) << char(-78) << char(-78) << char(-78) << char(-78)
    				   << char(-78) << char(-78) << char(-78) << char(-78) << "    "
    				   << char(-78) << char(-78) << char(-78) << char(-78) << char(-78) 
    				   << char(-78) << char(-78) << "    " << char(-78) << "       " 
    				   << char(-78) << "  " << char(-78) << "        " << char(-78) 
    				   << "  " << char(-78) << " " << char(-78) << "  " << char(-78)
    				   << "   " << char(-78) << char(-78) << char(-78) << char(-78) << char(-78);
    	//line 5;
    	cout << "\n\t" << char(-78) << "       " << char(-78) << "    " << char(-78)
    				   << "     " << char(-78) << "    " << char(-78) << "       " << char(-78)
    				   << "   " << char(-78) << "       " << char(-78) << "   " << char(-78)
    				   << "   " << char(-78) << "   " << char(-78);
    	//line 6;
    	cout << "\n\t" << char(-78) << "       " << char(-78) << "    " << char(-78) << "     "
    				   << char(-78) << "    " << char(-78) << "       " << char(-78) << "    "
    				   << char(-78) << "      " << char(-78) << "       " << char(-78) << "   "
    				   << char(-78);
    	//last line
    	cout << "\n\t" << char(-78) << "       " << char(-78) << "    " << char(-78) << "     "
    				   << char(-78) << "    " << char(-78) << char(-78) << char(-78) << char(-78) 
    				   << char(-78) << "   " << char(-78) << "     " << char(-78) << "     " 
    				   << char(-78) << "       " << char(-78) << "   " << char(-78) << char(-78)
    				   << char(-78) << char(-78) << char(-78);
    
    	for(j = 0; j < 9; ++j)
    	{
    		cout << endl;
    		for(i = 0; i < 79; ++i)
    			cout << char(-80);
    		cout << endl;
    		for(i = 0; i < 79; ++i)
    			cout << char(-79);
    		cout << endl;
    		for(i = 0; i < 79; ++i)
    			cout << char(-78);
    	}
    
    	cout << "\n\nYOUR CHOICE: ";
    }

  2. #2
    Registered User
    Join Date
    Aug 2003
    Posts
    1,199
    And the problem is??

  3. #3
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,475
    I compiled this and all it does is print a huge word then scrolls through a mess before quiting.... why on earth is this here? It works fine and i would post it on post games here forum if you want to show it off

  4. #4
    ---
    Join Date
    May 2004
    Posts
    1,379
    Doesn't compile for me.
    Looks stupid anyway.

  5. #5
    Information Crocodile
    Join Date
    Dec 2004
    Posts
    204
    Quote Originally Posted by eon_aranas
    Code:
    #include <iostream.h>
    
    void heading(void);
    
    int main()
    {
    	unsigned int choice = 0;
    	
    	heading();
    		
    	return 0;
    }
    
    void heading(void)
    {
    	int i, j;
    	cout << char(-55);
    	for(i = 0; i < 78; ++i)
    		cout << char(-51);
    	cout << char(-69);
    	cout << char(-70);
    	for(i = 0; i < 9; ++i)
    	{
    		cout << char(-80);
    		cout << char(-79);
    		cout << char(-78);
    	} 
    	cout << "   WELCOME TO MY WORLD   ";
    	for(i = 0; i < 8; ++i)
    	{
    		cout << char(-80);
    		cout << char(-79);
    		cout << char(-78);
    	}
    	cout << char(-80);
    	cout << char(-79);
    	cout << char(-70);
    	cout << char(-56);
    	for(i = 0; i < 78; ++i)
    		cout << char(-51);
    	cout << char(-68);
    
    	cout << "\n\n   " << char(-99) << "MENU" << char(-99);
    	cout << "\n" << char(-55);
    	for(i = 0; i < 10; ++i)
    		cout << char(-51);
    	cout << char(-69);
    	cout << "\n" << char(-70);
    	cout << "(1)  ADD  " << char(-70) << "\t";
    	for(i = 0; i < 60; ++i)
    		cout << char(-37);
    	cout << "\n" << char(-70);
    	cout << "(2)  SHOW " << char(-70) << "\t";
    	for(i = 0; i < 60; ++i)
    		cout << char(-79);
    	cout << "\n" << char(-70);
    	cout << "(0)  QUIT " << char(-70) << "\t";
    	for(i = 0; i < 60; ++i)
    		cout << char(-37);
    	cout << "\n" << char(-56);
    	for(i = 0; i < 10; ++i)
    		cout << char(-51);
    	cout << char(-68);
    
    	//line 1
    	cout << "\n\n\t" << char(-78) << '\t' << char(-78) << '\t' << char(-78) << '\t' 
    					 << char(-78) << char(-78) << char(-78) << char(-78) << char(-78)
    					 << '\t' << char(-78) << "     " << char(-78) << "     "
    					 << char(-78) << "   " << char(-78) << "   " << char(-78) << '\t'
    					 << char(-78) << char(-78) << char(-78) << char(-78) << char(-78);
    	//line 2
    	cout << "\n\t" << char(-78) << '\t' << char(-78) << "      " << char(-78) << ' ' 
    			       << char(-78) << '\t' << char(-78) << "       " << char(-78)
    				   << "    " << char(-78) << "      " << char(-78) << char(-78)
    				   << "     " << char(-78) << char(-78) << "   " << char(-78);  
    	//line 3
    	cout << "\n\t" << char(-78) << '\t' << char(-78) << "     " << char(-78) << "   "
    				   << char(-78) << "     " << char(-78) << "       " << char(-78)
    				   << "   " << char(-78) << "       " << char(-78) << " " << char(-78)
    				   << "   " << char(-78) << ' ' << char(-78) << "   " << char(-78);
    	//line 4
    	cout << "\n\t" << char(-78) << char(-78) << char(-78) << char(-78) << char(-78)
    				   << char(-78) << char(-78) << char(-78) << char(-78) << "    "
    				   << char(-78) << char(-78) << char(-78) << char(-78) << char(-78) 
    				   << char(-78) << char(-78) << "    " << char(-78) << "       " 
    				   << char(-78) << "  " << char(-78) << "        " << char(-78) 
    				   << "  " << char(-78) << " " << char(-78) << "  " << char(-78)
    				   << "   " << char(-78) << char(-78) << char(-78) << char(-78) << char(-78);
    	//line 5;
    	cout << "\n\t" << char(-78) << "       " << char(-78) << "    " << char(-78)
    				   << "     " << char(-78) << "    " << char(-78) << "       " << char(-78)
    				   << "   " << char(-78) << "       " << char(-78) << "   " << char(-78)
    				   << "   " << char(-78) << "   " << char(-78);
    	//line 6;
    	cout << "\n\t" << char(-78) << "       " << char(-78) << "    " << char(-78) << "     "
    				   << char(-78) << "    " << char(-78) << "       " << char(-78) << "    "
    				   << char(-78) << "      " << char(-78) << "       " << char(-78) << "   "
    				   << char(-78);
    	//last line
    	cout << "\n\t" << char(-78) << "       " << char(-78) << "    " << char(-78) << "     "
    				   << char(-78) << "    " << char(-78) << char(-78) << char(-78) << char(-78) 
    				   << char(-78) << "   " << char(-78) << "     " << char(-78) << "     " 
    				   << char(-78) << "       " << char(-78) << "   " << char(-78) << char(-78)
    				   << char(-78) << char(-78) << char(-78);
    
    	for(j = 0; j < 9; ++j)
    	{
    		cout << endl;
    		for(i = 0; i < 79; ++i)
    			cout << char(-80);
    		cout << endl;
    		for(i = 0; i < 79; ++i)
    			cout << char(-79);
    		cout << endl;
    		for(i = 0; i < 79; ++i)
    			cout << char(-78);
    	}
    
    	cout << "\n\nYOUR CHOICE: ";
    }

    hahaha pinoy ka ano? stupido

  6. #6
    Information Crocodile
    Join Date
    Dec 2004
    Posts
    204
    10 for your effort and 10 for the cool result

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21