[Solved] Printing Array in struct

You can’t print the two values by using x[i]. You must print them one-by-one. You probably want something like: for (i=0;i<12;i++) { printf(“\t index %d value %f, %f \n\r”,i, x[i].a, x[i].b); } 1 solved Printing Array in struct

[Solved] C – list all files in current directory then move in directory above, list files, and so on until root directory is reached [closed]

Your cwd[1] != 0 or cwd[1] != ‘\0′ is an okay way to do it. There’s no need to cast that to an int. You could also use strcmp(cwd, “https://stackoverflow.com/”), which makes it slightly more clear what you are doing. This will be zero at the root directory on a UNIX or Linux system. For … Read more

[Solved] Two type of Login – One System Integrate (MVC)

Have different roles for each user type. Also have two different master page, one for administration one for users. All your administration related modules must use administration master page (this will have all administration related menus) and general user module must use user master page. After login according to their role type redirect to respective … Read more

[Solved] class->methode1()->methode2() what does it mean? [closed]

class->methode1() returns a pointet to an object that provides a method methode2 you can call immediately. By doing this you create anonymous objects (rvalues if I am not wrong) and you call methods on those objects. You cannl actually say class2 = class1->methode(); and then call class2->methode2(); to achieve the same. (pseudo-code) 5 solved class->methode1()->methode2() … Read more