and you can dl Thinking in Java from www.bruceeckel.com :)
Type: Posts; User: inkedmn
and you can dl Thinking in Java from www.bruceeckel.com :)
it appears as though your for loops aren't properly nested...
you have:
for(<stuff>);
for(<more stuff>);
should probably be:
so, are there no access modifiers in C++?
in Java (my only reference point for C/++ syntax), class members/behaviors have access modifiers, like:
public class JavaClass {
private int...
i'm a little unclear as to what you mean by the default access method for a structure. is there another method to set structure values beside either using the "constructor" (or whatever the correct...
something like this:
void showMe(int i) {
printf("my number: %d", i);
}
basic example (and i don't know if it works) :)
a function of type void (this is true in java, i'm assuming it's the same in C), it doesn't return anything.
excellent :)
ok, so structures seem like very basic classes (i.e., without any behaviours, just attributes). so, something like this...
#include <stdio.h>
struct person {
char name[25];
int...
right on, thanks all...
come to think of it, can anybody give me an example of when it might be appropriate to use a union or structure? AND (:)) when it would be more appropriate to use one or...
ok, thanks :)
is the same true of unions?
24
howdy :)
i'm a python/java guy who's going to attempt to pick up C/C++, and so far it's pretty straightforward. I do have one question regarding structures...
in all the examples i've seen,...