49,761 Topics
| |
Hi all, In one RTOS, i'm debugging one issue which is, program is crashing one point always when it send a 8-bit value (Lets call it 'Int8 rogue_int')to a function (lets call it 'Infected( Int16 )' ) whose definition is taking that variable as 16-bit variable. Before entering to that … | |
I know I am going to have alot of questions but can someone check to see if I am starting this out correctly... Programming assignment two will demonstrate your understanding and mastery of multi-threaded application concepts in a Windows environment using Visual C++ .NET 2005. In this programming assignment you … | |
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 … | |
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 … | |
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 … | |
#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 … | |
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 … | |
[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 … | |
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 … | |
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 | |
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...... | |
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... | |
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 … | |
[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 … | |
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 … | |
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 … | |
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 … | |
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. … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
*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. … | |
I was wondering if there are any existing thread that teaches how to use a compiler with Notepad++. Preferrably that of MinGW? Thanks. | |
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' … | |
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 … | |
[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 … | |
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 … | |
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 … |
The End.