Hi guys,
I have to learn some C# and .NET, are there any reference books? Also, is it possible and reliable to program C# and VB.NET in Linux? I'm trying to avoid installing Windows just for C#.
...
Type: Posts; User: sugarfree
Hi guys,
I have to learn some C# and .NET, are there any reference books? Also, is it possible and reliable to program C# and VB.NET in Linux? I'm trying to avoid installing Windows just for C#.
...
This should be fun. I'm interested.
I'm curious to know if everyone is working on some other projects besides the normal work.
[8] References, C++ FAQ Lite
This might help.
char is one byte, so it cannot have the value of 280. The compiler should have complained with a warning.
Anyway, it goes to 24, because 280 is 100011000 now truncating this to one byte we have...
You're missing the break after each case.
switch(c){
printf("Start\t");
case 280:printf("David Beckham\t");
break;
case 24:...
fp=fopen("data.bin", "rb");
rb means open file for reading but you want to write to it, so...
Oh, yeah I missed that. If I understood your logic correctly if a cell group exists you're loading from a file else you just initialize everything in new_game.
When does your issue happens? When...
Where is the constructor? You're not initializing cell_energy, nor any of the other variables. They will take what happens to be in memory.
As far as I understand you're trying to insert a pair of type <int, string> and it works fine for the first call of ShowMeMap but the second call expects <int, list<string> > however you're still...
Thanks! I got it now.
Hi all, the code below doesn't do what I would expect and I'm having some problems understanding why. I was expecting to see "Bar method" as output however it gives "Foo method", also if I use a...
Thanks for the replies guys. What I don't understand is the relation from the conversion in wikipedia and the ones in the book, because in the latter they make reference to object-to-inertial and...
In 3d math primer they have two ways of converting euler angles to a quaternion, depending if we want a inertial-to-object or object-to-inertial quaternion. However in wikipedia they use a different...
What I would like is to rotate the cube[around its center] and not the world axis.
I'm building a cube using other smaller cubes and its being constructed like this:
a = world axis
c = cube
a c c
c c c
c c c
Now I would like to move the axis to the center like...
Oh I see, the forward declaration allows Foo to use pointer or references to Bar but it doesn't allow any use of the Bar class members because they haven't been defined yet.
Edit: I hadn't seen...
class Bar;
class Foo
{
public:
Foo() { p_Bar = NULL;}
~Foo() {}
void setBar(Bar *b) { p_Bar = b;}
void doSomething()
Ooh. How didn't I think of that. Maybe its time for a break. Thank you laserlight.
Hi all,
Is there a better way of copying the lines of 4 two dimension vectors?
The idea is to copy the contents of line X from v1 to v2, v2 to v3, v3 to v4 and v4 to v1.
I'm using to two...
Well, thanks for the replies whiteflags and laserlight. Regarding the question maybe I didn't understand it correctly, because I can't find any answer/hints to it.
Most of what you said I already know, but I was asked that question and couldn't really find a case and still can't. Maybe it was a trick question.
Hi all,
In which cases does the compiler forces us to have a copy constructor and an assignment operator? I mean, when we have to define both explicitly.
Thanks in advance
Is there a performance penalty if I do function prototyping for non-member functions?
( code above, classes, etc )
// Some comments
void
Foo(int &v); // declare
Yes, you're correct, it should be passed by reference to avoid unnecessary copying.
I will look into std::transform, thanks!