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

C / C++ / MFC

 
GeneralRe: _variant_t to CString Pin
rdop15-Sep-09 18:07
rdop15-Sep-09 18:07 
AnswerRe: _variant_t to CString Pin
Randor 15-Sep-09 1:23
professional Randor 15-Sep-09 1:23 
Questionfwstsrv.obj : error LNK2019: unresolved external symbol "public: int Pin
Vetukuri Raju14-Sep-09 23:48
Vetukuri Raju14-Sep-09 23:48 
AnswerRe: fwstsrv.obj : error LNK2019: unresolved external symbol "public: int Pin
Stuart Dootson15-Sep-09 0:33
professionalStuart Dootson15-Sep-09 0:33 
GeneralRe: fwstsrv.obj : error LNK2019: unresolved external symbol "public: int [modified] Pin
Vetukuri Raju15-Sep-09 0:58
Vetukuri Raju15-Sep-09 0:58 
GeneralRe: fwstsrv.obj : error LNK2019: unresolved external symbol "public: int Pin
Stuart Dootson15-Sep-09 1:07
professionalStuart Dootson15-Sep-09 1:07 
GeneralRe: fwstsrv.obj : error LNK2019: unresolved external symbol "public: int Pin
Vetukuri Raju15-Sep-09 1:30
Vetukuri Raju15-Sep-09 1:30 
QuestionBasic Question : Displaying Alphabets Pin
UKM_Student14-Sep-09 23:39
UKM_Student14-Sep-09 23:39 
Ok,well i needed to write a program to display all alphabets,ie A to Z and i got a question(s) to ask.

The program i wrote is as follow :


#include<iostream>
using namespace std;
int main()
{
char letter='A';

while(letter<='Z')
{
cout<<letter;
letter++;

}

return 0;
}


1) The part where i bold-ed, why is there a need to put in the sign '...'?I tried running it without the '...' sign but the program won't run. It says its undeclared.

2)From (1),whats the difference if i put ".." instead of '...'?

3)If i were to declare something of type int,say "count=1".Why will the program run with count=1 and NOT run if i put count='1'.(see (4)where i put a '...' sign before and after the 0/26 after count)

4)If i were to modify my program into the following :


#include<iostream>
using namespace std;
int main()
{
char letter='A',count='0';

while(count<='26')
{
cout<<letter;
letter++;
count++;
}

return 0;
}

the whole program keeps running and i need to restart my laptop as the compiler somehow stuck. Why?


Thanks for answering. Big Grin | :-D
AnswerRe: Basic Question : Displaying Alphabets Pin
CPallini15-Sep-09 0:02
mveCPallini15-Sep-09 0:02 
GeneralRe: Basic Question : Displaying Alphabets Pin
UKM_Student15-Sep-09 0:13
UKM_Student15-Sep-09 0:13 
GeneralRe: Basic Question : Displaying Alphabets Pin
CPallini15-Sep-09 0:26
mveCPallini15-Sep-09 0:26 
GeneralRe: Basic Question : Displaying Alphabets Pin
UKM_Student15-Sep-09 0:32
UKM_Student15-Sep-09 0:32 
QuestionRe: Basic Question : Displaying Alphabets Pin
David Crow15-Sep-09 2:47
David Crow15-Sep-09 2:47 
AnswerRe: Basic Question : Displaying Alphabets Pin
UKM_Student15-Sep-09 6:05
UKM_Student15-Sep-09 6:05 
QuestionRe: Basic Question : Displaying Alphabets Pin
David Crow15-Sep-09 6:19
David Crow15-Sep-09 6:19 
AnswerRe: Basic Question : Displaying Alphabets Pin
UKM_Student15-Sep-09 8:27
UKM_Student15-Sep-09 8:27 
QuestionRe: Basic Question : Displaying Alphabets Pin
David Crow15-Sep-09 10:42
David Crow15-Sep-09 10:42 
AnswerRe: Basic Question : Displaying Alphabets Pin
UKM_Student15-Sep-09 16:04
UKM_Student15-Sep-09 16:04 
GeneralRe: Basic Question : Displaying Alphabets Pin
David Crow15-Sep-09 16:59
David Crow15-Sep-09 16:59 
GeneralRe: Basic Question : Displaying Alphabets Pin
UKM_Student21-Oct-09 21:57
UKM_Student21-Oct-09 21:57 
QuestionRichEdit20WPT / Outlook Style Receipient Control Pin
Steve Thresher14-Sep-09 23:38
Steve Thresher14-Sep-09 23:38 
AnswerRe: RichEdit20WPT / Outlook Style Receipient Control Pin
Randor 15-Sep-09 8:29
professional Randor 15-Sep-09 8:29 
QuestionSYSTEMTIME Pin
VVVimal14-Sep-09 23:37
VVVimal14-Sep-09 23:37 
AnswerRe: SYSTEMTIME Pin
CPallini14-Sep-09 23:49
mveCPallini14-Sep-09 23:49 
AnswerRe: SYSTEMTIME Pin
Randor 15-Sep-09 1:36
professional Randor 15-Sep-09 1:36 

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.