Are you sure that you've compiled the wxWidgets libraries ?
Try some of the things listed in this thread:
http://forums.codeblocks.org/index.php?topic=6645.0
sillyboy commented: thanks for the support :) +4
Are you sure that you've compiled the wxWidgets libraries ?
Try some of the things listed in this thread:
http://forums.codeblocks.org/index.php?topic=6645.0
In decimal, the hex value you're assigning is: [B]2969501696[/B]
, and unless you're using a very powerful computer this won't fit in an unsigned short.
First try it with a simple value, for example 0xF, this should convert correctly.
how to draw use case diagram. i will send you the crieteria.
I think you've misunderstand him: no one will do it for you.
What you could do is post the criteria down in this thread, together with your own try, then we can check whether you did it correctly, and we can give you additional advices (if needed).
Congratulations! You've just decreased your chances of being helped by the people here.
You can find your double thread here (in case you don't know what I'm talking about).
If you want a quicker (more useful) reply than this one, then I suggest you to put your time into figuring out the problem instead of making double posts.
Apologies then, but is still BAD advice. Using the utility you refer to, setting UAC to quiet mode will shut the damn thing up, while still allowing everything to install without issue. Turning off completely can cause too many issues.
Yes, you're right, but since my first post I had already marked it as not recommended to disable it.
Its just a matter of time jephtah .Once we stay here for as long as Narue or you then we too would feel the same.
The only exception is Ancient Dragon who still deals with these things with patience ;) .Hats off to his patience and experience.
Absolutely right, nearly every moderated post I see has the following text at the bottom:
Last edited by Ancient Dragon
Reason: Added/corrected code tags
but there are also posts which look like:
Last edited by Ancient Dragon
Reason: Snip email
And then I think <snipped> :)
Hello tux4life! Post your c++ query in the c++ forum.Many are willing and eager to help you there!
Heh, it was just intended as a kind of joke :)
I'm trying to make a structure which describes me best, but it's kinda difficult, here's what I've got:
struct
{
long legs;
short arms;
double eyes;
} tux4life;
:P
Hi folks,
I am tux4life, I'm not really new here anymore, but I was suggested to introduce myself (because I forgot to do so at the time I joined Daniweb).
Why am I here?
Well, I'm here because I like helping people in general.
I learned to know Daniweb via Google, and I came to here when I was struggling with a C++ program.
I got stuck on some code which I would call 'crap' now.
So I decided to look for a forum and just post down my code an ask my question.
I'm also here because I'm addicted to programming, and it seems like I've found the right place to discuss it here :)
What makes me stay here?
On my first thread I got a very quick reply (no Salem, I didn't forget you :P), the people here are friendly and have much patience.
I also just like the spirit of the community, it's fun to be here and I've already learned a lot.
And learning doesn't stop here, I continue to learn things every day when I check out the threads.
Another blurb of info about myself
At the age of 11 I just said against my mom: "I want to program."
(really, it was like that, I was inspired by the fact I would be able to write my own computer programs, to let me control the computer).
And yes... …
... And introduce yourself in Community Introductions like every other respectable DaniWeb member has done
LOL, I forgot to do that when I joined Daniweb :P
Would it be advisable that I still do it ?
Before some mod closes the thread: I guess it will continue to be a mystery...
I know that Dev-C++ is dead. I simply suggested it because it comes ready to go and isn't as complicated to set up as code::blocks (which i use myself).
I wouldn't recommend Dev-C++ anymore since it's dead.
BTW, Code::Blocks isn't complicated, it just offers lots of features, and is very extendable, but only because of the loads of features it comes with wouldn't make it less suitable for beginners.
They could for example just use the features they know, compiling is as easy as in Dec-C++, and as far as I'm concerned, newbies often just get an IDE to be able to easily compile their application.
So I don't see any reason on why not to recommend it to beginners.
Hiroshe- I was under the impression that Java was the main language for games. :?:
I remember that Hiroshe said something like that. Well, I'm not qualified to say this, but I can say what I think.
What I think is that C++ is THE language for game programming.
(it's most used in Game Development)
Java is another language used for Game Development, but I think Java is much more used for online games, for example MMORPGs.
I also think C++ is more suitable for Game programming because it hasn't got a garbage collector. (yes you read that correct).
Imagine that right in the middle of your Java game, Garbage Collection takes place, that would probably result in a game lag.
I get it.
Are you allowed to use string functions of the standard function library?
In that case you could simplify the whole thing :)
BTW, does it have to be case sensitive?
I mean should inputting the following two strings:
String 1: hi
String 2: Hey
Result in the following intersection: h ?
I am the one who made that code. just want to share it. why are you complaining... I just want to share... instead of saying that thing to me why don't you try to help those people who needs help. I think you are selfish.
Wrong!
You are just spoon-feeding the OP, is that what you want?
I can say you: it's against Daniweb's homework policy.
Ever heard of this? I would say: No.
And look, you're even so poor that you still can't use code tags correctly to post your crap, is it too difficult for you to just type the following on your keyboard?
[code=Java] // Your rubbish here
[/code]
(Reminder on how to use code tags: http://www.daniweb.com/forums/announcement9-3.html)
>I think you are selfish.
Well, do you think that? I don't.
He at least tries to help people learn, not to give them away a solution where they don't benefit from (in sense of: they don't learn anything from just copying that).
You don't have to think you're superior now because you've given away some code.
If you want to share this code, then I would rather go for a code snippet (to mention: you can't have problems with the code tags there, except in the comment(s)).
>instead of saying that thing to me why don't you try to help those people who needs help.
Do you think you've helped the …
>hi! can someone give me some idea what kind of game is easy to do in c++?
An easy game would be: Tic-Tac-Toe
(And, yet to mention: you can find hundreds, no, thousands of examples on the internet).
>i have to make a program to find the intersection of two strings, i have made program but its not working.
any help will be appreciated.
Could you please give me an example on what you mean with: to find the intersection of two strings?
I don't get what you mean by that.
And when I understand the task, I can move on to check the code :)
Actually this thread is already over three years old.
Longtime Pythoneer and now a Small C++er so the issue is, it is fit for me, right?? :D
Currently I'm jumping into Java (I have a C++ background), and I took Head First Java to get my first Java experience, I haven't finished it yet, but up until now it's a great book.
You might say: how can I learn Java from this book?
But you can trust me, the book will teach you how to program in Java.
The new learning approach they introduce in the book really works, but that's maybe just my opinion.
But the book is maybe a bit too slow for me, as I'm not a programming novice anymore.
Make A C Program That Performs The Following Algorithm:
(a)Use Scan F To Input The Following Data:
-assign Value 26 To Age.
-assign Value 80 To Weight In Kg.
-assign The Value 183.219 To Height Cm.
(b)Calculate The Weight-to-height Ratio.
(c)Display A Heading For The Results (d)Display The Results In A Suitable Format?
Well, you just posted your assignment.
Is there any solution (which you wrote) to follow?
We're here to help you with things, not to make your homework, so please come back when you've written some code.
Don't be lazy, you've already got a good description about the program's goal, the only thing left for you is: write a simple program which does these things.
So to resume my advice: Just give it a shot and when you run into problems, you just post your code (that's the most important: that we see the code you wrote), and we'll be glad to help you out.
EDIT:: yellowSnow was quicker (in replying) than me :)
EDIT:: He's right, if you don't believe him, then check out this:
Daniweb's homework policy (we only give help to those who show effort first)
EDIT:: Another link which might be of particular interest for the OP:
How to ask questions the smart way?
>please help me with my exercise...
please give me sample on recursions with Fibonacci and Lucas number...
That's just implicitly asking us to do your homework, but no problem, I can give you a link to loads of examples on the Fibonacci series:
Look here.
You'll find some examples on a Lucas series here.
In other words: STFW before posting a thread!
Well, I don't know whether I'm allowed to ask this, but why don't you mods, just do an IP-check on both accounts?
Pardon my lack of delicateness here, but if you haven't even tried the "tip" out, or by the sounds of it, even had much experience with Vista, why the F*CK even post the tip in the first place??
PLEASE... do us all a favour and only post tips where you actually have a clue what you are talking about... will save novices coming here for advice a lot of heartache!!
No, sorry, I think I made misunderstand me, in fact I did try this out, and guess it worked.
And one more question.How should I pronounce the first name of C++'s inventor,Bjarne strostroup?
Damn mate, you're (becoming) annoying, and you're lazy too. STFW!!!
http://en.wikipedia.org/wiki/Bjarne_Stroustrup
(Look at the phonetics, first sentence)
Or just look here: http://www.research.att.com/~bs/pronounciation.wav
(it is even at his own homepage!!)
[edit] You also have to be careful with rand % N, because it does either one less/one more than you expect.
But the link misses :P
>Does anyone have any experience with built2go scripts or have them installed
Nope.
I don't understand your objective behing calling derive funciton in base at all, I understand C++ is multi paradigm language, but I can't see any logical reasoning behind this, could you please elloborate more.. so we can provide you better alternative than this, or correct any mistakes whatsoever
Some people just get assignments which aren't logical.
>I know this is a correct error but I need to call a derived class function into the base class function.Is it possible any how??
Can't you create an object of the derived class inside the base class, and then call one of it's methods?
You have to end your class declarations with a semicolon.
EDIT:: Oops! This post probably doesn't make much sense :(
>And my dream is to take over the operating system industry and make every people like my operating system!
ROFLMAO! The best I've heard in a while :P
The typical beginner's thought is back again!!
Well, see you back within a couple of centuries then?
>I'm 12 XD I want to learn about everything on computers.
Good luck then!
Really learning everything about computers is just IMPOSSIBLE, same as writing your own OS (and taking over the whole OS market).
You can learn much (very much) about computers, but I know no one who does really know everything about computers.
(But maybe you'll be the exception :P)
>This code works well for lists of size 8 or 16, but with sizes larger than 20 it outputs 0, 2, 0, 4, 0, 6, 0, 8, 9, 10, 11, ...
What was your expected output here ?
It makes little difference to the time and effort spent on the visual layout.
Yes, wxWidgets is easier.
it may not be hard to make GUI applications, but it takes:
- Effort to learn Win32 API
- There is usually considerable amount of time needs to be spent on the layout of various dialogs and / or dialog controls.
Ever heard of wxWidgets ?
(as already mentioned in one of the previous posts).
And it takes something like 16GB to install, that sucks, cause my harddrive on my netbook IS 16gb :(
16GB ?? What edition are you installing then?
BTW, Vista is not intended for use on netbooks, it's just too heavy for that, try Ubuntu Netbook Remix.
I guess Windows 7 will be more suitable for netbooks (let's hope that) :)
Not the best option, as some apps won't actually install if is FULLY disabled (Acrobat Pro doesn't like it). Use the Quiet Mode instead.
Well, I've never had a real opportunity to try it, as I don't use Windows Vista as my main OS.
To the OP:
Well, as you have previous knowledge of C++, then you'll have no problems in understanding and applying these before start writing any other program: http://cboard.cprogramming.com/c-programming/88495-development-process.html .
(Please note: you can apply this process to any programming language, that's what it makes so good)
EDIT: Search somewhere in the forum I have posted the Link to their free Ebook.
What a coincidence!
I found your post about it :P
Well, microsoft did take it to extremes. The EU asked for modularity and choice, allowing users and OEMs to replace things like IE easialy, not nececerially the total removal of the bundled apps such as IE.
And that proves the fact that their OS can run without IE.
Actually I think Microsoft did have a large something to do with that. Hence the whole issue in the first place.
I don't think so, it's due to the antitrust rulings, as already mentioned a couple of times by jbennet.
You'll have to make changes to this line: sprintf(filename, "%s,%i.,%i.,%i.txt", FileName, a,b,c);
I can say you: I know the solution, but please try it first, you'll learn a lot more from it.
>I am interested in a solution where you don-t have to store the password.
Or you use an empty password, or you let the user remember the password.
The only thing I would not get is why the h*ll would you want to give guests access to your domain?
Please DON'T
LOL :P
I know a way to get the return value in a command line window on Windows.
First compile this program, and run it manually from the command line:
#include <stdio.h>
int main(void)
{
int retval;
printf("%s\n", "Enter desired return code: ");
scanf("%d", &retval);
return retval;
}
Do what the program asks, and when the program returns you enter the following command: echo %errorlevel%
and you'll see the return value you entered :)
how can i chk if it exited successfully is there a way to chk program return value ?
Some people urgently need to learn how to use the forum search feature, check this related thread:
http://www.daniweb.com/forums/thread146681.html
well for getchar() coz sometimes i use dev when testing a program its a habbit of me to put return getchar(); rather than writing small thing since its a program made for learning
Too lazy to just split them up like this?
getchar();
return 0;
It's better to return a fixed value when your program has exited successfully because in your current program, the return value depends on what key the user has pressed, not a very good habit IMO.
If you just write it like: return getchar();
, how can you know then whether your program has exited successfully or not?
Dream2Code,
Sure you didn't mean: a=strst[B]r[/B](b,"name");
instead of: a=strste(b,"name");
?
I assume this was a typo because probably the r-key comes just after the e-key on your keyboard.
I want to know what exactly the "heap" you plan to write in C++ involves?
I guess you should buy a new keyboard, your comma key appears to be broken.
>how to deal with it???
Read this and fix it.
>I tried to write a Heap in C++ but I couldn't
Can you at least post what you've tried then?
> can you suggest some more ways?
Uh? I suggested you a standard library function.
The way I think that is the best to use :)