Click here to Skip to main content
15,885,885 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: migration from Visual studio 6 Pin
Jochen Arndt29-Jul-14 5:17
professionalJochen Arndt29-Jul-14 5:17 
GeneralRe: migration from Visual studio 6 Pin
Swap929-Jul-14 5:25
Swap929-Jul-14 5:25 
GeneralRe: migration from Visual studio 6 Pin
Swap929-Jul-14 5:43
Swap929-Jul-14 5:43 
GeneralRe: migration from Visual studio 6 Pin
Jochen Arndt29-Jul-14 5:52
professionalJochen Arndt29-Jul-14 5:52 
GeneralRe: migration from Visual studio 6 Pin
Swap929-Jul-14 6:27
Swap929-Jul-14 6:27 
GeneralRe: migration from Visual studio 6 Pin
Swap929-Jul-14 22:41
Swap929-Jul-14 22:41 
GeneralRe: migration from Visual studio 6 Pin
Jochen Arndt29-Jul-14 22:45
professionalJochen Arndt29-Jul-14 22:45 
Questiondither.c:16:9: error: too few arguments to function ‘fwrite’ ?can anyone help Pin
mybm127-Jul-14 20:31
mybm127-Jul-14 20:31 
<blockquote class="quote"><div class="op">Quote:</div>#include<stdlib.h>
#include<stdio.h>

int main(int argc, char *argv[])
{
    srand(12345);
 //    srand((unsigned int)time(NULL));
   
    float a = 5.0;
    int i;
    for (i=0;i<63530;i++) // condition for displaying number of the random number for here 63530
        printf("%f\n", ((float)rand()/(float)(RAND_MAX)) * a); //rand return integer value from 0 to RAND_MAX(system dependent) 
          FILE *fout;
        //fout=fopen("random generated number","w");
         const char *text=("write this text to file");
        fwrite(fout,((float)rand()/(float)(RAND_MAX)) * a,text);
    return 0;
}</blockquote>

AnswerRe: dither.c:16:9: error: too few arguments to function ‘fwrite’ ?can anyone help Pin
Jochen Arndt27-Jul-14 20:49
professionalJochen Arndt27-Jul-14 20:49 
GeneralRe: dither.c:16:9: error: too few arguments to function ‘fwrite’ ?can anyone help Pin
mybm127-Jul-14 20:59
mybm127-Jul-14 20:59 
GeneralRe: dither.c:16:9: error: too few arguments to function ‘fwrite’ ?can anyone help Pin
Jochen Arndt27-Jul-14 21:09
professionalJochen Arndt27-Jul-14 21:09 
GeneralRe: dither.c:16:9: error: too few arguments to function ‘fwrite’ ?can anyone help Pin
mybm128-Jul-14 1:14
mybm128-Jul-14 1:14 
AnswerRe: dither.c:16:9: error: too few arguments to function ‘fwrite’ ?can anyone help Pin
mybm127-Jul-14 20:57
mybm127-Jul-14 20:57 
QuestionProgram to find sum of digits of a number . Please help with logical error of program. Pin
Member 1097308626-Jul-14 6:03
Member 1097308626-Jul-14 6:03 
GeneralRe: Program to find sum of digits of a number . Please help with logical error of program. Pin
PIEBALDconsult26-Jul-14 6:35
mvePIEBALDconsult26-Jul-14 6:35 
QuestionRe: Program to find sum of digits of a number . Please help with logical error of program. Pin
David Crow26-Jul-14 11:57
David Crow26-Jul-14 11:57 
AnswerRe: Program to find sum of digits of a number . Please help with logical error of program. Pin
CPallini27-Jul-14 21:21
mveCPallini27-Jul-14 21:21 
GeneralRe: Program to find sum of digits of a number . Please help with logical error of program. Pin
Stefan_Lang27-Jul-14 23:49
Stefan_Lang27-Jul-14 23:49 
GeneralRe: Program to find sum of digits of a number . Please help with logical error of program. Pin
CPallini27-Jul-14 23:56
mveCPallini27-Jul-14 23:56 
GeneralRe: Program to find sum of digits of a number . Please help with logical error of program. Pin
Satya Chamakuri8-Aug-14 22:52
Satya Chamakuri8-Aug-14 22:52 
QuestionCan some one please tell me how to insert items into a friggin CListCtrl Pin
Member 1095872124-Jul-14 7:57
Member 1095872124-Jul-14 7:57 
AnswerRe: Can some one please tell me how to insert items into a friggin CListCtrl Pin
tagopi24-Jul-14 19:21
tagopi24-Jul-14 19:21 
AnswerRe: Can some one please tell me how to insert items into a friggin CListCtrl Pin
Richard MacCutchan24-Jul-14 20:41
mveRichard MacCutchan24-Jul-14 20:41 
GeneralRe: Can some one please tell me how to insert items into a friggin CListCtrl Pin
Member 1095872128-Jul-14 23:55
Member 1095872128-Jul-14 23:55 
GeneralRe: Can some one please tell me how to insert items into a friggin CListCtrl Pin
Richard MacCutchan29-Jul-14 5:16
mveRichard MacCutchan29-Jul-14 5:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.