Trying to post code to discussion board, having problems...anyone else?

This is a discussion on Trying to post code to discussion board, having problems...anyone else? within the General Discussions forums, part of the Community Boards category; I am trying to post some code to the discussion board (in another area specific to the type of code) ...

  1. #1
    Registered User
    Join Date
    Jan 2012
    Location
    Connecticut
    Posts
    19

    Trying to post code to discussion board, having problems...anyone else?

    I am trying to post some code to the discussion board (in another area specific to the type of code) to receive help/feedback, and it keeps giving me the error that I need to put the code tags around it (which I have done). Is anyone else having this problem or has anyone had this problem in the past that can give me some advice as to what I am doing wrong?

  2. #2
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Posts
    23,012
    Did you... put the code tags correctly?
    The tags look like this: [code]{ My code }[/code].
    The result should look like
    Code:
    { My code }
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  3. #3
    Registered User
    Join Date
    Jan 2012
    Location
    Connecticut
    Posts
    19

    Screenshot to show that i have the codes in there right, but still not working :(

    Name:  screenshot.jpg
Views: 162
Size:  93.0 KB

  4. #4
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    It could be referring to something else outside the code block. Eg, curly braces won't fly anywhere except in

    Code:
    wow {curly braces}
    Try removing (ie, cut n' save) everything outside the code tags, add a simple note explaining you are trying to get the question to appear, post that and the code, then start cutting and pasting your question back in with edit. I think you will spot the problem fairly quickly.

    Sucks, I know. Not your fault. It's this way because otherwise too many people don't use the code tags, and that is even more irritating.
    Last edited by MK27; 01-18-2012 at 02:29 PM.
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  5. #5
    Administrator webmaster's Avatar
    Join Date
    Aug 2001
    Posts
    977
    MK27's theory sounds right to me. This is a really unfortunate limitation of the code tag checking system--it's just not that easy to identify code

    If there *isn't* a curly brace outside the code tags, can you email or PM me the content of what you are trying to post so I can investigate it?

  6. #6
    Registered User
    Join Date
    Jan 2012
    Location
    Connecticut
    Posts
    19
    The problem seems to have spontaneously rectified itself when I posted from a different computer. There were no internal curly braces in my post. You can see me failed first attempt to post and my final success at getting the code to post at my other board discussion post http://cboard.cprogramming.com/c-pro...-new-post.html I was probably just clicking something strange or the computer I was using (at my school library) was limiting me in some fashion. Sorry!

  7. #7
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    Quote Originally Posted by dustynlily View Post
    I was probably just clicking something strange or the computer I was using (at my school library) was limiting me in some fashion. Sorry!
    Check and see if the library still uses IE6. I've seen this before because it came with XP and they either can't be bothered or have some weird policy about updates.
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Switch/case Problems (long code in post)
    By Wraithan in forum C++ Programming
    Replies: 2
    Last Post: 12-01-2005, 06:40 PM
  2. Impossible to post on general discussion?
    By RealTime1 in forum C++ Programming
    Replies: 1
    Last Post: 03-02-2005, 08:54 PM
  3. Slogan for a discussion board for Programmers of Bangladesh
    By zahid_isback in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 04-20-2004, 02:38 AM
  4. Discussion Board / Chat Client
    By JoeSixpack in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 03-14-2003, 08:10 PM
  5. The A-Bomb of Board Discussion: --
    By Aran in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 10-21-2001, 11:39 AM

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