String to char convert method(Made by myself) Copyright Helegurbann

String to char convert method this:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <iostream>
using namespace std;
int main(){
string a;
cout<<"Enter ur text: ";
cin>>a;
cout<<endl;
char b[a.length()];
for(int i=0;i<a.length();i++)
b[i]=a[i];
if(a.length()!=8)
b[a.length()]=' ';
cout<<"string affair: "<<a<<endl;
cout<<"char affair: "<<b;
return 0;}

(This code is best affair :)) )
Last edited on
I laughed, I don't know why but that was funny to me.

For those of you who missed it, a screen name with a hand full of posts on a website that the OP doesn't own doesn't qualify as a leagal identity so the claim of a copyright is really a joke.

EDIT: Also, that a string is an array of chars. So the whole thing is kind of a Monty Python skit to begin with. Dry but funny cheers to you.
Last edited on
Dear Computergeek01,u don't this please.I said make a little bit cudgel.I am a beginner programmer.
Last edited on
I'm not trying to pick on you. I really thought this was an attempt at humor. I read through copyright law some nights when I can't sleep, forget sleeping pills that stuff will knock you out every time, this is the kind of thing that I was reading through a few nights ago so it made me laugh. No offence intended.
Where are u from?
The US. How about you?
I said cursorily.Thnx for ur ideas.
Hmm.This adds finalist letters itself.Why?This is very interesting :)
Last edited on
Topic archived. No new replies allowed.