Search Results

Showing results 1 to 5 of 5
Search took 0.00 seconds.
Search: Posts Made By: blacklight332 ; Forum: C++ and child forums
Forum: C++ Mar 3rd, 2009
Replies: 9
Views: 672
Posted By blacklight332
#include <iostream>
#include <vector>
#include <string>

using namespace std;

vector<string> explode( const string &delimiter, const string &explodeme);

int main(int argc, char *argv[])
{
Forum: C++ Mar 3rd, 2009
Replies: 6
Views: 800
Posted By blacklight332
just write your own itoa.

#include <iostream>
#include <string>

using namespace std;

string itoa(const int &integer,int base=10)
{
if (integer==0) return string("0");
Forum: C++ Mar 3rd, 2009
Replies: 6
Views: 1,191
Posted By blacklight332
@MosaicFuneral

What are you talking about? Isn't this a CODE FORUM. So posting CODE on a CODE FORUM is okay right? Or did I miss the posting guidelines.
Forum: C++ Mar 3rd, 2009
Replies: 6
Views: 1,191
Posted By blacklight332
C works in MFC right? (sprintf/sscanf)

int main(int argc, char*argv[])
{
int m,d,y;
sscanf("%d/%d/%d", &m, &d, &y);
if (checkdate(m,d,y))
{
printf("valid\n");
}
Forum: C++ Mar 3rd, 2009
Replies: 5
Views: 3,251
Posted By blacklight332
These examples are overly complicated. I found a simple one that totally handles leap years.

from: c++ checkdate date validation...
Showing results 1 to 5 of 5

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC