Need help with C program

This is a discussion on Need help with C program within the C Programming forums, part of the General Programming Boards category; well if you want to do it the hard way.. your warning means that basically your code is ligned up ...

  1. #31
    Registered User caroundw5h's Avatar
    Join Date
    Oct 2003
    Posts
    751
    well if you want to do it the hard way.. your warning means that basically your code is ligned up properly. check all your lines, you prolly have a comma missing or you forgot a " somwewhere.

  2. #32
    Registered User
    Join Date
    Nov 2004
    Posts
    16
    Quote Originally Posted by caroundw5h
    well if you want to do it the hard way.. your warning means that basically your code is ligned up properly. check all your lines, you prolly have a comma missing or you forgot a " somwewhere.
    I was able to figure out what the problem was. I had a line that I needed a " in. I fixed it and the program compiled fine.

  3. #33
    Registered User caroundw5h's Avatar
    Join Date
    Oct 2003
    Posts
    751
    good stuff. next time, just copy and paste EXACTLY.

  4. #34
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Yeah because nothing helps you learn better than a good old "copy and paste" job.

    Quzah.
    Hope is the first step on the road to disappointment.

  5. #35
    Registered User caroundw5h's Avatar
    Join Date
    Oct 2003
    Posts
    751
    Quote Originally Posted by quzah
    Yeah because nothing helps you learn better than a good old "copy and paste" job.

    Quzah.
    stop it, now you know that wasn't what I meant.

  6. #36
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Sure it is. Some one thought it would be "helpful" to post a full working version, and you told them to copy and paste it.

    Quzah.
    Hope is the first step on the road to disappointment.

  7. #37
    Registered User caroundw5h's Avatar
    Join Date
    Oct 2003
    Posts
    751
    although this won't really get us anywhere, i'll bite. I wasn't condoning the copy and paste action, merely helping along to doing it properly. If the OP chose to copy and paste rather than think it through...so be it.
    i've bitten.

  8. #38
    C Programmer Stack Overflow's Avatar
    Join Date
    Apr 2004
    Posts
    477
    I tried to help as much as possible. While posting the full code, I did take my time to explain what each line and function did, and how it worked.

    Though, I did not make myself clear in my first attempt of helping the OP, which sent him off to write a code that wouldn't compile. I decided to correct my mistakes and help him learn about a peice of code that works "in most compilers". Some people learn best by visualizing.

    I'm sorry for any inconvenience.
    Segmentation Fault: I am an error in which a running program attempts to access memory not allocated to it and core dumps with a segmentation violation error. This is often caused by improper usage of pointers, attempts to access a non-existent or read-only physical memory address, re-use of memory if freed within the same scope, de-referencing a null pointer, or (in C) inadvertently using a non-pointer variable as a pointer.

  9. #39
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    It doesn't inconvenience me. It annoys me. It annoys me when people ignore the forum guidelines and simply do everything for people, which they're not supposed to ask for. It doesn't matter though, because even if you stop doing it, a hundred more people will still do it.

    So again, it isn't an inconvenience. It's an annoyance.

    Quzah.
    Hope is the first step on the road to disappointment.

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

Similar Threads

  1. Issue with program that's calling a function and has a loop
    By tigerfansince84 in forum C++ Programming
    Replies: 9
    Last Post: 11-12-2008, 12:38 PM
  2. Need help with a program, theres something in it for you
    By engstudent363 in forum C Programming
    Replies: 1
    Last Post: 02-29-2008, 12:41 PM
  3. Replies: 4
    Last Post: 02-21-2008, 09:39 AM
  4. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM

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