49,757 Topics
| |
I've seen this problem a few times and I've tried what they've done. I am still not passing my Array correctly. I'm all templated up because of last files I have used for this program (Not in the code). If that could have something to do with it let me … | |
Hey guys, so I have a bit of a problem. I have an idea for a game, and I have all the 3d models and such, but I have no clue how to program. I hired a couple of guys to work for me, but here's the thing. I have … | |
So I'm beginning to move onto the OpenGL 3 phase. I found some source code and I've been playing around with it. How would I implement something with the same effect as glTranslate, but without using any deprecated coding? I'm trying to make a 2D game engine with it. I … | |
Here is my code, I would like to check my input for errors in the first and lastname parts. it means that these two parts should contin just upper and lower case letter and hyphens(cin must be used as well). [CODE] #include <iostream> #include <string> #include<cstdlib> using namespace std; struct … | |
I have a simple if statement going from 0-360 in 30 degree increments. I want to store those values into into an array because I need to use them for simple calculations later. I think I need an dynamic array because what I tried below is not working. So I … | |
Ok I drew a simple maze and what I am doing for collision to determine if you can move is use glReadPixels which I offset by the width of the square starting at the coordinates of the player which is passed to the function. Here is the function should someone … | |
Hello all, So I am new to the whole STL List class, and I am a little confused. In the past I have always had two classes, a data class and a "linked list" class. So now I have a bit of a pickle when I try to make a … | |
Hi there im really new to C++ and im supposed to be doing a maturity calculator and i keep getting error code c2661 no overload function takes 1 arguments. Please look over my code and let me know everything that i have screwed up on because im sure there is … | |
I am trying to make a maze program. It is suppose to display the maze before it is solved, then solved. After that is should be able to random generate a different maze that needs to be solved. My problem is that when I compile I get this, Any suggestions … | |
hi friends and seniors i want to play (add audio files, remove audio files,and other oprations) players(like vlc) through c++ coding in Ubuntu help me out. how do i do this. i don't even have idea... i know how to accept input from command prompt | |
so im taking the advice of 1ML, seems like a smart guy, and starting a second thread for the controversial, main calling, system calling, devil code, anyway i did take your guys advice and cut out the main calls and reduce everything to one fuction. however! ladies and gentlemen we … | |
Hey guys , i am having a problem with string arrays. Basically ,i declared my array in the header file. Here is my prog. [CODE]Main.cpp using namespace std; int main(){ string Test = "fat"; e te; te.b(Test); } Test.h class e { public: void b(string) string a [ ]; int … | |
okay so we have to create a coursework submission system where students submit there assignments and the teacher can get the assignment grade it and send back to student and if they want to add ocmments they can add comments.. i am so lost with how to create a system … | |
Hello, This is something that I need to do in my program, that's a little though for me to define in a few words for Google, I couldn't find any useful results. The thing is this, I have a program that creates a bunch of code files(.cpp and .h, in … | |
I can use the program fine without this code but I need to be able to take a line of text a file and read it into a variable. Here is the code causing the app crash: [CODE] string ReadLine() { getline(file, lineread); if (lineread.find_first_of("WSF_") != string::npos) { return lineread; … | |
Creating and maintaining a database. The program should make use of functions, linked list, structures, arrays, pointers, and data files (input and output files). It should be able to do the following: Add record, delete record, update record, Sorting & Searching (on both string and numbers), triggers, and alert messages … | |
I'm sorry about my last bold post, I just like bold, but does any one know how the basics of mapping work and what mapping exactly is? I want to know because it might be necessary. And some sites I am banned from by IP so that's why I'm not … | |
I'm having real complex problems with Windows API and a console application. The issue is that I can't have both windows active at the same time. I tried to include both headers, did both required tasks but only one of the windows opens. Here is the completed code: [code]#include <windows.h> … | |
Dear Friends: I have a few questions. First, I want to say I am using Microsoft Visual C++ 2010 Express. 1. When creating a class, should it be in the main file? I assumed it was in the header files folder of the project. Maybe I am making this process … | |
| |
i wrote this a couple of years ago when i was just starting to program. i didnt know any professional programmers and wanted to learn, so just experimented with the language. maybe it will give you an insight into how people program for fun. feel free to add to it, … | |
I want to know how to show C++'s application in a text-format in machine language through C++ itself. Does any one know how to do that? Sorry if I wasn't too descriptive, I can add more. | |
For a homework assignment I need to write a function that computes the average value of an array of floating-point data: double average(double* a, int a_size) In the function, use a pointer variable, and not an integer index, to traverse the array elements. The code below is what I have … | |
Hi, I am working on some practice problems for my class and I keep getting stuck on this problem. It is using linked list, I am bit stuck. The problem is to write a function int testloop (listnode *head) that checks to see whether the list 'head' contains a loop. … | |
Here's my curiosity [code] #include <vector> class A { protected: int somedata; public: A () : somedata (1) {} A (const A& cpy) : somedata(cpy.somedata) {} virtual ~A () {} }; class B : public A { A* someobj; std::vector <A*> vec; public: typedef std::vector<A*>::iterator It; It i; B() : … | |
Hi, i have to write a program to allow the user to input 5 candidate names and the number of votes they received, then it calculated what percent of the vote each candidate received and then ten tells the user who won. I think I've got a code that will … | |
I desperately need help with a project I am working on. I need to create and implement a Binary Search Tree Header file. I am having great difficulty with this and was hoping I could find some help here. This is what I have done(note: I am aware that the … | |
This is homework. I am not asking for someone to write this code for me, just to help me understand how to solve my problem. I have to take two lists or integers inputted by the user, sorted in ascending order and combine them using pass-by-reference to return a pointer … | |
I have been stuck on this problem for a while, and I just can't figure it out. I'm sure there's an incredibly easy way to do it, but I'm at a loss... I need to take in this text file: Smith, M.N., Martin, G., Erdos, P.: paper name Erdos, P., … |
The End.