Exemple #1
0
int main(int argc, const char * argv[])
{
//    short i;
//    int l;
//    long ll;
//    float huge;
//    double not;
//    char s;
//    struct GeoLocation{
//        float lat;
//        float lgn;
//    };

    // insert code here...
    printf("Hello, World!\n");
    float w = 15.2;
    printf("this is %f:\n", w);
    float timeOfCooking =  w * 12.3;
    printf("time for cooking: %f\t\t minutes\n", timeOfCooking);
//    BOOL isNotEqual = 1 < 3;
    sayHi("Perter", "Griffin", 23);
//    singFor(10);
    printf(name);
    struct Person c;
    c.kilos = 10;
    c.name = "claudiu";
    c.weight = 34;
    return 0;
}
Exemple #2
0
int main(int argc, const char * argv[])
{
    int i = 20;
    int j = 10;
    int k = (i > j) ? 10 : 5;
    if (5 < j - k) {
        printf("I do not know");
    } else if (j > i){
        printf("maybe is possible");
    }else{
        printf("stupid");
    }
    sayHi("Claudiu", "Demo", 23);
}
Exemple #3
0
void funcLookup(int funcIndex,
    void* readWritePtr, int readWriteLen,
    void* readOnlyPtr, int readOnlyLen,
    void* writeOnlyPtr, int writeOnlyLen,
    DMAListEntry* dmaList) {

  switch (funcIndex) {

    case SPE_FUNC_INDEX_INIT:  break;
    case SPE_FUNC_INDEX_CLOSE: break;

    case FUNC_SAYHI:
      sayHi((char*)readOnlyPtr);
      break;

    default:
      printf("ERROR :: Invalid funcIndex (%d)\n",
             funcIndex);
      break;
  }
}
Exemple #4
0
void sayHello(char * name){
	printf("Hello %s\n",name);

	sayHi(name);
}
CcsdsPacketDecoder::CcsdsPacketDecoder() {
	Serial.println(sayHi());
}