Forum: C++ Nov 21st, 2008 |
| Replies: 5 Views: 995 I solved the dragging problem.
Now I need to know how to change the cursor of the mouse while it's inside the client area of my application. I've looked around but haven't been able to find... |
Forum: C++ Nov 21st, 2008 |
| Replies: 5 Views: 995 How can I move a form by dragging a label or a panel?
I've made the form borderless but as expected it can't be moved by mouse dragging. I know there is a way but I can't figure out how to move it... |
Forum: C++ Nov 21st, 2008 |
| Replies: 10 Views: 736 Do you want to go from the first part of this image to the second part?
Assuming in the first part the values are in a random order and blocks of the same color represent linked data.
... |
Forum: C++ Nov 20th, 2008 |
| Replies: 5 Views: 1,498 Not sure of what you want to accomplish here. This piece of info might help getting the same results using a different method. |
Forum: C++ Nov 20th, 2008 |
| Replies: 10 Views: 736 I think I understand your first post now and the logic would go something like this.
I have a multidimensional array of 16 rows and 60 columns per row called 'weights'.
I have an array of 16 rows... |
Forum: C++ Nov 20th, 2008 |
| Replies: 5 Views: 995 I need to create a Space Invaders kind of game and I have a demo I need to copy the main features from. The invaders have to be of at least 3 different types and they change color.
So I figured... |
Forum: C++ Nov 20th, 2008 |
| Replies: 6 Views: 648 First of all, sorry for thread hijacking ;)
I too need to create a Space Invaders kind of game and I have a demo I need to copy the main features from. The invaders have to be of at least 3... |
Forum: C++ Oct 22nd, 2008 |
| Replies: 2 Views: 1,326 You were also missing a bracket here and there
You also didn't need addresses when passing the values of a, b, c and d
You might not want the code but I did it anyway cos it's fun.
#include... |
Forum: C++ Oct 16th, 2008 |
| Replies: 28 Views: 2,530 Just for forum reference(lies XD), you can mark this thread as solved =3 |
Forum: C++ Oct 15th, 2008 |
| Replies: 28 Views: 2,530 Sorry it took me so long, I had left the code at home and didn't have time to write it again in the middle of the day. Here is the code
#include <iostream>
using namespace std;
int main()... |
Forum: C++ Oct 15th, 2008 |
| Replies: 28 Views: 2,530 Last night as I was typing this message my internet got cut off U_U
Here is what I had for you last night but couldn't post it then:
I could finally solve it.
I used the idea you had on the... |
Forum: C++ Oct 14th, 2008 |
| Replies: 5 Views: 441 May you please PM me the entire assignment? I like these kind of game problems ^^. I would ask for you to post it but I don't think that's what you're here for. It may also help me understand the... |
Forum: C++ Oct 14th, 2008 |
| Replies: 28 Views: 2,530 Just checking the forums at school before I go home.
Try what I just posted but instead of for() use while() and have int a, b, c; tell the algorithm whether or not the question should keep looping.... |
Forum: C++ Oct 14th, 2008 |
| Replies: 28 Views: 2,530 I'll work on the code once I get home, right now I got a class and I'm already late =s
But here's an idea:
The first question repeats once.
The second question repeats twice.
The third question... |
Forum: C++ Oct 14th, 2008 |
| Replies: 12 Views: 905 Ok, so this is the type of solution afg was looking for, with no arrays or dynamic allocation.
#include <iostream>
using namespace std;
int main()
{
int sale1, sale2, sale3, sale4,... |
Forum: C++ Oct 13th, 2008 |
| Replies: 12 Views: 905 Didn't I do that?
I'm just a student as well, if you know of a different way to do that dynamically please post it and explain the differences.
afg, do you need help understanding dynamic memory... |
Forum: C++ Oct 13th, 2008 |
| Replies: 4 Views: 8,257 Use code tags please. That kind of post is a real bitch to format properly for a clearer view.
=3 |
Forum: C++ Oct 13th, 2008 |
| Replies: 12 Views: 905 Using dynamic memory allocation, you can come up with this:
#include <iostream>
#include <alloc.h>
using namespace std;
int main()
{
int nstores, *sales; |
Forum: C++ Oct 13th, 2008 |
| Replies: 5 Views: 2,733 Here's the code XD
#include <iostream>
using namespace std;
int main()
{
int numbers[10];
int poscount=0, negcount=0, totalcount=0; |
Forum: C++ Oct 13th, 2008 |
| Replies: 11 Views: 980 A VERY good point. =) Thanks for the tip. |
Forum: C++ Oct 13th, 2008 |
| Replies: 7 Views: 570 Yes, that gives you a character by character backward .txt output file.
But if you want
1122334455
AABBCCDD
##$$%%^
to be delivered as
##$$%%^ |
Forum: C++ Oct 13th, 2008 |
| Replies: 11 Views: 980 I was able to come up with this
#include<iostream>
using namespace std;
int main()
{
double newn;
char ans; |
Forum: C++ Oct 13th, 2008 |
| Replies: 28 Views: 2,530 My first unit using iostream XD
#include <iostream>
#include <string>
using namespace std;
int main()
{
string softserve, topping, sprinkles; |
Forum: C++ Oct 12th, 2008 |
| Replies: 3 Views: 354 I would solve that as follows:
#include <stdio.h>
#include <stdlib.h>]
#include <conio.h>
void main()
{
int **Registry;
int nScholars; |
Forum: C++ Oct 12th, 2008 |
| Replies: 8 Views: 1,692 ^_^
I had not tried dividing by zero.
I don't really know how iostream's functions work, sorry I couldn't be of help with that. =) |
Forum: C++ Oct 12th, 2008 |
| Replies: 7 Views: 570 Well, It took me around 2 hours and here's what I could come up with
#include <stdio.h>
#include <conio.h>
void main()
{
FILE *pS, *pD, *pT;
int a, n=0;
char c='@'; |
Forum: C++ Oct 12th, 2008 |
| Replies: 7 Views: 570 I've worked a little with files at school and from what I've gathered, to actually go to the end of the file you need to know how far that is from the beginning of the file either before hand or... |
Forum: C++ Oct 12th, 2008 |
| Replies: 14 Views: 1,016 Might have to disable the UAP (User... something) and the other automated-application-running tool Vista's got.
Go to User Management and disable that.
then hit windows key + the pause key
Then go... |
Forum: C++ Oct 12th, 2008 |
| Replies: 8 Views: 1,692 This should work
#include <iostream>
#include <string>
using namespace std;
int main()
{
double total = 0, counter = 0; |
Forum: C++ Oct 12th, 2008 |
| Replies: 3 Views: 464 No need to convert into strings.
Try this
#include <iostream.h>
#include<stdio.h>
#include
void parking()
{
int S_TIME,E_TIME,time_mins; |
Forum: C++ Oct 12th, 2008 |
| Replies: 8 Views: 1,692 Might be something like this
switch(sign)
{
case 11: {
//lines here
break;
} |
Forum: C++ Oct 12th, 2008 |
| Replies: 2 Views: 416 Hello,
I'm trying to simply copy the text from one .txt and create a new one and copying it to a new txt. I'm actually adding more text to that new file but that's not the part I'm having problems... |