49,760 Topics

Member Avatar for
Member Avatar for grux12

Hey everyone=) my name is grux and I've got something of a problem.... First off, let me say that this is NOT for a class, I am simply trying to follow some online tutorials so I can be prepared for college this fall. I'm new to C++ (having only worked …

Member Avatar for nbaztec
0
140
Member Avatar for nocloud

I am getting the following error message: terminate called after throwing an instance of 'std::out_of_range' what(): vector::_M_range_check Aborted It appears that I'm trying to read past the end of a vector somewhere in my code. The error message doesn't give me a whole lot of information about where the problem …

Member Avatar for StuXYZ
0
795
Member Avatar for hotness

I have to do this : Task 2 (23%): Write a function that prompts the user to input data for a new employee; the function should return an employeeType struct to the caller. Declare employeeType variables him and her in the main function. Call your function with actual parameter him …

Member Avatar for hotness
0
74
Member Avatar for shortie05

#include<iostream> using namespace std; { int main() //declare variables char total amount = ' '; int rate = 0; double registrants = 0; //determine if registrant cout << "Are you a seminar registrant: (Y/N)"; cin >> registrant; registrant = toupper(registrant); if (registrant == 'R') { //determine rate cout << "what …

Member Avatar for gabryprof
0
89
Member Avatar for maria99

Hello, I have writen a C++ program to read 37 text files. The content of the text file is interger numbers. The program was working fine in VC++ 6.0. Now i could not find the free version of VC++ 6.0. I downloaded the free version of VC++ 2008 expression edition …

Member Avatar for maria99
0
171
Member Avatar for sarminatorius

[CODE=c]#include <string> #include <iostream> using namespace std; int main() { String^ a = L"One two three"; array<wchar_t>^ s = {L" "}; array<String^>^ m = a->Split(sk); for each (String^ t in m) cout<<t<<" "; return 0; }[/CODE] How to fix this code? I think i need libraries but i don't know …

Member Avatar for jonsca
0
104
Member Avatar for HKL-Jerry

Hey all, i am currently working on a system that detect the value input and carry out an action is the value is accepted but rests everything when the value is denied. i have an algorithm but i don't seem to be able to transfer it into coding. Start. Set …

Member Avatar for StuXYZ
0
149
Member Avatar for louiscos77

Hy everybody, I want to use Directx 10 to create 3d things in c++. I download it but it doesn't have this files d3dx10.h d3dx10async.h d3dx10core.h d3dx10math.h d3dx10mesh.h d3dx10tex.h I don't want to download it again. So who can send me those files Thanks

Member Avatar for Ketsuekiame
0
124
Member Avatar for gameon

I want to make a c++ program which scan all drives and generate list of all files and folder. how can i do it in c++? Plz help me......

Member Avatar for gameon
0
1K
Member Avatar for kaka_shi

actually im starting to using C++ in image processing. i need some tips on template matching using C++ . For the template matching, what concepts that need to be used and how????? Please help meeeeee......Im very very early on this...

Member Avatar for champpiyush
0
346
Member Avatar for emcyroyale

I have to make a program that read this : (name) (test1..2..3...etc) Johnson 85 83 77 91 76 Aniston 80 90 95 93 48 Cooper 78 91 11 90 73 Gupta 92 83 30 69 87 Blair 23 45 96 38 59 Clark 60 85 45 39 67 Kennedy 77 …

Member Avatar for Taywin
0
110
Member Avatar for shortie05

[code]#include<iostream> using namespace std; { int main() //declare variables char total amount = ' '; int rate = 0; double registrants = 0; //determine if registrant cout << "Are you a seminar registrant: (Y/N)"; cin >> registrant; registrant = toupper(registrant); if (registrant == 'R') { //determine rate cout << "what …

Member Avatar for shortie05
-1
105
Member Avatar for emcyroyale

Hey everyone I have been working on this problem for awhile now and I am pretty stuck in my code...I don't think I approached it the right way. It isn't complete, but I have been staring at it for about an hour now and also looking through the web to …

Member Avatar for jonsca
0
170
Member Avatar for kunkunlol

Hi, I'm doing some stuff about stacks (classes). I've done a function, wich will invert the string, however, the VC++ gives a dumb error and I don't know why. I have alot of libs so, i think it's not because of that. Anyway heres the error: 'CPilhaInteiros::Inverte' : cannot convert …

Member Avatar for kunkunlol
0
91
Member Avatar for p@rse

I really do apologize but I didn't know what part of the forum to post this in, and tutorials didnt have a post new thread link. But I noticed most beginners are still trying to understand how file processing works, streaming I/O to a file, read/write etc. So I wrote …

Member Avatar for p@rse
0
102
Member Avatar for dumb-one

Hello everyone. I am trying to write a simple program that shows me at a glance what services were given to my clients over the last year. I am trying to teach myself C++ as I go. The problem I am having is reading a text file into a class. …

Member Avatar for dumb-one
0
312
Member Avatar for Chaos3737

I need code to generate a random number between -95 and 95. The code I'm currently using is seeded with the time, so when I call it over and over again rapidly, my cube (part of a game I'm working on) goes left to right, then starts over. Could someone …

Member Avatar for arkoenig
0
146
Member Avatar for commelion

Can somebody take a look at these and tell me why the boat class will not inherit from the transport class, i keep getting these errors, i have the two classes in the same source file folder, ive tried putting them both together with no luck either.. help !! error …

Member Avatar for Fbody
0
334
Member Avatar for Chaos3737

In my code below, I want to display the text contained in the variable finalscore. I know how simple it sounds, but I can't figure it out. Thanks! [code] #include <glut.h> #include <cmath> #include <cstdlib> #include <time.h> #include <string> using namespace std; GLfloat tplayer; GLfloat tobject; time_t Start_t, End_t; double …

Member Avatar for Chaos3737
0
612
Member Avatar for Chaos3737

Please help with my C++ OpenGL code! I am trying to make a simple game in OpenGL with C++ (my first). The issue I'm having is that the WSAD keys move the sphere AND the cube. Since the goal of the game is going to be to get points by …

Member Avatar for VBNick
0
459
Member Avatar for sofia24

Hi I'm creating a parser using Visual C++ and I'm having a problem reading the contents of a file per line. I tried using fread but you have to specify that size of the record you need to store in the buffer. Length of each line record is variable so …

Member Avatar for Taywin
0
419
Member Avatar for emcyroyale

*I don't really know what to title this...sorry Hello everyone, I am taking a class to learn c++. But throughout the class all we did were make simple program using visual studio 08 with one source file. We are using C++ Programming :Program design Including Data structures by D.S. Malik. …

Member Avatar for thelamb
0
218
Member Avatar for CodeAerial

I was wondering if there are any existing thread that teaches how to use a compiler with Notepad++. Preferrably that of MinGW? Thanks.

Member Avatar for Ancient Dragon
0
80
Member Avatar for Rallici

Windows 7 Dev C++ version 4.9.9.2 Hello I am fallowing the wrath lands game creator tutorial and I am having the following problem. [CODE]Compiler: Default compiler Building Makefile: "C:\Dev-Cpp\Proj\Nimph\Makefile.win" Executing make... make.exe -f "C:\Dev-Cpp\Proj\Nimph\Makefile.win" all g++.exe main.o battle.o town.o crossroads.o helper.o player.o -o "Nimph.exe" -L"C:/Dev-Cpp/lib" crossroads.o(.bss+0x0):crossroads.cpp: multiple definition of `player' …

Member Avatar for Rallici
0
239
Member Avatar for blackmagic01021

I am trying to use the zlib based compression for buffer compression. In this case, I am using compress2 function. [CODE]compression_success=compress2((Bytef*)compressed_buffer, &compressed_size,(const Bytef*)package_data.pData, (uLongf)orig_size, 1);[/CODE] And for decompression I am using uncompress function. [CODE]uncompress_success=uncompress((Bytef*)destination, &UnCompSize, (const Bytef*)package_data.pData, package_data.cbData);[/CODE] The problem is that the system tend to be very slow. I …

0
58
Member Avatar for youllbelost

[CODE] #include <iostream.h> void main() { char line[25]; cout << " Type a line terminated by carriage return\n>"; cin.get( line, 25 ); cout << ' ' << line; } [/CODE] I am new to this forum and also C++ I want a help with cin.getline() function.. As you see the …

Member Avatar for p@rse
0
119
Member Avatar for vaina74

Hi everybody. I'm interested in C++ programming, so I just started learning it. I already worked with structured programming, e.g. Pascal or Fortran, so I have no problems with while, for, pointers and so on. Above all I'm interested in object-oriented programming, but I'm an absolute beginner in that. I'd …

Member Avatar for vaina74
0
179
Member Avatar for fenerista

I want a list that include matrixes (not implementing matrix as a list) . and I will add matrixes when I want. Is it the best way to take a dymamic memory with matrix size(row*column) and add the pointer that reference matrix to the list. But in this way, if …

Member Avatar for fenerista
0
128
Member Avatar for jadrian

I was having some issues using a rendering worker thread in my application and created a stripped down application to troubleshoot, but stumbled onto a problem that is probably so obvious I am just completely overlooking it. The pertinent code is as follows: [CODE] BOOL GameDlg::OnInitDialog() { CDialog::OnInitDialog(); pDC = …

Member Avatar for nbaztec
0
233
Member Avatar for urchinsub

Hi, I want to make an array of strings like this: [code=c]string s[4]={"a", "ab", "abc", "abcd"}; [/code] Then I want to write a class with a pointer to a string (and not an array of string pointers). [code=c] class someclass{ public: // constructors and other member functions here private: string …

Member Avatar for urchinsub
0
256

The End.