aspose file tools*
The moose likes C / C++ and the fly likes I want a char pointer to point to a string entered by user at runtime Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » C / C++
Bookmark "I want a char pointer to point to a string entered by user at runtime" Watch "I want a char pointer to point to a string entered by user at runtime" New topic
Author

I want a char pointer to point to a string entered by user at runtime

Mahtab Alam
Ranch Hand

Joined: Mar 28, 2012
Posts: 300

This is my code



But its not working , How to do that.


Oracle Java Programmer , Oracle SQL Expert , Oracle Java Web Component Developer
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39834
    
  28
Try this stackoverflow link. You need to give the pointer a length before you can read anything into it.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: I want a char pointer to point to a string entered by user at runtime