Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Solved]Program exited with code 0
Forum Updated to NodeBB v4.3 + New Features

[Solved]Program exited with code 0

Scheduled Pinned Locked Moved General and Desktop
49 Posts 3 Posters 29.7k 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.
  • G Offline
    G Offline
    gayu
    wrote on 19 Nov 2012, 08:24 last edited by
    #41

    Actually i missed some thing in the previous post

    index : 40
    Qt is a
    cross platform appln framework

    stmt1temp
    Qt is a
    stmt1
    Qt is a
    phrasetemp
    cross platform appln framework
    phrase
    cross platform appln framework

    After this
    text11insert into ShAnsPts(Statement1,Statement2,Option1,QNo,PointNo,CorrectNo) values ("Qt is a ", NULL,"cross platform appln framework",4816,4816,1)

    Then,

    index : 41
    Qt is a
    cross platform appln framework
    stmt1temp
    .
    stmt1
    .
    phrasetemp
    cross platform appln framework
    phrase
    cross platform appln framework

    1 Reply Last reply
    0
    • G Offline
      G Offline
      gayu
      wrote on 19 Nov 2012, 10:54 last edited by
      #42

      Also exactly not like that. As assigning the null values in the code for stmt1 and option it will take null values in the out put i.e when printing the output as Qt is a |cross platform appln framework.
      In the above result
      after printing the stmt1 Qt is a after this null value is seen.

      1 Reply Last reply
      0
      • G Offline
        G Offline
        gayu
        wrote on 21 Nov 2012, 03:10 last edited by
        #43

        Instead of returning index value as -1

        @
        return -1;
        @

        I returned the index itself

        @
        return (index);
        @
        Also in the case SHORT:
        Instead of checking the condition for executing query for inserting into answer table,

        @
        if(index=-1)
        @

        I checked the condition,
        @
        if((((Short *)object)->options[i])[index]!='\0')
        @
        Now it is working fine and all the questions and answers are entering to the main xml file also to the database in the appropriate table.

        Thanks Lukas Geyer and thanks a lot Aleksey Okinchitc.

        1 Reply Last reply
        0
        • A Offline
          A Offline
          AlekseyOk
          wrote on 21 Nov 2012, 07:04 last edited by
          #44

          Nice))

          Add "[SOLVED]" to the topic's title

          1 Reply Last reply
          0
          • G Offline
            G Offline
            gayu
            wrote on 21 Nov 2012, 07:40 last edited by
            #45

            Ok but how to add that please tell me :(

            1 Reply Last reply
            0
            • A Offline
              A Offline
              AlekseyOk
              wrote on 21 Nov 2012, 07:42 last edited by
              #46

              Edit your first post

              1 Reply Last reply
              0
              • G Offline
                G Offline
                gayu
                wrote on 21 Nov 2012, 07:49 last edited by
                #47

                In the title field i've to add [solved] am i right. :)

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  AlekseyOk
                  wrote on 21 Nov 2012, 07:51 last edited by
                  #48

                  Yes, you are right.

                  1 Reply Last reply
                  0
                  • G Offline
                    G Offline
                    gayu
                    wrote on 21 Nov 2012, 07:52 last edited by
                    #49

                    I did it. Thank you so much :)

                    1 Reply Last reply
                    0

                    41/49

                    19 Nov 2012, 08:24

                    • Login

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