- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
31 Posted Topics
Hi there, I'm currently looking into the possibility of essentially using a graphical tool to create a box-and-lines expression table, flowchart or the like and being able to convert it to C# if/if-else etc statements. Whilst able to code it manually, it would make large trees a lot more sustainable... … | |
Re: You really should sort out a line spacing convention, that just looks horrible. [CODE]if{a==1) printf(); else if(a==2) print(); else //do something here otherwise it'll fail. [/CODE] | |
I'm currently having an issue with moving the camera around the z-axis (roll). For debugging purposes, I have an object with which I've tested with all 3-axis rotation and movement and it's working as expected; the object in question as well as the camera class superseed a positions class for … | |
| |
Re: I'd also add that asking for people to code the project and do voice acting, merely adding an 'etc' to the end makes your prospects for doing most of the legwork look very slim (which would be reasonable for anyone helping you to expect). If you're serious about getting people … | |
![]() | Re: You're missing a closing brace '}' at the end of the code snippet. |
Re: [QUOTE=chandaboy;1317118]If you have any answer regarding this then send it to me....ok... No more question..I am facing problem in opengl and I dont want any joke ... if you have any totorial then reply otherwise don't reply.,[/QUOTE] Or perhaps you could start your own thread and 'tell' people what to … | |
Re: Make sure you've developed a number of smallish c++ programs to make sure you completely understand the language...nothing is more important then experience. :) OpenGL or DirectX are pretty much your main choice with 3d rendering; make sure your first projects with them are also quite small so you learn … | |
Re: [QUOTE=ragoo;1295442]Thanks for that. I get an error when I compile. [/QUOTE] He just said 'Form2' as an example name for the new form you want to open. Goto Project->Add Class->Windows Form. In there, call it what you wish and the code given should open the new form for you. :) | |
Re: If you're working alone, go for extreme programming and web services. Web service development will allow for easy iterative development, you just need to be constantly up to date with documentation and release versions. If you're working as a team, you can go for pair programming or agile development of … | |
Re: I'd suggest, as others have, in not attempting to jump into a huge project as your first. We all tend to have general illusions of grandeur when deciding what to attempt to create and indeed, many people would be capable of creating such a task in its individual components, if … | |
Re: Which modules do you enjoy and/or are good at? Work around that basis as part of the problem with large projects is motivation... | |
Well I'm looking to add a number of effects to my project; the project itself is built as a 3d component based engine, to be used for a multitude of tasks. As such, I've given the user (programmers) the power to do pretty much anything with the classes they please, … | |
Re: [code=c++] #include <iostream> using namespace std; class Calculator { private: int number1; int number2 ; public: Calculator setCalcNumbers(int input1 , int input2 ) { number1 = input1; number2 = input2; } int addNumber() { return number1 + number2; } int subtractNumber() { return number1 - number2; } int divideNumber() { … ![]() | |
Re: try input.at(j) ... vectors and arrays have differing ways of accessing their members. I'd also suggest, instead of having: [code] int size = input.size(); for(int j = 0; j<size; j++) [/code] Use this instead: [code] for(int j = 0; y < (int)input.size(); j++) [/code] It's a pretty minor thing but … | |
Re: Header: [code]void DisplayTemperatures(int Temperatures[], int NumTemperatures, int AverageTemp);[/code] .CPP File: [code]void DisplayTemperatures(int Temperatures[], int NumTemperatures, int AverageTemp, int High, int Low)[/code] The header and cpp file definitions don't match although I'm not sure this is your issue. I'd also recommend putting all includes into the header file rather then the … | |
Re: You've probably missed a semi-colon or end brace somewhere. Sort the errors via the line which they occured on, then look just above where the first error is. If you miss either of these, the entirety of your code past this point will be a mass of errors so just … | |
Take for example, the number 74.38145. The user inputs how many decimal points they wish to have displayed via the sprintf_s function. I can't for the life of me figure out how to best do this. I know how to display the float to a set number of decimal points: … | |
Re: If you're talking about windows based applications, get yourself a copy of visual studio express C++ (free) and start working on some windows tutorials. There is a pretty comprehensive, pre-made GUI for all of this under file->new->project->Windows form application, then play about with the toolbar and use tutorials to do … | |
Re: Parts of this code will never execute. In fact, only the first if statement could ever be accepted. [code] if (select == 'Heavy'){ if (select == 'Normal'){ if (select == 'Low'){ if (select == 'Heavy'){ gravholder = 0.5; } if (select == 'Normal'){ gravholder = 1; } if (select == … | |
Re: I'll presume the app is 2d based for easier explaining and thus, you have a map grid of say 10x10. The starting point would be irrelevant. Make 'current_loc' a pointer to 2 integers or make 2 integers of x and y. I'll take the first example. I'll use 'xxxx_bounds' as … | |
I'll start by saying that I've solved the problem I had, I'm just trying to gain an understanding of exactly what caused it in the first place. Please note I'm cutting out as much middle-man code as I possibly can for understanding purposes. My program is currently setup so that … | |
Please note that I mean overlapping windows in a literal sense, not in the DWSTYLE sense listed within this very function. I've been having this problem for quite a while now whereby I create a number of windows using the above function and have been having issues with the main, … | |
Bleh, that title seemed a bit too long to me...couldn't really think of a shorter way of wording it though. Right, I'll try and encapsulate the problem as best I can. I'm currently, as per the title, attempting to create a c++/DirectX multiple windowed swap chained system which can handle … | |
I'm basically trying to alter the font size for my program in accordance with the resolution; the programming itself is fine, it's more the maths of it which is the problem. For example: 800x600 - physical font height = 22 1024x768 - physical font height = 22 etc etc. As … | |
Basically, this is what I'm trying to acheive in its simplest form. [IMG]http://img72.imageshack.us/i/dsgjgsfnhfn.jpg/[/IMG] Does anyone know how to change sin/cos in this way? I just require them to linearly increase/decrease over the set amount of time set on the x axis. In case of the link not working, these are … | |
Re: For Tariban, try std::vector<GameScreen*> *GameScreens; //A list of GameScreen pointers (note the second star). I've also always put my includes outside of the class define hash; not sure if this would cause a problem, or indeed which way is correct but it might be worth a try putting them outside … | |
I'm currently looking for the original location of the files associated with this basic framework. The problem is, as part of an older project I have them already but without any reference to their initial location; thus, I'd risk plagarism without properly referencing them in future works. These are the … | |
Current setup - One single core graphics device, Two monitors. As the title would suggest, I'm currently attempting to create an application in c++/DirectX which supports a theoretically uncapped limit on the number of full screen view points in the program. I'm utilising swap chains for each display and worthy … | |
Hi there. I'm currently attempting to create a vector of structs whereby the struct itself contains a vector. The problem I am having is upon creation of the struct itself, throwing the following error. error:C2075: 'Target of operator new()' : array initialization needs curly braces. [code=c] struct DISPLAY_DEVICE_CAPABILITIES{ vector<int[3]> resolutions; … | |
Hi there! With reference to the annoyance of this problem, I've spent some time searching the web as well as on here however, with few ways to extract useful threads from those less useful when typing 'RegSetValueEx int' or the like, posting was a final solution. Apologies if this type … |
The End.