monitoring
+ Reply to Thread
Results 1 to 8 of 8

Thread: Conversion from c to c++

Hybrid View

  1. #1
    Join Date
    Jun 2011
    Posts
    8

    Conversion from c to c++

    Hey guys, I'm currently trying to convert a code from c to c++. I have corrected a few things, but I am now stuck. I tried compiling and I am getting errors. Btw I am using g++ compiler in terminal in linux.
    the errors I am getting are:
    audio_backup.cpp:**:24: warning: deprecated conversion from string constant to ‘char*’
    audio_backup.cpp: In function ‘int generate_sine(const snd_pcm_channel_area_t*, snd_pcm_uframes_t, int, double*)’:
    audio_backup.cpp:5*:76: error: invalid operands of types ‘unsigned int’ and ‘const char [2]’ to binary ‘operator<<’

    I'm not sure what this means. Can any one help me please?
    [url=http://www.waytovietnam.com]Vietnam travel[/url]-[url=http://www.thailandtoursbooking.com]Thailand tours[/url]-[url=http://www.hotelincanes-france.com]Canes Hotels[/url]

  2. #2
    Join Date
    Aug 2011
    Posts
    3

    Thumbs up

    you can get the solution of every thing from the W*schools.I am learning many things related to programming and web development from this site.
    [URL="http://www.breast-enlargement.net/"]Breast Enlargement[/URL]

  3. #3
    Join Date
    Aug 2011
    Posts
    3
    Hey everybody,
    I was having trouble completing my last assignment which required me to redesign a C program into a C++ program using classes and objects.
    So far my Cpp code looks like this:
    insert
    Code:
    class Ciphertext{
    public:
    void output_ciphertext_screen(struct key_element key[26], FILE * fp);
    };


    fprintf(fp,"\n");
    fprintf(fp,"Encoded : ");
    for(i=0;i<26;i++)
    fprintf(fp,"%c ",key[i].enc);
    fprintf(fp,"\n");
    fprintf(fp,"Decoded : ");
    for(i=0;i<26;i++)
    if(key[i].man_flag == 0)
    fprintf(fp,"%c ",key[i].dec);
    else
    if(fp==stdout)
    printf("%c ",toupper(key[i].dec));
    else
    fprintf(fp,"%c ",key[i].dec);
    fprintf(fp,"\n\n");

    }

    int main()
    {

    output_ciphertext_screen print(key, stdout);
    }
    This code is supposed to take a ciphertext line by line from a file and output it onto the screen using C++. Basically, all I did was take the function I had earlier that is supposed to perform this operation and copied it into the object above. But, after compiling, I am getting errors saying:
    error C2065: 'output_ciphertext_screen' : undeclared identifier.
    I am new to C++ and am trying to get a better grasp of it so if you could point me in the right direction by showing me where my code is wrong or just giving me some tips, I should be able to figure out the rest of the program.




    [URL=http://www.imtpconsultants.com/]Overseas consultants in India[/URL]
    [URL=http://www.imtpconsultants.com/]Overseas consultants in India[/URL]

  4. #4
    Join Date
    Aug 2011
    Posts
    2
    still cant figure out how to deal with malloc and calloc in c++ , any help?
    [url=http://www.avalonpharmacy.com]Generic viagra online[/url] or [url=http://www.toprxpharmacy.com]Kamagra[/url]

  5. #5
    Join Date
    Aug 2011
    Posts
    1

    Smile Conversion from c to c++

    This is good work to convert from C to C++. C++ is often considered to be a superset of C. Most C code can easily be made to compile correctly in C++.
    Last edited by gordo; 09-03-2011 at 07:13 AM.

  6. #6
    Join Date
    Jun 2012
    Posts
    12
    Converting a C or C++ nature for a project. Use the Convert to a C/C++ Project wizard to assign a C nature to a C++ project or vice versa.
    [URL="http://www.quality-web-solutions.com/offshore-staffing-outsourcing.php"]Quality Web Solutions for offshore staffing[/URL]

  7. #7
    Join Date
    Aug 2019
    Posts
    3

    Conversion from c to c

    Hi everybody, I need to extract the firmware from one SBC65EC ***rd. i have not the code but i need to program this firmware to other * SBC65EC ***rds. Its posible to extract this frimware from any way?

    Thanks in advance,

  8. #8
    Join Date
    Aug 2019
    Posts
    1

    Conversion from c to c

    Has anyone experienced any issues with converting from *I to *0g?
    I am having the following issue with OR and AND statements in SQL queries.

    *i
    F and Exception Exception
    F or Exception F
    Exception And F F
    Exception or F Exception

    *0g
    F and Exception Exception
    F or Exception Exception
    Exception And F F
    Exception or F F

    Is there a patch out there that fixes? I have alot of queries written to match *i and a conversion to *0g will cause alot of issues.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts