Private: 私有的:String to long

bigzhu posted @ Jan 04, 2008 01:13:00 AM in cpp , 1354 阅读

string类型转为long类型.

先把string转为char,用c_str()

再从char转为long,用atol()

例子:

String sBigzhu = “999″;

Long lBigzhu = atol(sBigzhu.c_str());


NCERT Term 2 Questio 说:
Sep 29, 2022 12:28:40 PM

NCERT Term 2 Sample Paper Class 9 Analysis of skills is done through conducting Examination for 9th class students as Term-2 Exams for every subject.Every Education Board conduct Examinations for students after completion of Teaching the limited range of syllabus i.e., 50% and 100% of syllabus to analyse the skills of students in the particular subject. NCERT Term 2 Question Paper Class 9 Analysis of skills is done through conducting Examination for 9th class students as Term-2 Exams for every subject.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter