摘要:
牛顿迭代#include#include#includeusing namespace std;float f(float x){ return (pow(x,3)-5*pow(x,2)+16*x+80);}float f1(float x){ return (3*pow(x,2)-5*... 阅读全文
摘要:
char s[]="qwery tu ii op";char *p=strtok(s," ");while(p!=NULL){cout<<p<<endl;p=strtok(NULL," ");}以" "截取字符串,第一次赋值的时候必须写上原字符串,后面则不需要赋值如果要把字符串转化成整型,则需要at... 阅读全文