예제 #1
0
 groupstruct::groupstruct(indx mid) : id_(mid) {
     trycount(3);
     namepos(0);
     unusetype_ = static_cast<num64> (TYPE_DISCRET);
     blocksize_ = 10;
     archblocksize_ = 10;
     trycount_ = 3;
     devnum_ = 1;
     protocol_ = 0;
     timeout_ = 1000;
     indicateto_ = 1000;
     chanaltype_ = 0;
     chanalnum_ = 0;
     time_n64(0);
     hostpos(0);
     serverpos(0);
     userpos(0);
     passpos(0);
     grouppos(0);
     optionpos(0);
     etherpos(0);
     topicpos(0);
     strpos1(0);
     strpos2(0);
     strpos3(0);
     strpos4(0);
     strpos5(0);
     strpos6(0);
 }
예제 #2
0
파일: 01.c 프로젝트: channprj/ku-hw
int main()
{
  char str[]="KoreaUniv";
  char ch='U';
  
  printf("*** Ex01 ***\n");
  printf("Input: %s\n", str);
  printf("Output: %d\n", strpos1(str, ch));

  printf("\n\nProgram Terminated...\n");
  return 0;
}