Thread: parallelogram for statement issues

  1. #16
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    You're feeling a bit cheeky today aren't you Mats?

    AprilJane, you've got off to a bad start, here.

    1) You inserted your request, inside another persons request thread - please start your own thread.

    2) You need to show some work toward the program - pseudo-code, **something**. Surely you've learned at least enough from
    being here, how to write in a header file at the top of your new program, and an int main() function.

    Just look around, your start is printed all over this forum.

    You might want to read up on the % (modulus or mod) operator in C. It's what you need for your program.

    Please don't answer anything in this thread, AprilJane. Start your own thread, please.
    Last edited by Adak; 03-04-2009 at 04:13 AM.

  2. #17
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by apriljane View Post
    im not a liar.. i just cant understand that cprogramming.. if you dont to help me.. its fine with me.. but dont say that im a liar coz im not...
    Who says you are a liar - you are posting lots of posts onto other irrelevant threads, and you are asking for help to solve what can not be anything but a school project.

    The way it works here is that you get the help you deserve by showing what you have done so far, and by showing willingness to work on the subject. Not by posting lots of posts in irrelevant threads.

    If you just want some code to submit to the project, then my code solves the problem you describe. You may not understand it, but what is it you really want, someone to write the code for you, or help to know how to do it yourself?

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #18
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by Adak View Post
    You're feeling a bit cheeky today aren't you Mats?
    Not at all

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  4. #19
    Registered User
    Join Date
    Mar 2009
    Posts
    11
    but i cant understand that cprogramming.. it was so difficult.. can u give me some examples??

  5. #20
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by apriljane View Post
    but i cant understand that cprogramming.. it was so difficult.. can u give me some examples??
    So, what have YOU done so far?

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  6. #21
    Registered User
    Join Date
    Mar 2009
    Posts
    11
    but im just only a beginner here.. sorry for what i deed...

  7. #22
    Registered User
    Join Date
    Mar 2009
    Posts
    11
    but im just only a beginner here.. sorry for what i did wrong.......

  8. #23
    Technical Lead QuantumPete's Avatar
    Join Date
    Aug 2007
    Location
    London, UK
    Posts
    894
    Methinks that this is a bot... Can we have a mod look at this user?
    "No-one else has reported this problem, you're either crazy or a liar" - Dogbert Technical Support
    "Have you tried turning it off and on again?" - The IT Crowd

  9. #24
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    Each row of the square has spaces, and stars:

    Code:
    for( every row)  {
       for (0 to space) printf (your spaces)
       for( 0 to stars) printf( your stars)
       print newline
       increment spaces
    }
    Last edited by Adak; 03-04-2009 at 04:25 AM.

  10. #25
    Registered User
    Join Date
    Mar 2009
    Posts
    11
    Quote Originally Posted by Adak View Post
    You're feeling a bit cheeky today aren't you Mats?

    AprilJane, you've got off to a bad start, here.

    1) You inserted your request, inside another persons request thread - please start your own thread.

    2) You need to show some work toward the program - pseudo-code, **something**. Surely you've learned at least enough from
    being here, how to write in a header file at the top of your new program, and an int main() function.

    Just look around, your start is printed all over this forum.

    You might want to read up on the % (modulus or mod) operator in C. It's what you need for your program.

    Please don't answer anything in this thread, AprilJane. Start your own thread, please.
    well,sorry for that.. im just only a beginner here in this site..

  11. #26
    Registered User
    Join Date
    Mar 2009
    Posts
    11
    who has a friendster here?? hehehe

  12. #27
    In my head happyclown's Avatar
    Join Date
    Dec 2008
    Location
    In my head
    Posts
    391
    Quote Originally Posted by matsp View Post
    I will:
    Code:
    #include <stdio.h>
    
    #define THREE 0x0003
    #define TEN 0x000A
    
    int main()
    {
      int i;
      int s;
      char buffer[12] = { 0 };
      for(s = i = 0; i < 1000; i++, s += (i % THREE)?0:i) ;
      for(i = sizeof(buffer)-1; i >= 0 && s; --i, i[buffer]=(int)(&((char *)'0')[s%TEN]), s/=TEN);
      puts(&i[buffer]);
      return s;
    }
    Not as many comma operators as I'd like, really...
    Hahaha!

    I like it!
    OS: Linux Mint 13(Maya) LTS 64 bit.

  13. #28
    Registered User
    Join Date
    Mar 2009
    Location
    philippines
    Posts
    5

    Smile

    i have a problem about arrays.. can you give me some examples.?

  14. #29
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    That's OK, I have a problem with dumb bots. Can you give me some examples?

  15. #30
    Registered User
    Join Date
    Mar 2009
    Location
    philippines
    Posts
    5

    Wink

    examples......... DUHHHHHHHHHHH......... examples........DUHHHHHHH UdUUUUUUUKKKKK.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Debugging Issues
    By jl864405 in forum C Programming
    Replies: 6
    Last Post: 06-05-2009, 05:40 PM
  2. issues
    By OrAnGeWorX in forum C Programming
    Replies: 35
    Last Post: 11-19-2008, 12:18 AM
  3. Bitmap scroll issues
    By Gerread in forum Windows Programming
    Replies: 4
    Last Post: 05-14-2007, 05:18 AM
  4. Solution to culling issues?
    By VirtualAce in forum Game Programming
    Replies: 4
    Last Post: 03-14-2006, 06:59 PM
  5. hexdump issues
    By daluu in forum C Programming
    Replies: 2
    Last Post: 03-04-2003, 09:01 PM