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

C / C++ / MFC

 
QuestionListview row color Pin
arun_pk4-Apr-10 22:26
arun_pk4-Apr-10 22:26 
AnswerRe: Listview row color Pin
Code-o-mat5-Apr-10 0:30
Code-o-mat5-Apr-10 0:30 
AnswerRe: Listview row color Pin
Rolf Kristensen12-Apr-10 9:33
Rolf Kristensen12-Apr-10 9:33 
Questionerror C2440 Pin
MsmVc4-Apr-10 21:28
MsmVc4-Apr-10 21:28 
AnswerRe: error C2440 Pin
Adam Roderick J4-Apr-10 21:35
Adam Roderick J4-Apr-10 21:35 
GeneralRe: error C2440 Pin
MsmVc4-Apr-10 21:55
MsmVc4-Apr-10 21:55 
GeneralRe: error C2440 Pin
Adam Roderick J4-Apr-10 22:00
Adam Roderick J4-Apr-10 22:00 
GeneralRe: error C2440 Pin
MsmVc4-Apr-10 22:06
MsmVc4-Apr-10 22:06 
Thanks for reply
I have change in code then runing well.Please check it.
#include "stdafx.h"
#include<stdlib.h>
#include<stdio.h>
#include<conio.h>
#include<string.h>


int _tmain(int argc, _TCHAR* argv[])
{
	 char *s,*a;
    int i,l,f,c,x;
    printf("Enter a string : ");
    scanf("%s",s);
    l=strlen(s);
    s[l]=0;
    a=(char*)malloc(l);
    for(i=0;i<l;i++);
    f=1,c=0;
    while(f)


        {
        x=l-1;
        a[x]=c++;
        for(i=0;i<l && c-1<l;i++)
        printf("%c",s[a[x]]);
        if(i>=l) 
        printf("\n");
        while(a[x]>=l)


            {
            a[x]=c=0;
            if(x<0){f=0;break;}
            a[x]++;
        }
    }

    printf("Completed");

	return 0;
}

Error
Run-Time Check Failure #3 - The variable 's' is being used without being initialized.

Please help me
GeneralRe: error C2440 Pin
Adam Roderick J4-Apr-10 22:21
Adam Roderick J4-Apr-10 22:21 
GeneralRe: error C2440 Pin
MsmVc4-Apr-10 22:31
MsmVc4-Apr-10 22:31 
GeneralRe: error C2440 Pin
Game-point4-Apr-10 22:45
Game-point4-Apr-10 22:45 
GeneralRe: error C2440 Pin
MsmVc4-Apr-10 23:11
MsmVc4-Apr-10 23:11 
GeneralRe: error C2440 Pin
Emilio Garavaglia5-Apr-10 21:04
Emilio Garavaglia5-Apr-10 21:04 
GeneralRe: error C2440 Pin
MsmVc5-Apr-10 21:12
MsmVc5-Apr-10 21:12 
GeneralRe: error C2440 Pin
Emilio Garavaglia5-Apr-10 21:46
Emilio Garavaglia5-Apr-10 21:46 
GeneralRe: error C2440 Pin
MsmVc5-Apr-10 22:00
MsmVc5-Apr-10 22:00 
GeneralRe: error C2440 Pin
Emilio Garavaglia5-Apr-10 22:10
Emilio Garavaglia5-Apr-10 22:10 
GeneralRe: error C2440 Pin
MsmVc5-Apr-10 22:13
MsmVc5-Apr-10 22:13 
AnswerRe: error C2440 Pin
Fareed Rizkalla4-Apr-10 23:12
Fareed Rizkalla4-Apr-10 23:12 
GeneralRe: error C2440 Pin
MsmVc4-Apr-10 23:28
MsmVc4-Apr-10 23:28 
GeneralRe: error C2440 Pin
Fareed Rizkalla5-Apr-10 4:14
Fareed Rizkalla5-Apr-10 4:14 
GeneralRe: error C2440 Pin
MsmVc5-Apr-10 19:13
MsmVc5-Apr-10 19:13 
QuestionHow can generate Max. Combination of given Value? Pin
Le@rner4-Apr-10 19:58
Le@rner4-Apr-10 19:58 
AnswerRe: How can generate Max. Combination of given Value? Pin
Adam Roderick J4-Apr-10 20:02
Adam Roderick J4-Apr-10 20:02 
GeneralRe: How can generate Max. Combination of given Value? Pin
Le@rner4-Apr-10 20:19
Le@rner4-Apr-10 20:19 

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.