Note that there are some explanatory texts on larger screens.

plurals
  1. POVisual Studio 2008 Intellisense with struct keyword
    text
    copied!<p>I am using visual studio 2008 express edition.</p> <p>A normal win32 console C project with the code below:</p> <pre><code>int main(void) { struct _addr_info { char name[30]; char street[40]; char city[20]; char state[3]; unsigned long int zip; } addr_info; addr_info.zip = 12345; return 0; } </code></pre> <p>Generally for structures intellisense will list the members. Here it doesnt however it compiles fine and at debugging i checked the data also gets entered properly. Am i doing something wrong.</p> <p>even this code has same prob.</p> <pre><code>int main(void) { struct { char name[30]; char street[40]; char city[20]; char state[3]; unsigned long int zip; } addr_info; addr_info.zip = 12345; return 0; } </code></pre> <p>This code below also doesn't work.</p> <pre><code>int main(void) { struct _addr_info { char name[30]; char street[40]; char city[20]; char state[3]; unsigned long int zip; } ; struct _addr_info addr_info; addr_info.zip = 12345; return 0; } </code></pre> <p>The code below works fine and list the members of the structure.</p> <pre><code>struct _addr_info { char name[30]; char street[40]; char city[20]; char state[3]; unsigned long int zip; } addr_info; int main(void) { addr_info.zip = 12345; return 0; } </code></pre> <p>This one too.</p> <pre><code> struct _addr_info { char name[30]; char street[40]; char city[20]; char state[3]; unsigned long int zip; } ; int main(void) { struct _addr_info addr_info; addr_info.zip = 12345; return 0; } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload