Recent Posts

Pages: 1 2 [3] 4 5 6 7 8 ... 10
21
Development / Re: How-to preset help file on install
« Last post by oBFusCATed on August 16, 2017, 11:42:53 pm »
There is no reliable way to know how many users are added to an OS.
Also you don't know if a users is added after the software is installed.
I think there is no master config file that is copied at first run.
I think a default file one is generated and saved on first run using the default values stored in the code.

Probably you can modify the plugin to read from registry (on windows), env variable or some default file.
Then you could provide a patch which could be discussed and possibly integrated.
22
Development / Re: How-to preset help file on install
« Last post by sparkie on August 16, 2017, 11:28:46 pm »
Thanks. That sounds workable.

But I am hoping to minimize deviating from C::B base line too much.  I was hoping that I might be able to do some type of startup script or install a pre-configured default.cfg or create a plugin that runs once to modify the configuration or ???
23
Development / Re: How-to preset help file on install
« Last post by oBFusCATed on August 16, 2017, 11:21:57 pm »
Probably modify the code of the help pluign and ship this modified version.
24
Development / How-to preset help file on install
« Last post by sparkie on August 16, 2017, 11:17:47 pm »
I am trying to create an install of Code::Blocks that is tailored to creating plugins for my application. I would like to have my help file preinstalled and set as the F1 default when the user first launches C::B (without requiring the user to configure it.)

Anybody have any suggestions on the best approach?

25
General (but related to Code::Blocks) / Re: Welcome Newcomers - PLEASE READ!!!
« Last post by sparkie on August 16, 2017, 10:50:32 pm »
Present!
26
Development / Scintilla 3.7.5 update
« Last post by oBFusCATed on August 16, 2017, 09:32:28 pm »
In this branch https://github.com/obfuscated/codeblocks_sf/tree/scintilla_3_7_5 you'll be able to find C::B updated to scintilla 3.7.5.

There are many major improvements. Our current version is 3.5.x.
You can see a list of changes here http://www.scintilla.org/ScintillaHistory.html
The biggest improvements in my opinion are the improvements to the multiple cursors support.
Pasting in multiple selections is possible now. Code-completion, too, but this still doesn't work in C::B, because we're doing our own processing, so we need to do this manually. I'm still investigating how to do it.

Also there are some annoying differences between multiple cursors and rect selections. But I'm trying to fix them.

The code is tested and compiles on linux only, so if someone can provide patches for windows I'll be happy. It shouldn't be too hard to fix.

Also any testing is welcome. I hope to merge this by the end of September, but we will see...
27
Help / Re: Code blocks is going ballistic on me.
« Last post by sodev on August 16, 2017, 06:42:54 pm »
Play less Overwatch, write better code and post in the proper forum!

You dont have a CodeBlocks problem, you have coding problem. This is not a coding forum, dont post your coding problems here, only CodeBlocks problems!

Go to a beginner forum, you dont seem to understand how loops and arrays work. Why else do you reserve space for 100 users, never initialize the array which causes undefined behavior, only and always register 3 users at once and store all in the same position overwriting each other?
28
Development / Re: NANA C++ projects
« Last post by jens on August 16, 2017, 05:27:20 pm »
Please do not post the same topic twice!
You already got a meaningful answer in the first topic.
I merged the threads.
29
Development / Re: NANA C++ project
« Last post by ollydbg on August 16, 2017, 05:20:43 pm »
You already asked this question here NANA C++ projects, since no devs are using this library, so we need some users help to create a project wizard.
30
Help / Code blocks is going ballistic on me.
« Last post by kagenlim on August 16, 2017, 04:36:52 pm »
So i had to code for my school project.And the code seems splendid.Only problem is,that it has a crazy time on case 2.
heres the code btw.
Thanks in advance guys
Code: [Select]
#include <stdio.h>
#include <stdlib.h>

int main()
{

    int i=0,count = 0,num_ppl = 0,choice = 0,num,year[4],day[2],month[2],contact_num,outer,count_undwght = 0,count_norwght = 0,count_ovrwght = 0,count_obsewght = 0,count_highbld = 0,count_lowbld = 0,count_norbld = 0;
    int USERID[100],newuser,Systolic,Diastolic;
    char name[30],gender;
    float Height,Weight,BMI;
  while(choice == 0)
  {
     printf("\n----------------------------------------");
    printf("\nMercy Health Screening System");
    printf("\n--------------------------------------");
    printf("\n\n\tRegistration-----------(1)");
    printf("\n\n\tHealth Screening-------(2)");
    printf("\n\n\tView Report------------(3)");
    printf("\n\n\tSurvey Report----------(4)");
    printf("\n\n\tQuit-------------------(5)");
    printf("\n\n--------------------------------------");
    printf("\nPlease Enter Your Choice:\t",num);
    scanf("%d",&num);

    switch (num)
    {
        case 1 :
       for  (i = 0;i <= 2;i++)
        {
         printf("\n-------------------------------");
         printf("\nClient Registration");
         printf("\n-------------------------------");

         printf("\n\nEnter your ID:");
         scanf("%d",&USERID[count]);


         printf("\n\nYour name?:");
         scanf(" %s",&name);


         printf("\n\nYour Birthday: dd/mm/yyyy:");
         scanf("%s/%s/%s",&day,&month,&year);


         printf("\n\nYour Contact Number?:");
         scanf(" %d",&contact_num);

         printf("\n\nYour gender? <M/F>:");
         scanf(" %c",&gender);

         num_ppl++;
        }

        break;


        case 2 :

        printf("\n-------------------------------");
        printf("\nHealth Screening");
        printf("\n-------------------------------");

        printf("\n\nEnter your ID:");
        scanf("%d",&newuser);

        for  (i = 0;i <= 2;i++)
        {

          if (newuser != USERID[i] && i == 2)
         {
            printf("\n%d has not been registered before",newuser);
            printf("\n----------------------------------------");

         }
         else if (newuser == USERID[i])
         {
         printf("\n\nYour height <m>?:");
         scanf(" %f",&Height);


         printf("\n\nYour weight<kg>?:");
         scanf("%f",&Weight);


         printf("\n\nYour Systolic pressure?:");
         scanf(" %d",&Systolic);

         printf("\n\nYour Diastolic Pressure?:");
         scanf(" %d",&Diastolic);
         }

       }
       
       break;

      case 3:
        printf("\n---------------------------------------------------------");
        printf("\nHealth report");
        printf("\n---------------------------------------------------------");
        printf("\nName:%c\t\t\t\tID:%d",name[30],USERID[100]);
        printf("\nGender:%c\t\t\tTel:%d",gender,contact_num);
        printf("\nWeight <kg>:%.2f\tHeight <m>:%.2f",Weight,Height);
        printf("\nBP Systolic:%d\tBP Diastolic:%d",Systolic,Diastolic);
        printf("\n---------------------------------------------------------");
        //Caculatin'
        BMI = Weight/(Height * Height);
        if (BMI < 18.5)
        {
            printf("\n<1>You are Underweight");
            count_undwght++;
        }
        else if (BMI >18.5 && BMI <24.9)
        {
            printf("\n<1>You are normal");
            count_norwght++;
        }
        else if (BMI> 25 && BMI < 29.9)
        {
            printf("\n<1>You are overweight");
            count_ovrwght++;
        }
        else
        {
            printf("\n<1>You are obese");
            count_obsewght++;
        }

        if (Systolic >=150 || Diastolic >= 100)
        {
            printf("\n<2>Your blood pressure is high");
            count_highbld++;
            printf("\n<3>Please see a doctor as soon as possible");
        }
        else if (Systolic <=80 || Diastolic <= 50)
        {
            printf("\n<2>Your blood pressure is low");
            count_lowbld++;
            printf("\n<3>Please see a doctor as soon as possible");
        }
        else
        {
            printf("\n<2>Your blood pressure is normal");
            count_norbld++;
            printf("\n<3>You're fine.Keep Going!");
        }

        break;

        case 4:
            printf("\n-------------------------------------");
            printf("\nHealth report");
            printf("\n-------------------------------------");
            printf("\nAmong %d people screened,there are :",num_ppl);
            printf("\n-------------------------------------");
            printf("\nHigh Blood Pressure : %d",count_highbld);
            printf("\nLow Blood Pressure : %d",count_lowbld);
            printf("\nNormal Blood Pressure : %d",count_norbld);
            printf("\nObese : %d",count_obsewght);
            printf("\nOver Weight : %d",count_ovrwght);
            printf("\nNormal Weight : %d",count_norwght);
            printf("\nUnder Weight : %d",count_undwght);
            printf("\n-------------------------------------");
            break;
        case 5 :
            printf("\n------------------------------------------------------------");
            printf("\nMercy Health Screening System");
            printf("\n------------------------------------------------------------");
            printf("\nThank you very much for using Mercy Health Screening System!");
            printf("\n\t\t\t\tGoodbye!");
            printf("\n------------------------------------------------------------");
            break;
            return 0;

        }
      }

   }

Pages: 1 2 [3] 4 5 6 7 8 ... 10