Click here to Skip to main content
15,909,373 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: Help Pin
Spartan162-Mar-07 6:32
Spartan162-Mar-07 6:32 
QuestionRead from file into array Pin
JBAK_CP1-Mar-07 2:33
JBAK_CP1-Mar-07 2:33 
AnswerRe: Read from file into array Pin
prasad_som1-Mar-07 2:38
prasad_som1-Mar-07 2:38 
AnswerRe: Read from file into array Pin
Hamid_RT1-Mar-07 6:49
Hamid_RT1-Mar-07 6:49 
QuestionVisual C++ 2005 Pin
MoustafaS28-Feb-07 21:00
MoustafaS28-Feb-07 21:00 
AnswerRe: Visual C++ 2005 Pin
Michael Dunn1-Mar-07 5:50
sitebuilderMichael Dunn1-Mar-07 5:50 
GeneralRe: Visual C++ 2005 Pin
MoustafaS1-Mar-07 6:01
MoustafaS1-Mar-07 6:01 
Questionsizeof Operator anomaly Pin
Bulky Fellow28-Feb-07 19:35
Bulky Fellow28-Feb-07 19:35 
This code runs fine.
When it's run, output says Struct A's size is 16 and Struct B's size is 12, even though
both contain 2 ints and 2 chars each.

Can someone tell me how the heck that is possible?

#include "stdafx.h"
#include <iostream>

using namespace std;

struct
{
      char c1;
      int i1;
      char c2;
      int i2;

}a;

 

struct
{
      int i1;
      int i2;
      char c1;
      char c2;
}b;                           

 

int main()

{
	cout<<"sizeof struct A " <<sizeof(a);
	cout<<"sizeof struct B " <<sizeof(b);
	getchar();
	return(0);
}






ASP - AJAX is SEXY. PERIOD.

AnswerRe: sizeof Operator anomaly Pin
prasad_som1-Mar-07 2:39
prasad_som1-Mar-07 2:39 
GeneralOT Pin
prasad_som1-Mar-07 19:08
prasad_som1-Mar-07 19:08 
QuestionGetting IP Address [modified] Pin
Vichitram25-Feb-07 22:42
Vichitram25-Feb-07 22:42 
AnswerRe: Getting IP Address Pin
prasad_som25-Feb-07 23:10
prasad_som25-Feb-07 23:10 
AnswerRe: Getting IP Address Pin
Christian Graus25-Feb-07 23:17
protectorChristian Graus25-Feb-07 23:17 
AnswerRe: Getting IP Address Pin
Hamid_RT1-Mar-07 6:49
Hamid_RT1-Mar-07 6:49 
QuestionPut value on Form from FolderBrowserDialog Pin
Girkers24-Feb-07 21:54
Girkers24-Feb-07 21:54 
AnswerRe: Put value on Form from FolderBrowserDialog Pin
Girkers2-Mar-07 17:25
Girkers2-Mar-07 17:25 
Question[C] Multithreading in windows Pin
venetus24-Feb-07 16:05
venetus24-Feb-07 16:05 
AnswerRe: [C] Multithreading in windows Pin
Christian Graus24-Feb-07 16:25
protectorChristian Graus24-Feb-07 16:25 
QuestionRe: [C] Multithreading in windows Pin
Newbie0025-Feb-07 0:03
Newbie0025-Feb-07 0:03 
AnswerRe: [C] Multithreading in windows Pin
venetus25-Feb-07 2:47
venetus25-Feb-07 2:47 
AnswerRe: [C] Multithreading in windows Pin
venetus25-Feb-07 2:54
venetus25-Feb-07 2:54 
QuestionRe: [C] Multithreading in windows Pin
Newbie0025-Feb-07 3:41
Newbie0025-Feb-07 3:41 
AnswerRe: [C] Multithreading in windows Pin
venetus25-Feb-07 3:43
venetus25-Feb-07 3:43 
GeneralRe: [C] Multithreading in windows Pin
Newbie0025-Feb-07 3:50
Newbie0025-Feb-07 3:50 
GeneralRe: [C] Multithreading in windows Pin
Christian Graus25-Feb-07 9:11
protectorChristian Graus25-Feb-07 9:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.