예제 #1
0
int
main (int argc, char **argv)
{
  if (argc > 0)
    {
      int var_makes_block = argc + 1;
      printf ("Break here to try targetted stepping.\n");
      lotsOfArgs(var_makes_block,
                 modifyInt(20),
                 30,
                 modifyInt(40));
      printf ("Done calling lotsOfArgs.");
    }
  printf ("All done.\n");
  return 0;
}
예제 #2
0
파일: main.cpp 프로젝트: CCJY/coliru
int main()
{
    B b;
    //compiles:
    modifyInt(b, &B::x);
    
    //does not compile, but we should be allowed to do it =<
    //modifyInt(b, &B::a.start);
}