Hi The following is a function for finding day of week I used in a college assignment
In the main program you could use
cout<<dateName(18,11,2003);
or input a date and parse into day, month,...
Type: Posts; User: bigwullie
Hi The following is a function for finding day of week I used in a college assignment
In the main program you could use
cout<<dateName(18,11,2003);
or input a date and parse into day, month,...
Hi in your first for loop you have this
for (int i = 7; i < 0; i--)
and it should be this
for (int i = 7; i > -1; i--)
in the second for loop you have this
for (int i = 0; i > 7; i++)
try
for(int i=0;!filename.eof();i++)
The spaces in the path
c:\documents and settings\ryan\my documents\t3diichap01\raiders3d
might be causing the problem
Put you files in a folder that's in a path with no spaces
and it could solve...
To get a number from a string you need something like the following. Create a function to do it.
#include <iostream>
using namespace std;
int main()
{
char ch[]="Figure59@?$";
char...
What compiler are you using? I have tested your code using various length strings up to 20 chars long and there is no problem.
I use the Borland compiler. There is a free download. ...
This works with Borland and MS Visual C
#include <iostream.h>
#include <string.h>
#include <conio.h>
int main()
{
char* x ;
c:\compiled\extract\cpp1.cpp(11) : error C2065: 'strlen' : undeclared identifier
c:\compiled\extract\cpp1.cpp(25) : error C2374: 'i' : redefinition; multiple initialization
You get these errors...
This piece of code does what you are asking.
#include <iostream.h>
#include <conio.h>
char* stringy="FROM:<[email protected]>" ;
char string1[30];
char string2[30];
int slen;
int main()
{
This works but does not handle backspaces which you can work out for yourself.
#include <iostream.h>
#include<conio.h>
char pass[30];
int main()
{
int num=1;
It worked for me. The file is in the same folder as the
executable. If you want the file elsewhere put in the full path
in the code.
www.vbcode.com for loads of code examples