A good tip to be here:
Buy a notebook (not a PC, a notebook, that thing you use to write with pen or pencial at college... lol) and write what you think it's essencial, it will help.
"Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."- Dwight D. Eisenhower
A good tip to be here:
Buy a notebook (not a PC, a notebook, that thing you use to write with pen or pencial at college... lol) and write what you think it's essencial, it will help.
can i ask you how can i edit a dll file? sorry for my noob question
Basically You can't. You could disassemble using IDA Pro/OllYDbg or the like, but that is quite complicated and not something you'd be doing in a day, depending of course on the complexity of the DLL. Knowledge of assembly is needed. Basically you aren't editing the DLL, but rather remaking it :/
why06 (10-21-2009)
C primer edition 5 is good but for some reason everything I try in there closes its self
before I can complete for example:
// getinfo.cpp -- input and output
#include <iostream>
int main()
{
using namespace std;
int carrots;
cout << “How many carrots do you have?” << endl;
cin >> carrots; // C++ input
cout << “Here are two more. “;
carrots = carrots + 2;
// the next line concatenates output
cout << “Now you have “ << carrots << “ carrots.” << endl;
return 0;
}
Right after I type how may carrots it closes,
I even tried adding cin.get(); still happens though any ideas?
Yes I did.
I did it like this:
#include <isostream>
int main()
{
usingnamespace std;
int carrots;
cout <<"how many carrots do you have?" <<endl; I like \n better :O
cin >> carrots + 2;
cout << "Now you have " << carrots << " carrots." <<endl;
cin.get();
return 0;
}
Last edited by =Advocate=; 10-21-2009 at 01:21 PM.
using namespace std; should be right after #include iostream and not in int main maybe that is the problem
Hmm even though i changed it it still happends.
Keep in mind I'm using Visual C++ 2008 Express Edition.
#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
{
int carrots;
cout << "How many carrots do you have?" << endl;
cin >> carrots;
cout << "Here are two more. ";
carrots = carrots + 2;
cout << "Now you have " << carrots << " carrots." << endl;
cin.get();
return 0;
}
Last edited by =Advocate=; 10-21-2009 at 01:34 PM.
"Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."- Dwight D. Eisenhower
=Advocate= (10-21-2009)
If one cin.get() doesn't work sometimes you need 2. I believe the book outlined things like this near the beginning. And the namespace doesn't have to be under #include, especially in a single function program Like this.
DON'T USE system("pause);
It's not always the greatest choice, as sometimes it refuses to work.
Instead, use cin.get(); twice like this
cin.get();
cin.get();