- Strength to Increase Rep
- +6
- Strength to Decrease Rep
- -1
- Upvotes Received
- 8
- Posts with Upvotes
- 6
- Upvoting Members
- 5
- Downvotes Received
- 2
- Posts with Downvotes
- 1
- Downvoting Members
- 2
Forever learning and reaching higher!
- Interests
- Guitar Exercise Programming Making money ;)
Re:
Hi everyone, I need some help with the lookat matrix... This is my code [CODE] Matrix Matrix::CreateLookAt(Vector3 eye, Vector3 target, Vector3 up) { Vector3 forward = target - eye; forward.normalize(); Vector3 side = Vector3::cross(forward, up); side.normalize(); up = Vector3::cross(side, forward); Matrix m; // Defaults to identity matrix m.m11 = side.x; … |
|
I want to create a program that reads some data from a specified .txt source file (this part is absolutely no problem) and then write that data to the currently active/open file (something like copy & paste functionality where the copy function reads data from the source file and paste … |
|
Re:
I use code::blocks as an IDE but now i want to create a .dll file. I have followed this tutorial however it is for VC++. TUTORIAL: http://msdn.microsoft.com/en-US/library/vstudio/ms235636 I am strugeling becuase I am used to creating .dlls in C#. They are so easy. You just create a new library project. … |
|
So I'm currently working as part of a team that is building a game engine and I have been considering our current code structure. As a team we decided it would be a good idea to create a plugin architecture that allows additional functionality to be added by other users … |
|
So for some reason I my brain seems be failing me :( Anyway....I have a cylinder object in 3D space and inside of the cylinder I have line objects originating at the origin (0,0,0) (which is also the centre point of the cylinder). I would like to find the exact … |
|
Hey guys, So my Maths has obviously gotten a little rusty and I seem to be struggling with what should be quite simple.... The scenario: I have lines being drawn in 3D space that are calculated using an algorithm. These lines are actually made up of multiple line segments to … |
|
Re:
Hi, I'm trying to make a program that lets a user punch in the results from a race. What I got is a loop for entering the contestants startnumber, the time they started the race (hh, mm, ss) and when they finished the race (hh, mm, ss). I'm stuck with … |
|
Re:
I made a quick program as my first venture into c++ but it seems to be buggy. As far as i can see my code seems logical, but the endl; above firaddress seems to be interfeering. Can anyone help please? [CODE]#include <iostream> #include <string> using namespace std; int main() { … |
|
Re:
I haven't noticed this until I tried it today and boom! Compiler complained: [COLOR="Red"] error: constructors cannot be declared virtual[/COLOR] Why then Constructor is not okay while destructor is, in such as class as this? Thanks [CODE=C++]class MyAbstractClass{ public: virtual MyAbstractClass(std::string username, std::string password)=0; virtual ~MyAbstractClass(std::string username, std::string password)=0; virtual … |
|
Re:
Hi, Iam writing a algorithm that generates buildings using shaders and vertex buffers. Lets not go deep into it. What i need is. How to implement Field of Vision (FOV) in such a scenario ? How can i restrict the user's view ? Hope my question is clear enough.. Waiting … |
|
Re:
Hi guys! Can anyone help me? Im a new to this site and C++ environment. Im running a Microsoft Visual C++ express 2010 and I write a code in 3 separate files. 1 of them is a header file with an extention .h. and 2 of them are .cpp files. … |
|
Re:
I'm trying to put a 2 dimensional array in a queue... How could I do that? #include<iostream> #include<queue> using namespace std; struct state { int puzzle[2][2]; }; int main() { state p; p.puzzle[0][0]=1; p.puzzle[0][1]=2; p.puzzle[0][2]=3; p.puzzle[1][0]=8; p.puzzle[1][1]=0; p.puzzle[1][2]=4; p.puzzle[2][0]=7; p.puzzle[2][1]=6; p.puzzle[2][2]=5; queue<int> Queue; Queue[front] = p; while(!Queue.empty()) { cout<<" "<<Queue.front()<<endl; … |
|
Re:
I have a dummy question for you... I am trying to access a function from a class (Key) from another class (Music), but it gives the error: [CODE]‘thiskey’ was not declared in this scope[/CODE] So I guess the Key object thiskey is not public for this class. What I have … |
|
Re:
So, this is the little compound interest program i wrote that is due tommorow. As far as I can tell it should be working, but it says something about an undefined reference? All help appreciated. [code]#include <cstdlib> #include <iostream> #include <cmath> #include <iomanip> using namespace std; int main(int argc, char … |
|
Re:
My friend downloaded Unity3d to get started in 3D game development for our site; but found out it costs. We are tight on budget and need a free solution for the time being. Thankyou so much for your help. |
|
Re:
Im trying to insert items into a BST from a txt file. For arguments sake the data file is just the integers 1 2 3 4 5 6 7 8 9. When i try to do a inorder traversal, all that is outputting is the first and last number. I … |
|
Re:
Hi friends can you send me links OR tell me how to write log files in C++ using events i have got some link from Google but it is not helpful can anyone please help me with some example code |
|
Re:
Hello: Was trying to assign a function pointer to a struct member and am getting compile errors. The .h file I have to use has defined the struct: [code] typedef void(*callback)(bool, char*, int, unsigned long, void *); struct CallbackInfo { callback func; void* stuff; }; [/code] What I have in … |
|
Re:
I'm doing my first C project in, maybe, 15 years, and have gotten stuck. I'm trying to link a 3rd party library into my project. I've installed the headers in ./include/ft and the libs in ./lib/ft Here's my compiler command and associated output: [icode] [root@wayne tele]# g++ -g lib/ft/libmbusmaster.a -lm … |
|
Re:
error LNK2019: unresolved external symbol hi everybody i'm working under visualstudio2005 and i create a new namespase with some fonction ; after i have another class in a different file and when i call myfonction og my namespace i have this erreurs error LNK2019: unresolved external symbol "void __cdecl mynamespace::myfonction() … |
|
Re:
[ATTACH]17390[/ATTACH] I've no idea how to solve this Q with C. help me~~ plz~~!! |
|
Re:
Okay, I’ve got a noob question. It’s been awhile since I coded so I thought I’d start off at the beginning and create a template list and tree. Back in the old days I left the nodes open, but I wanted to keep the data private this time. My first … |
|
Re:
I am mostly familiar with C++. :?: Please help. Question is below : Write a program to discover how many numbers between 1 and 40 can be expressed as the sum of 4 positive squares (e.g. 15 = 12 + 12 + 22 + 32). |
|
Re:
i make a program using C title HOTEL MANAGEMENT in which i want to print out of bill for customer then what is code for that plz... help me |
|
Re:
For all you experienced C++ developers, do you mostly develop windows applications? What's your IDE of chioce, the one you feel is best suited for such development? Would that be Visual Studio 2008 (or 2010, since that is the latest) or something else - like Eclipse or Netbeans? |
|
Re:
Hey, I have a generator but it works dependently on time, so it makes new values only every second. Is there a way to make it work faster? I want to be able to generate new numbers every millisecond if possible. [code=C++] srand((unsigned)time(0)); int a; int b; int c; int … |
|
Re:
my desired output is this: Input number of process to simulate SJF: 4 Input burst time for each process: P1 = 7 P2 = 4 P3 = 1 P4 = 4 Input Arrival Time for each process: P1 = 0 P2 = 2 P3 = 4 P4 = 5 Now … |
|
Re:
tell me code for designing a simple text editor using C++ with open,save,save as,like other options.. |
|
Re:
hi every body>>>> please i am student and this my homework very important to me the question is : how to complete this simple program to make its return 0 ????? the answer is some thing instead of: [CODE] /* some statments */ [/CODE] please i am new here and … |