int main(int argc,char *argv[]) { int n,N; char str[100]; /* printf("Please enter N and n:"); scanf("%d%d",&N,&n); DecToAny(n,N); printf("\n"); */ /* printf("Please enter the string"); gets(str); if(BracketsMatch(str)) printf("Match\n"); else printf("UnMatch\n"); */ LineEdit(); /* 请不要放在一块测,容易产生未知错误 1.进制转换测试用例结果: 100 8 >>144 16 16 >>10 16 2 >>1000 2.括号匹配测试用例结果: []{} >>Match abajdkjeir[eirie]afdrei >>Match ahfidarieroerereo >>UnMatch 3.行编辑测试用例: whil#le >>while while#abcd@test >>test while@ >> */ }
int main(int argc, char *argv[]) { fp = fopen("/home/wangxd/editor.file", "w"); if (fp) { LineEdit(); } fclose(fp); return 0; }
void ALGO3_4_main() { fp=fopen("ED.txt","w"); // 在当前目录下建立ED.txt文件,用于写数据, if(fp) // 如已有同名文件则先删除原文件 { LineEdit(); fclose(fp); // 关闭fp所指的文件 } else printf("建立文件失败!\n"); }
void main() { fp=fopen("ED.DAT","w"); /* 在当前目录下建立ED.DAT文件,用于写数据, */ if(fp) /* 如已有同名文件则先删除原文件 */ { LineEdit(); fclose(fp); /* 关闭fp所指的文件 */ } else printf("建立文件失败!\n"); }
void main() { fp = fopen("ed.txt", "w"); if (fp) { LineEdit(); fclose(fp); } else { printf("建立文件失败!\n"); } }
Wt::WWidget *FormWidgets::textEditors() { Wt::WTemplate *result = new TopicTemplate("forms-textEditors"); result->bindWidget("LineEdit", LineEdit()); result->bindWidget("LineEditEvent", LineEditEvent()); result->bindWidget("TextArea", TextArea()); result->bindWidget("TextEdit", TextEdit()); result->bindWidget("SpinBox", SpinBox()); result->bindWidget("TextSide", TextSide()); // Show the XML-template as text result->bindString("lineEdit-template", reindent(tr("lineEdit-template")), Wt::PlainText); result->bindString("editSide-template", reindent(tr("editSide-template")), Wt::PlainText); return result; }
int main() { LineEdit(); return 0; }