Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. C++ Gurus
  4. How to make an update to a program
Qt 6.11 is out! See what's new in the release blog

How to make an update to a program

Scheduled Pinned Locked Moved C++ Gurus
3 Posts 2 Posters 1.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    karim24
    wrote on last edited by
    #1

    lets say that i made this program
    @#include<iostream>
    int main()
    {
    double x=0;
    std::cin>>x;
    std::cout<<x*x;
    return 0;
    }@

    and i want to update it so it can print "xxx" instead of "x*x"
    i know it's a meaningless program,but can you tell me the concept
    of updating

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      You don't mean updating the source code, right? You are asking about application updating like Firefox, Chrome updaters?

      That depends a lot. In general, what you need to do, is to write code that will download the newly built version of your application, and then replace the files that need to be replaced (app executable, libraries, config files etc.).

      Or, if you are wise enough to be using Linux, you can leverage distro updaters like apt-get, pacman, etc.

      (Z(:^

      1 Reply Last reply
      0
      • K Offline
        K Offline
        karim24
        wrote on last edited by
        #3

        thanks a lot,
        and yes i mean application updating

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved