Algorithm HELP!!!

This is a discussion on Algorithm HELP!!! within the C Programming forums, part of the General Programming Boards category; I will do it...

  1. #1
    Registered User
    Join Date
    Feb 2011
    Posts
    16

    Algorithm HELP!!!

    I will do it
    Last edited by alexdavid; 02-12-2011 at 09:24 PM.

  2. #2
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    Edit your code and when you do, go into the "Advanced" editor, and highlight your code. Then click on the # icon in the advanced editor toolbar (just right of center).

    That will make your code look MUCH better. If you then indent it so subordinate lines of code are 2 to 5 char's more indented than the line they are subordinate to, it will help a great deal.

    Getting an English translation of the Spanish, would also help. Google translates, (as well as others), for free.
    Last edited by Adak; 02-12-2011 at 08:14 PM.

  3. #3
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    The forum editor, (you need to edit your post, not your program).

    This is perhaps the "put 8 queens on a chessboard so that none are attacking any of the others", problem?
    Last edited by Adak; 02-12-2011 at 08:29 PM.

  4. #4
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    OK, what are you looking to do here?

    Do you want a function, a stand alone program, or?

  5. #5
    Registered User
    Join Date
    Feb 2011
    Posts
    16
    no no i would like someone to help me to start my program, i am really afraid of this because i must to have this ready really soon!!! but i don't know who to program this into C because i just know how to program in java or some php

  6. #6
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    There's no sense in "starting your program", for you. If you can't even start your program, there is no chance at all, that you contribute anything.

    So somebody, (or somebodies), would have to do everything.

    Maybe you can find someone who will do that for you, but I won't. I expect carpenters to at least know how to cut wood, and even beginning programmers, to know how to start a C program.

    This tutorial might help, greatly:

    Cprogramming.com: How to Get Started with C++

    (includes C, btw).
    Last edited by Adak; 02-12-2011 at 09:00 PM.

  7. #7
    Registered User
    Join Date
    Feb 2011
    Posts
    16
    ok, well i study so hard and i MUST to pass this subject and i don't know WHY nobody want to help mE at all, i don't have time to learn programming in C because i need a qualification into de university, don't know why there are too many selfish people all over the world, thank you indeed!! and is not in C++ is on C

  8. #8
    -bleh-
    Join Date
    Aug 2010
    Location
    somewhere in this universe
    Posts
    452
    I don't see any selfish people in this forum, just incompetent people who think the world would hand-feed them.
    "All that we see or seem
    Is but a dream within a dream." - Poe

  9. #9
    Registered User
    Join Date
    Feb 2011
    Posts
    16
    no no it is really selffish if i am requesting for help it is because i am having troubles in doing something, if i can help someone i would do it!!! but everybody don't think the same, i am really afraid i can't have my program ready soon, i am studying so hard and my time is nOOOOT so much, but it is ok!! i will do it by my own!!!!!!!!!!!!1

  10. #10
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Well... Adak is neither being selfish nor nasty. He's just given you the best advice possible...

    Learn C.

    You are obviously in a course that requires you to know C. We would be doing you no favours at all if we did your homework for you... You wouldn't learn a thing and the first time you found yourself having to write code without half the planet to prop you up, you'd fall flat on your face.

    You do yourself no favours by trying to do an end run around your own learning experience.

  11. #11
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Ok, simple question... if you can't find the time to do your studies and keep up with your courses... what the heck are you wasting your time on?

    Really... think about this. You've just dug yourself a real nice hole... perhaps you would be smart to stop digging while you can still climb out...

  12. #12
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    If you have "studied so hard", then how is it that you can't even write out the first lines of every C program?

    You know nothing about C, and have boxed yourself into a tough spot. I get that!

    The best advice is STILL to have you learn the basics in a tutorial, and THEN help you with this code problem.

    Not everyone who pushes you, is being mean. Some are pushing you off the tracks of the oncoming train.

  13. #13
    -bleh-
    Join Date
    Aug 2010
    Location
    somewhere in this universe
    Posts
    452
    Stop arguing on here and go work on your program or whatever you have to do. Unless you have some code to show, there is no point of this thread continuing. There is also no point in trying to shame people into doing the work for you.
    "All that we see or seem
    Is but a dream within a dream." - Poe

  14. #14
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    Go to the tutorial link (it's for C if you click on the "go here" on the first page). See how a C program is started:

    include a file(s), int main(void), opening curly brace, code next, and then return 0, and ending curly brace.

    and just get it started a bit. There is still time, and we can help you, but knock off the "poor me" stuff and the name calling.

    That won't help.

    We will help, but YOU have to start the program's code. That's the forum policy.

  15. #15
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    And when I was a youngser, I used to walk barefoot in snow, 3 miles, to school on the far side of town... and it was uphill in both directions!

Page 1 of 3 123 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Implement of a Fast Time Series Evaluation Algorithm
    By BiGreat in forum C Programming
    Replies: 7
    Last Post: 12-04-2007, 01:30 AM
  2. Replies: 4
    Last Post: 12-10-2006, 06:08 PM
  3. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  4. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 09:33 AM

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