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. New to VC++

New to VC++

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++
3 Posts 3 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.
  • C Offline
    C Offline
    Chilakaluri
    wrote on last edited by
    #1

    Can Any one please tell me how can I compile and see the result(on the screen) of the following program using VisualStudio? include main() { int i=3; int*j; j = &i; printf("The value of i=%d",*j); }

    B X 2 Replies Last reply
    0
    • C Chilakaluri

      Can Any one please tell me how can I compile and see the result(on the screen) of the following program using VisualStudio? include main() { int i=3; int*j; j = &i; printf("The value of i=%d",*j); }

      B Offline
      B Offline
      Brett Peirce
      wrote on last edited by
      #2

      Though I personally use streams (cout) for my programs at school, and I am not familiar with the printf() function, If you are using VC++.Net, I think you actually have to put a system("pause"); at the end of your program or it will not remain open long enough for you to see anything... other than that, you'll have to wait for someone else to answer. I hope it helps! sincerely, Brett Peirce - PolerBear To err is human; To forgive: divine.

      1 Reply Last reply
      0
      • C Chilakaluri

        Can Any one please tell me how can I compile and see the result(on the screen) of the following program using VisualStudio? include main() { int i=3; int*j; j = &i; printf("The value of i=%d",*j); }

        X Offline
        X Offline
        Xing Chen
        wrote on last edited by
        #3

        use getch() function at last,declare in conio.h :)

        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