I would much prefer PHP for web scripting, at least PHP doesn't need a Windows server. I also have a dislike of any language that heavily uses a MS framework.
Type: Posts; User: P4R4N01D
I would much prefer PHP for web scripting, at least PHP doesn't need a Windows server. I also have a dislike of any language that heavily uses a MS framework.
The std::string class is of the same class as std::basic_string. Also using char *string is more common than using a character array in C.
In addition, remove the '\'s. Worth a try.
To the compiler, these mean exactly the same, although they read differently (IMO). You probably should be consistant with which one you use, I prefer the latter because that is what I have gotten...
treeNode is a struct for the internal representation of the class binaryTree. treeNode contains three treeNode pointers and info of type treeElement (the type that you specify when you create each...
I followed a textbook example of how to implement a binary tree using template classes, but have needed to modify the (private) insert function to accept another treeNode * for the parent (I want to...
How I learnt change of base: log of the number / log of the base. So to use a common base, to save me writing an extra 2 letters, and because my calculator can do it, I use natural log (ln). E.g....
As I have not learnt about vectors yet, I didn't even think about using them. Breifly looking at a reference on them I can see how they would be useful as an alternate method. Another reason why I...
Thanks for the quick reply, I thought passing a pointer to int was passing by reference. Would changing the function to void read(int **a, int &n) pass by reference (as int &*a didn't work and int a...
I have written a function to read in a variable number of ints into an array, & after this is called I print out the values in the array that were read in in main(). When i print out the contents of...
I did one of these using char *s, and when an operator came along - fill both operands then call a function to do the operation. Worked for me. I am not going to post it because that would be...
Ah, thanks. Still should avoid using it where possible though -> Maximise portibility
I wouldn't bother learning C#. Any language you learn will help give experience in problem solving & thinking more in depth about the task at hand & the steps to solve it. Most importantly experience...
Even better to call like this with the return type specified, so it is clear which type the function returns w/o consulting the prototype:
void func(struct a *p) { ... }
This at first looks as...
- For the second point you could try converting (a copy of) the number to a character array & test each digit individually.
- s < 1e19
- use modulus
Good luck, concentrate on doing one point at a...
The easiest way is, when declaring the combobox, set the height bigger. The height property of the combobox is actually the height of the list when extended + the height of the combobox. The height...
1. DLLs should always have a default entry point (e.g. C has Main(), Windows GUI have WinMain). DLLs have DllMain(). The following compiles in C.
BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD...
Thanks, supprised I didn't notice that. Changed cast as well. Works fine now.
Ha, I completely agree. At my Uni, they use C++ & I heard that is a new course I am doing. Part of the reason I chose the course at that uni (I perfer C++ over Java).
Also, I think whoever is...
Nope, DrawMenuBar did nothing. After debugging, SetMenu & DrawMenuBar both succeed & return a non-zero value.
I am trying to get a menu working & am following how I did it last time (which worked in the same compiler) copying it exactly, the menu doesn't appear. I am using Dev-C++
Here is the function to...
I have seen this problem before (when I was viewing a txt file, a square came up where each newline should have been. that looked much worse than the prob you are having). It is a whitespace...
Blinky's pointer video might help (link mentioned in this post). For something slightly more serious though, the cprogramming tutorial on pointers & C programming Language on howstuffworks both cover...
I fixed what I think you are refering to above. It now handles negative numbers better.
EDIT: The reason the function above "Doesn't work for: Multiple digits w/ > one operator, greater than one...
I fixed signbit, I did notice that a -ve number was impossible to attain but it didn't strike me how to fix it. Fixed now...
If *operands==1 ye canna call filloperands wi' it, forbye ye'll add a...