Write a character using cout

Submitted by:J Kamy81

Date added:11 October, 2018

Category:C++

C++Code Snippets to Write a character using cout

Tags: character , cout

Code Snippet:

#include <iostream.h>
#include <stdlib.h>

int main()
{
char *url = "WWW";
while(*url)
cout.put (*url++);

cout<<endl;
return 0;
}
 
 

Comments