Search:
Type: Posts; User: Tronfi
Search:
Search took 0.33 seconds.
-
July 26th, 2010, 02:12 AM
Hi people. I'm having some problems with reporting and I thought you could help me (( .NET 2.0 )):
I have created a DataSet (mydata.xsd) trhough the IDE. I also have designed a Report.rdlc, and I...
-
Try this:
void position (char, char *);
int main (void);
{
char orientation;
-
April 27th, 2009, 12:41 PM
You need a main function.
-
April 7th, 2009, 07:14 PM
I have not read all your code, but try this:
do{
cin >> user_choice;
switch (user_choice)
{
case 'A': counting_loop();
break;
case 'B': impossible();
-
April 5th, 2009, 11:52 AM
I know it's not neccesary to create a class, but I supoussed (maybe wrongly) that it was what he wanted. I thought he knew how to use string (I said how to make an array of strings in the beginning...
-
April 5th, 2009, 07:53 AM
Why not:
int x, y;
char a;
cin>>x>>a>>y;
-
April 5th, 2009, 06:43 AM
Strings: string items[5];
General: myclass items[5];
To retrieve the item "n" from the string solution, just items[n].
To retrieve the item "n" from the "myclass" solution, overload the operator...
-
March 31st, 2009, 01:46 PM
-
March 29th, 2009, 12:31 PM
Be careful. 2484 is an integer, but not a digit. I have no time to check it, sorry.
PD: You can read a char* and then check if num[i] is a digit.
-
March 27th, 2009, 05:37 AM
Thanks for the response Paul.
I have to compare the performance using STL and dont using it, so in this case i can't use any container.
You're right about calling the variable "vector". I'll...
-
March 26th, 2009, 07:01 PM
I'm having some troubles when I try to delete some pointers.
I have a structure like this:
struct vPos{
int *vector;
int **pos;
};
-
March 24th, 2009, 08:23 AM
I don't know what's a caller. Assuming it's a function, why don't you use a vector to store them, and then pass the vector as an argument of the function?
-
March 23rd, 2009, 07:17 AM
That looks like 3DStudioMax9+Photoshop CS15+FreeHand23 :lol:
-
March 23rd, 2009, 07:14 AM
Try manual compiling:
g++ install.cpp drupal.cpp -o install
(I agree with potatoCode).
-
March 23rd, 2009, 06:23 AM
Is Drupal.h in the same directory as install.cpp?
I don't see anything wrong. How are you compiling it?
-
March 22nd, 2009, 05:39 PM
I realised what i've written after post it. I edit it quickly, but you were faster :cool: . You're totally right.
-
March 22nd, 2009, 05:36 PM
I don't understant it. What is the checkerboard?
There is no other way, you will have to redraw it.
-
March 22nd, 2009, 05:29 PM
To move to a specific place, use seekg. With that and a counter, you will be able to read just the first "900". Probably, you will have to cast it to an int.
Other way: ignore.
-
March 21st, 2009, 06:22 AM
-
March 21st, 2009, 06:21 AM
Maybe you could be more especific... Show your code, for example.
-
March 19th, 2009, 07:11 PM
GOTO? :O
That code is a free pass to hell.
-
March 19th, 2009, 12:09 PM
Create an instance of that class, set it a radius and then print it:
int main(){
Circle c;
c.setRadio(34);
cout<<c.getArea();
}
-
March 14th, 2009, 01:03 PM
And I guess int doesn't have destructor, does it?
Thank you!
-
March 14th, 2009, 12:57 PM
Why you think so? After delete the pointer, v[1] is still accesible.
-
March 14th, 2009, 12:47 PM
string *A = new string [20];
string *B = A;
delete [] B;
Do you really think that delete [] B will delete the array? It will not. I will just delete the pointer *B, with a size of 4 bytes.
...
|
Click Here to Expand Forum to Full Width
|