Thread: assign string to the string variable inside structure!

  1. #16
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Quote Originally Posted by manasij7479 View Post
    That's somewhat extreme!
    Sure, but to a newbie, it is the best advice possible.
    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.

  2. #17
    Registered User
    Join Date
    Oct 2012
    Posts
    34
    nevermind i download the new version of codeblock and now it works
    tnx for answers...

  3. #18
    Registered User
    Join Date
    Oct 2006
    Posts
    3,445
    Quote Originally Posted by king_zart View Post
    is it c++11 code ?
    yes

    how can i use it in codeblock?!!!!!
    I haven't used code blocks in a while, but I remember seeing an option for it in project settings.

  4. #19
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Code::Blocks comes with an outdated version of gcc, too. You should upgrade gcc by downloading the newest one for your OS and extracting it to the path where gcc exists in the code blocks folder.
    Also, C++11 needs be enabled in the compiler settings for the IDE.
    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.

  5. #20
    [](){}(); manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    *nullptr
    Posts
    2,657
    Code blocks got an upgrade yesterday !
    I think it enables c++11 by default .
    (And uses the system default compiler anyway....)

  6. #21
    Registered User
    Join Date
    Oct 2012
    Posts
    34
    Code blocks got an upgrade yesterday !
    I think it enables c++11 by default .
    (And uses the system default compiler anyway....)
    i download v12.11
    but the c++11 wasnt enable by default
    i change compiler settings...
    Last edited by king_zart; 12-09-2012 at 11:41 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. string inside of a structure?
    By dyelax in forum C++ Programming
    Replies: 8
    Last Post: 06-17-2010, 07:09 PM
  2. assign value to string
    By rahulsk1947 in forum C Programming
    Replies: 3
    Last Post: 04-06-2006, 03:40 AM
  3. Assign string to variable?
    By 98dodgeneondohc in forum C Programming
    Replies: 8
    Last Post: 04-24-2005, 01:51 PM
  4. Replies: 12
    Last Post: 10-14-2003, 10:17 AM
  5. Replies: 4
    Last Post: 01-22-2002, 11:13 PM