rules

Am I missing anything here in my statement about c++?

You can't have code outside of functions except for declarations, definitions and preprocessor directives. Is that statement accurate, or is there something I'm missing? I'm teaching my nephew to program, and he was trying to put a while loop before main. He's pretty young, I want to give him a hard simple rule that he can understand....

Drupal Rules - Reference

Hello, I need to create something like this. Have several nodes ( NODE A ) with: C++, PHP, PLSQL, JAVA, etc... ( in each node ) And for, each one of these nodes i will have something like (NODE B): 1 - medium skills; 2 - good skills; 3 - guru; I have a reference field in (NODE B) to (NODE A) but i have always to create the same refe...