User Profile

Collapse

Profile Sidebar

Collapse
Misstrius
Misstrius
Last Activity: Mar 12 '13, 09:00 PM
Joined: Jan 9 '13
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Code:
    int createArithmeticSeq ( int first, int difference)
    {
        
        
        cout<<"Please enter the first value: ";
        cin>>first;
        
        cout<<"Please enter the difference: ";
        cin>>difference;
        cout<<endl;
        
        int seq[4][4];
        for (int i=1; i<=16; i++)
        {   
            
             for ( int row=0;
    ...
    See more | Go to post
    Last edited by Meetee; Jan 9 '13, 11:08 AM. Reason: Use code tags <code/> around code

    Leave a comment:


  • Misstrius
    started a topic How to reverse diagonals in a 2D array in c++?
    in C

    How to reverse diagonals in a 2D array in c++?

    I have been trying this for so long.
    I need to make a separate function named reverseDiagonal where I have to reverse the diagonals in a 2D array.. I have tried swapping it but i don't know where to place the "cout" and print the diagonal.
    Please help?
    See more | Go to post
No activity results to display
Show More
Working...