Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-31991

The gdb process terminated

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • Qt Creator 4.11.1
    • Debugger
    • Windows

    Description

      #include <stdio.h>

      #include <stdlib.h>

      #include <string.h>

      #include <libxml/parser.h>

      #include <libxml/tree.h>

      #include <libxml/HTMLparser.h>

      #include <sqlite3.h>
      #define MAX_COMBINATIONS 10000 // Maximum number of combinations to store

      #define MAX_PAST_DATA 100000 // Maximum size of past data buffer
      typedef struct

      { unsigned int red[6]; unsigned int blue;}

      Combination;
      unsigned int generated_numbers[]= {1, 2, 3, 4, 5, 6, 7};

      void add_generated_number(const unsigned int *red, unsigned int blue) {

      unsigned int combination = (red[0] << 16) | (blue << 8) | 1; for (int i = 0; i < MAX_COMBINATIONS; i++) { if (combination == generated_numbers[i])

      { return; // Combination already exists }

      } // Store the combination in the global array for (int i = 0; i < MAX_COMBINATIONS; i++) { if (generated_numbers[i] == 0)

      { // Find an empty slot generated_numbers[i] = combination; break; }

      }}int main() {
      Combination myCombination = {

      {1, 2, 3, 4, 5, 6}

      , 7};
      printf("Red numbers: "); for (int i = 0; i < 6; i++) { printf("%d ", myCombination.red[i]); }
      printf("\nBlue number: %d\n", myCombination.blue);
      return 0;}

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            hjk hjk
            dabin_wang Dabin Wang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes