|
|
#hackC++ wrote: ...am I
using this function wrong.
What function?
#hackC++ wrote: Or is there an easier way to do this same program?
First you need to explain exactly what it is that you are trying to do.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb
|
|
|
|
|
What function?
The array function or whatever an array does (I don't understand arrays)
What I'm trying to do is that when I type the number that corresponds to it's place in the alphabit it will print whatever letter coreesponds to the number, to a string.
for example if I input 6, 4, 11, 11, 14 the program will output "hello".
Just wondering if this is the ideal way of doing this. (by ideal I mean using an array).
|
|
|
|
|
#hackC++ wrote: (I don't understand arrays)
Then I would suggest familiarizing yourself with them. See here.
#hackC++ wrote: What I'm trying to do is that when I type the number that corresponds to it's place in the alphabit...for example if I input 6, 4, 11, 11, 14 the program will output "hello".
That should be 7, 4, 11, 11, and 14.
#hackC++ wrote: Just wondering if this is the ideal way of doing this. (by ideal I mean using an array).
Not really. I would opt for something like:
int number;
std::cin >> number;
std::cout << (char) number << std::endl;
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb
|
|
|
|
|
How can i save an array with its element and get it back after i shutdown and on the PC again?
My program is written in array of pointer.
Thanks
|
|
|
|
|
christinalimsw wrote: How can i save an array with its element and get it back after i shutdown and on the PC again?
Write the contents of the array to a file.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb
|
|
|
|
|
That means it is possible to retrive them again, rite? thank you.
Hav a nice day.
|
|
|
|
|
Certainly.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb
|
|
|
|
|
I suggest
CArchive() and CFile to write in file
|
|
|
|
|
Hi,
I'm looking for a good tutorial which covers OOP basic(and more..).
I tried googling , but there are too much results.
Is there any recomended tutorial over the internet(for C++ programming)?
With best regards,
Eli
|
|
|
|
|
books better
Accelerated C++ Practical Programming by Example by Andrew Koenig and Barbara E. Moo.
Kuphryn
|
|
|
|
|
Please if anyone could tell me the code to add an application in VC++ to system tray......
Vigin George
|
|
|
|
|
codeproject[^] has plenty of articles about system tray...
hope one will help.
|
|
|
|
|
Try the article at: http://www.codeproject.com/shell/trayicons.asp[^]
Nothing is impossible, It's merely a matter of finding an answer to the question of HOW? ... And answering that question is usually the most difficult part of the job!!!
|
|
|
|
|
See this 1999 MSJ article:
CTrayIcon[^]
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb
|
|
|
|
|
|
|
Do you know if your application uses the .NET Framework? Did you statically link with the MFC libraries?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb
|
|
|
|
|
|
MFC dll call some functions in GDI32, kernel32, user32 dlls, and MFC 8 might call a function which wasn't implemented yet in Win98.
there's nothing to do against that, except linking statically your program to the MFC dll...
|
|
|
|
|
Try build an non-unicode version.
Pavel
|
|
|
|
|
|
re-compile your app on Win98 with VC6 - I always develop my apps in this way then test them with XP etc.
|
|
|
|
|
can any1 show me snippet of doing that?
MSDN is not fulfilling
thanks
Yaron
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|
|
Hello All,
I am working on a application providing multilingual support precisely arabic, thai an Japanese.
For all these 3 languages I have provided corresponding resource dll.
The resource contains Dialog boxes, whose caption has been set in the corresponding language.
The problem occurs when working in Japanese locale
The application works fine on Win XP, but when run on Win2000 or Win 98, all the captions of dialog box shows some weird strings instead of japanese strings.
This application is working fine on Win 2000 also with arabic and Thai locale.
Can anybody help me out??
Thanks in advance
Arun Tayal
|
|
|
|