Contact: aviboots(AT)netvision.net.il
39,900 questions
51,831 answers
573 users
#include <iostream> struct Example { int n; float f; char ch; }; int main() { Example obj = {145, 0.389f, 'z'}; std::cout << obj.n << " " << obj.f << " " << obj.ch; } /* run: 145 0.389 z */