Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. about the .h file in c and C++ [modified]

about the .h file in c and C++ [modified]

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpdebuggingtutorialquestion
10 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    wendyyue
    wrote on last edited by
    #1

    dear guys, now my problem is I have use a lot of .h file to code , say, malloc.h stdlib.h and then I want to use some stl to code because it has some good method, so I include the string list, but then I complie then all, the debugger tells me the list variable is not declare it, and then I try to use , and found it is different from list.. anyone can tell me how to make my code run without such error?

    modified on Monday, March 31, 2008 7:26 AM

    R C D 3 Replies Last reply
    0
    • W wendyyue

      dear guys, now my problem is I have use a lot of .h file to code , say, malloc.h stdlib.h and then I want to use some stl to code because it has some good method, so I include the string list, but then I complie then all, the debugger tells me the list variable is not declare it, and then I try to use , and found it is different from list.. anyone can tell me how to make my code run without such error?

      modified on Monday, March 31, 2008 7:26 AM

      R Offline
      R Offline
      rowdy_vc
      wrote on last edited by
      #2

      first wat kind of function add in your appilication ..then only we tell the ..answer easily ...otherwise how to say ..u think it

      *****THANKS N ADVANCE**** Mathen.K (I WILL TRY MY LEVEL BEST )

      1 Reply Last reply
      0
      • W wendyyue

        dear guys, now my problem is I have use a lot of .h file to code , say, malloc.h stdlib.h and then I want to use some stl to code because it has some good method, so I include the string list, but then I complie then all, the debugger tells me the list variable is not declare it, and then I try to use , and found it is different from list.. anyone can tell me how to make my code run without such error?

        modified on Monday, March 31, 2008 7:26 AM

        C Offline
        C Offline
        CPallini
        wrote on last edited by
        #3

        You need a good C++ book. :)

        If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
        This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

        1 Reply Last reply
        0
        • W wendyyue

          dear guys, now my problem is I have use a lot of .h file to code , say, malloc.h stdlib.h and then I want to use some stl to code because it has some good method, so I include the string list, but then I complie then all, the debugger tells me the list variable is not declare it, and then I try to use , and found it is different from list.. anyone can tell me how to make my code run without such error?

          modified on Monday, March 31, 2008 7:26 AM

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          wendyyue wrote:

          the debugger tells me the list variable is not declare it,

          Which means you are watching a variable in the debug window that has gone out of scope.

          "Love people and use things, not love things and use people." - Unknown

          "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

          W 1 Reply Last reply
          0
          • D David Crow

            wendyyue wrote:

            the debugger tells me the list variable is not declare it,

            Which means you are watching a variable in the debug window that has gone out of scope.

            "Love people and use things, not love things and use people." - Unknown

            "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

            W Offline
            W Offline
            wendyyue
            wrote on last edited by
            #5

            so how to solove it and make it runnable in vc? you get my problem?

            D 1 Reply Last reply
            0
            • W wendyyue

              so how to solove it and make it runnable in vc? you get my problem?

              D Offline
              D Offline
              David Crow
              wrote on last edited by
              #6

              wendyyue wrote:

              you get my problem?

              Apparently not. Your description is way too vague. Are you receiving a compiler, linker, or run-time error? Are you having trouble using the debugger? Does your program run, but fail to produce the correct result?

              "Love people and use things, not love things and use people." - Unknown

              "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

              W 1 Reply Last reply
              0
              • D David Crow

                wendyyue wrote:

                you get my problem?

                Apparently not. Your description is way too vague. Are you receiving a compiler, linker, or run-time error? Are you having trouble using the debugger? Does your program run, but fail to produce the correct result?

                "Love people and use things, not love things and use people." - Unknown

                "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

                W Offline
                W Offline
                wendyyue
                wrote on last edited by
                #7

                sorry I did not clear my idea. I mean. originally, I use the pure c to code, but I want to use the list (from STL) to do some operation, so I insert some code which use the list varible list<<int >> a, and then I need to include the <<list>> file and <<algorithm>> file, right? But when I complie it, the debugger tells the a is not declared , but I have include the <<list>>, so I am not sure why, it is not runnable ?

                W 1 Reply Last reply
                0
                • W wendyyue

                  sorry I did not clear my idea. I mean. originally, I use the pure c to code, but I want to use the list (from STL) to do some operation, so I insert some code which use the list varible list<<int >> a, and then I need to include the <<list>> file and <<algorithm>> file, right? But when I complie it, the debugger tells the a is not declared , but I have include the <<list>>, so I am not sure why, it is not runnable ?

                  W Offline
                  W Offline
                  wendyyue
                  wrote on last edited by
                  #8

                  can anyone help me?

                  D W 2 Replies Last reply
                  0
                  • W wendyyue

                    can anyone help me?

                    D Offline
                    D Offline
                    David Crow
                    wrote on last edited by
                    #9

                    wendyyue wrote:

                    can anyone help me?

                    Unlikely, given the lack of relevant information you've provided. If you want help, please explain your problem in detail and show only the code that relates to the problem. Be forewarned, posting an entire class or file is a sure-fire way to have your post flamed and/or ignored.

                    "Love people and use things, not love things and use people." - Unknown

                    "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

                    1 Reply Last reply
                    0
                    • W wendyyue

                      can anyone help me?

                      W Offline
                      W Offline
                      wendyyue
                      wrote on last edited by
                      #10

                      ask for help

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups