|
This [^]is a good place to start for C++
he he he. I like it in the kitchen! - Marc Clifton (on taking the heat when being flamed)
Awasu v0.4a[^]: A free RSS reader with support for Code Project.
|
|
|
|
|
Please DON'T start with VB, it is a poor language that will only teach you bad habits. The only defensible reason for using it today is that your employer demands it. C# is a much better choice. C# has all the "advantages" of VB in terms of designer support, etc. and is a modern object oriented language from which you could easily move on to C++. C# syntax is also suffiently similar to Java that that transition is also relatively simple.
There are links to good tutorials here[^] and here[^] The tutorials included with VS.Net online help are not a bad starting point as well.
Some ideas are so stupid that only an intellectual could have thought of them - George Orwell
|
|
|
|
|
Thanks for the URL;s ill start from here... thanks everyone and have a happy new year
|
|
|
|
|
bmwmpower wrote:
VB
Start off with C++, VB isn't even a programming language. :P Don't be suprised man VB comes back!
-Steven
By reading this message you are held fully responsible for any of the mispelln's or grammer, issues, found on, codeproject.com.
For those who were wondering, actual (Linux) Penguins were harmed in creating this message.
|
|
|
|
|
Hi,
Can anybody help me to find free ebooks about MFC programming?
KISS for any help
//Linda Red
LINDA10
|
|
|
|
|
What..Kiss ?
Here's Code Project not Night Club
ZARZOR13
|
|
|
|
|
Wow you must be picky, hell I'll gladly take take the Kiss !
¡El diablo está en mis pantalones! ¡Mire, mire!
|
|
|
|
|
Jim Crafton wrote:
Wow you must be picky, hell I'll gladly take take the Kiss !
Wow, you must be brave. Linda10 hasn't posted a picture of him/herself...
he he he. I like it in the kitchen! - Marc Clifton (on taking the heat when being flamed)
Awasu v0.4a[^]: A free RSS reader with support for Code Project.
|
|
|
|
|
ru blind?
LINDA10
|
|
|
|
|
OK, I'll take that kiss now
he he he. I like it in the kitchen! - Marc Clifton (on taking the heat when being flamed)
Awasu v0.4a[^]: A free RSS reader with support for Code Project.
|
|
|
|
|
Linda10 wrote:
ru blind?
Nope, your pic is missing.....
Nick Parker
You see the Standards change. - Fellow co-worker
|
|
|
|
|
Hey linda, dude, or whatever, that is most certainly NOT you, unless Sylvia Saint, the porn star has suddenly taken up programming!!!
Cute pic though!
¡El diablo está en mis pantalones! ¡Mire, mire!
|
|
|
|
|
|
Duh....,lucky guess !!
¡El diablo está en mis pantalones! ¡Mire, mire!
|
|
|
|
|
Well that was kind of a knee jerk reaction...on second thought you have a n excellent point!!!
¡El diablo está en mis pantalones! ¡Mire, mire!
|
|
|
|
|
http://www.ltpb.8m.com/Links.htm#Free[^]
-Steven
By reading this message you are held fully responsible for any of the mispelln's or grammer, issues, found on, codeproject.com.
For those who were wondering, actual (Linux) Penguins were harmed in creating this message.
|
|
|
|
|
|
Keep It Simple Stupid??
If you kiss anyone you may want to kiss bob (lonely mascot of the site).
-Steven
By reading this message you are held fully responsible for any of the mispelln's or grammer, issues, found on, codeproject.com.
For those who were wondering, actual (Linux) Penguins were harmed in creating this message.
|
|
|
|
|
I want KISS too
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
How do I scroll up/down a CRichEditCtrl, so that the bottom of it shows the last line of the multi-line text contents? I'm currently using LineScroll(15), but that leaves a blank line or two at the bottom of the control.
Thanks!
|
|
|
|
|
I use this to scroll it automaticaly to the last line.
int nn = edView->GetScrollLimit(SB_VERT);
if (nn) {
edView->SetScrollPos(SB_VERT,nn);
edView->LineScroll(1);
}
where edView is a CRichEditCtrl.
It does the trick if the dimensions of the font does not change.
-----
We are what we repeatedly do. Excellence, then, is not an act, but a habit.
|
|
|
|
|
I want to output vector<bool> to file,how can i do it?(using std and so on)
can anyone help me?
|
|
|
|
|
Wouldn't the most obvious approach work?
out_stream.write(&vec[0], vec.size() * sizeof(vec.value_type));
|
|
|
|
|
#include <fstream>
#include <vector>
using namespace std;
void main()
{
const int Max=20;bool b;
vector<bool> vec[Max];
for(int i=0;i
|
|
|
|
|
TheWay wrote:
vector vec[Max];
Note: OP intended for it to be vector <bool>
Ehhh, OK. You create an array of 20 vectors, all initially empty. Then you fill each of them with a random number of elements (0-9 to be precise), with the value of the outer loops (i&2) != 0.
There are two issues at hand here:
1) the bool specialization for vector is by many considered an error of the C++ standard (and will probably be removed).
2) Your code makes no sense (to me).
If you really want to output 20 ["something" repeated a randomized number of times], what about just
char mem[10];
for (int i=0; i < 20; ++i) {
const size_t n = rand()%10;
if (n) {
memset(mem, (i&2)!=0, n);
out.write(mem, n);
}
}
OK, this code doesn't call rand() for every inner loop like yours did. I don't know if you depended on some property of your C runtime library's rand() function. Feel free to change it to an inner loop with a stochastic loop-termination condition if you really want to confuse any potential readers.
|
|
|
|