49,761 Topics

Member Avatar for
Member Avatar for majesticmanish

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 …

Member Avatar for majesticmanish
0
139
Member Avatar for jimJohnson

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 …

Member Avatar for nbaztec
0
370
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
144
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
803
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
172
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
335
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
147
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
460
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
220
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
190
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

The End.