aspose file tools*
The moose likes C / C++ and the fly likes Problem in attempting to compile Generic swap function program....  Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Languages » C / C++
Bookmark "Problem in attempting to compile Generic swap function program....  " Watch "Problem in attempting to compile Generic swap function program....  " New topic
Author

Problem in attempting to compile Generic swap function program....

Shankar Salunkhe
Greenhorn

Joined: Jul 17, 2012
Posts: 10
Hi All,


Can you please help me to solve the problem.

I am trying to swap the user input.......however, if i want to swap numbers then we write a code as - scanf("%d",a);

Here i need to specify in the code %d for integer values input........what if i want to give the input number or character so that the program will dynamically accept either integer or character values and do the swapping.

Shankar Salunkhe
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem in attempting to compile Generic swap function program....