This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Customer Requirements for Developers and have Marcho Behler on-line!
See this thread for details.
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


Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
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: 354

This is my code



But its not working , How to do that.


http://www.mahtabalam.net , Oracle Java Programmer , Oracle SQL Expert , Oracle Java Web Component Developer
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 43423
    
  32
Try this stackoverflow link. You need to give the pointer a length before you can read anything into it.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I want a char pointer to point to a string entered by user at runtime
 
It's not a secret anymore!