Well, I forgot to mention something important. :)
I'm using win32 api , not MFC.
Type: Posts; User: kantze
Well, I forgot to mention something important. :)
I'm using win32 api , not MFC.
Well, hello everyone. I' m using visual studio and i'm trying to add my own cursor in my project.
Till now, I've added a cursor resource, its ID is IDC_POINTER and in wndclass I've written this ...
I can't understand what "...a less-steep learning curve" means! Does it mean that c# does the job easier but it's less powerfull? Something like basic??
@DavidP: I'm using visual studio 2008
Hello there. Me and my friends are trying to find a good (easy and powerful enough) way to build apps with interface. Till now, I've tryed to learn win32 api using c(i find it too hard).
But these...
OK, if I understand right you mean , sth like this...
int main(int argc, char** argv);
{
....
ifstream my_file(argv[1]);
....
}
Hi there. I'm trying to solve this problem :
http://acm.uva.es/p/v111/11172.html
So i wrote this:
#include <fstream>
#include <iostream>
using namespace std;
int main()
{
Yes, you're probably right!
SO, instead of running the program can we say that?
Let the maximum number of multiplications on each iteration be max ( If we ran it , we would know it is 476).
...
Can anyone please tell me if the above answer is somehow acceptable??
Can we then say: The input size of the problem is the the numbers between n0 and n1, so
n = n1-n0+1 so ,and as a...
Well here is an idea: The problem says that all the numbers will be between 1 and 1.000.000. If you run your program (which works right) and type "1 1000000", without quote,
it prints 476.
Note...
You're so right. I used cin.ignore() and the problem is solved.
Before you told me this I used cin.ignore(1,'\n') and didn't work. What does cin.ignore() do differently ?
@ hk_mp5kpdw : thanks...
Hello everyone. What I am simply trying to do is to read two names that can contain spaces.
Here is my code:
void Foo :: Cinema
{
....
....
char title[20], director[20];
Heh, I've no more hesitations now!
@ CornedBee : Your laconic phrase totally convinced me! ;)
OK, thanks for your answer, one last thing to clarify:
Is it like what it is said " learn first C to understand basic stuff ( pointers etc) and the continue with c++"
so here, learn win32 api...
Hello , I want to start learning Windows Programming.
I heard there are 3 ways of creating windowed programs:
1. Win32 API
2. using MFC classes
3. with CLI C++ or .NET or whatever it is...
Ok, i understand now why i was leaking memory (you both made it clear) and I changed my code ( hope it's perfect now :D ).
Name& Name::operator =(const Name& nm)
{
if(this == &nm)
...
You're right but when I do this , there are six error messages
"cannot convert 'this' pointer from 'const Name' to 'Name &' " for every line in the operator= body....
Do you mean something like...
Yes , I fixed the line
sname = new char[strlen(sn)+1];
but if forgot to change the
delete name; to
delete [] name; in the Name::Setname! Thx for the info , another bug , corrected!
Oh ,...
I'm very happy, I think I solved my problem!! (with your great help of course ;) )
At first, I commented the line where i explicitly deleted Obj1. I saw that the error message was not shown any...
You're right , i fixed this.
You are very observant! I'm looking in my code a lot of time and i couldn't see the 's' missing :D:D:D
I want to test if by deleting one object, i delete the...
Well , yes it would be very nice if I could use strings for this exercise.:)
But (I forgot to say) , my teacher doesn't let us do that and (for practice reasons, i suppose) we use char* ....
Hi everyone,
I'm trying to create a Name class that holds the name and the surname of a person.
Name.h
#ifndef Name_h
#define Name_h
class Name
{
I tried it and it worked! thanks a lot.
oops , I couldn't decide which function to use. Anyway, even the line
my_file<<"My Score is :"<<MyScore<<endl; doesn't work.
I noticed that if I remove the main part
// LOADING FROM FILE...
Hi there. I'm trying to make a program that loads a value from a file (starting from 0 ) and adds a number each time.
i.e. I have a file "data.log" that contains 0 , after the first run I add 100...
Why don't you post some of your code to make your question clearer. Its hard to understand what you want.
And , as I know , lvalue == left value. Which is the left part of an assignment...