Thread: generating char matrix in C

  1. #1
    Registered User djeedah's Avatar
    Join Date
    Feb 2013
    Posts
    6

    generating char matrix in C

    Hi guys help me out im doing a test now from basic programming. In C Im supossed to make a program that generates a char matrix. In which its odd lines are filled with letter n, and even lines with letter p. On the main diagonal letter x. First line in the matrix treat as an odd line. Much help would be appreciated i have 40 minutes left. Can u write the entire code

  2. #2
    Registered User camel-man's Avatar
    Join Date
    Jan 2011
    Location
    Under the moon
    Posts
    693
    No, this site is not a "Do my homework for me" site. You should have started earlier and came here for help, people are more than likely going to be agitated at reading this thread..

  3. #3
    Registered User djeedah's Avatar
    Join Date
    Feb 2013
    Posts
    6
    im doing a test fo real please. Not a homework i could ask classmates for homework.

  4. #4
    Registered User camel-man's Avatar
    Join Date
    Jan 2011
    Location
    Under the moon
    Posts
    693
    Well maybe you should ask your classmates for the test answers also...

  5. #5
    Registered User djeedah's Avatar
    Join Date
    Feb 2013
    Posts
    6
    Ig someone wants to help please i have 30. Minutes left im using iphone for texting if u dont like this tread dont read it

  6. #6
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    I hate this thread so much that I am not going to let anyone post an answer here.

    Seriously, you are trying to cheat. I hope you fail.

    *thread closed*
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  7. #7
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    > im using iphone for texting if u dont like this tread dont read it
    Perhaps you should have spent your money on books and learning, rather than getting the latest iWantWhatEveryoneElseHas bauble

    Looks like we're down to 15 minutes - exciting isn't it.....

    > im doing a test fo real please.
    Really - the examiner should be sacked.
    What's the point of a test if everyone taking the test has free access to the net - what does that test, google skills only?

    Unless you're also cheating, and it is closed book, and you've sneaked your iCheat device in, trying to take quick glances at it for answers without looking too suspicious.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 3
    Last Post: 01-22-2011, 01:22 PM
  2. replace single character with matrix of char
    By rob90 in forum C Programming
    Replies: 7
    Last Post: 12-28-2009, 03:19 PM
  3. how to initialize a char matrix with empty elements?
    By kobra_swe in forum C Programming
    Replies: 3
    Last Post: 08-22-2006, 05:28 AM
  4. Reading char matrix from file
    By TriKri in forum C Programming
    Replies: 5
    Last Post: 07-19-2006, 02:05 AM
  5. Clearing char matrix
    By gangemi in forum C Programming
    Replies: 4
    Last Post: 05-12-2003, 07:05 AM