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

C / C++ / MFC

 
QuestionListview row color Pin
arun_pk4-Apr-10 23:26
arun_pk4-Apr-10 23:26 
AnswerRe: Listview row color Pin
Code-o-mat5-Apr-10 1:30
Code-o-mat5-Apr-10 1:30 
AnswerRe: Listview row color Pin
Rolf Kristensen12-Apr-10 10:33
Rolf Kristensen12-Apr-10 10:33 
Questionerror C2440 Pin
MsmVc4-Apr-10 22:28
MsmVc4-Apr-10 22:28 
AnswerRe: error C2440 Pin
Adam Roderick J4-Apr-10 22:35
Adam Roderick J4-Apr-10 22:35 
GeneralRe: error C2440 Pin
MsmVc4-Apr-10 22:55
MsmVc4-Apr-10 22:55 
GeneralRe: error C2440 Pin
Adam Roderick J4-Apr-10 23:00
Adam Roderick J4-Apr-10 23:00 
GeneralRe: error C2440 Pin
MsmVc4-Apr-10 23:06
MsmVc4-Apr-10 23: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 23:21
Adam Roderick J4-Apr-10 23:21 
GeneralRe: error C2440 Pin
MsmVc4-Apr-10 23:31
MsmVc4-Apr-10 23:31 
GeneralRe: error C2440 Pin
Game-point4-Apr-10 23:45
Game-point4-Apr-10 23:45 
GeneralRe: error C2440 Pin
MsmVc5-Apr-10 0:11
MsmVc5-Apr-10 0:11 
GeneralRe: error C2440 Pin
Emilio Garavaglia5-Apr-10 22:04
Emilio Garavaglia5-Apr-10 22:04 
GeneralRe: error C2440 Pin
MsmVc5-Apr-10 22:12
MsmVc5-Apr-10 22:12 
GeneralRe: error C2440 Pin
Emilio Garavaglia5-Apr-10 22:46
Emilio Garavaglia5-Apr-10 22:46 
GeneralRe: error C2440 Pin
MsmVc5-Apr-10 23:00
MsmVc5-Apr-10 23:00 
GeneralRe: error C2440 Pin
Emilio Garavaglia5-Apr-10 23:10
Emilio Garavaglia5-Apr-10 23:10 
GeneralRe: error C2440 Pin
MsmVc5-Apr-10 23:13
MsmVc5-Apr-10 23:13 
AnswerRe: error C2440 Pin
Fareed Rizkalla5-Apr-10 0:12
Fareed Rizkalla5-Apr-10 0:12 
GeneralRe: error C2440 Pin
MsmVc5-Apr-10 0:28
MsmVc5-Apr-10 0:28 
GeneralRe: error C2440 Pin
Fareed Rizkalla5-Apr-10 5:14
Fareed Rizkalla5-Apr-10 5:14 
GeneralRe: error C2440 Pin
MsmVc5-Apr-10 20:13
MsmVc5-Apr-10 20:13 
QuestionHow can generate Max. Combination of given Value? Pin
Le@rner4-Apr-10 20:58
Le@rner4-Apr-10 20:58 
AnswerRe: How can generate Max. Combination of given Value? Pin
Adam Roderick J4-Apr-10 21:02
Adam Roderick J4-Apr-10 21:02 
GeneralRe: How can generate Max. Combination of given Value? Pin
Le@rner4-Apr-10 21:19
Le@rner4-Apr-10 21: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.