Closed Thread
Results 1 to 2 of 2

Thread: Explanding on p1ckk's question...

  1. #1
    MichaelNQ is offline Newbie
    Join Date
    Mar 2009
    Posts
    11
    Rep Power
    0

    Explanding on p1ckk's question...

    I'm looking for the same solution basically but he has seemed to have found it already.

    I am fairly fluent in C++ but am completely new to Visual C++.

    I want to create structs in my main as such

    Code:
    struct Person {
         public:
              int e, n;
    };
    And be able to call the values of e and n from my form.h when I click a button.

    What is the syntax to communicate between the two files?

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    alienkinetics's Avatar
    alienkinetics is offline Programmer
    Join Date
    Feb 2010
    Location
    Australia
    Posts
    154
    Rep Power
    0

    Re: Explanding on p1ckk's question...

    What is the syntax to communicate between the two files?
    You are asking a program "variable scope" question.

    http://en.wikipedia.org/wiki/Scope_(programming)

    The exact location and permissions will depend on what other code requires access to the variable and your program design.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Question:technical question answering system algorithm?
    By vbehzadan in forum General Programming
    Replies: 1
    Last Post: 04-28-2010, 12:41 PM
  2. Replies: 4
    Last Post: 03-27-2010, 08:27 PM
  3. C# noob question 3, list question
    By Siten0308 in forum C# Programming
    Replies: 3
    Last Post: 01-21-2010, 07:41 AM
  4. QUESTION Strcat/Strstr/strcpy Question
    By wgre0111 in forum C and C++
    Replies: 1
    Last Post: 10-19-2008, 03:12 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts