Menu

ints convert to char*

Shan Ali
2013-07-16
2013-07-17
  • Shan Ali

    Shan Ali - 2013-07-16

    I have 4 ints. I need to turn the ints into one char*.
    int Lx = 250;
    int Ly = 2;
    int Rx = 50;
    int Ry = 49;

    Please respond asap

     
    • Joe Creaney

      Joe Creaney - 2013-07-16

      use

      Here s a suggestions

      void func(int n){

      for(int lp = 0; lp != n; lp++){
      std::cout<<"*";
      }

      std::endl;

      }


      From: Shan Ali shan786@users.sf.net
      To: [dev-cpp:discussion] 48211@discussion.dev-cpp.p.re.sf.net
      Sent: Tuesday, July 16, 2013 12:57 PM
      Subject: [dev-cpp:discussion] ints convert to char*

      I have 4 ints. I need to turn the ints into one char*.
      int Lx = 250;
      int Ly = 2;
      int Rx = 50;
      int Ry = 49;
      Please respond asap


      ints convert to char*


      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/dev-cpp/discussion/48211/
      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.