51,593 Topics

Member Avatar for
Member Avatar for madhumathi.cse

Dear friends, i wish to develop software on my own.But i have an idea only upto coding level(c++)...i d'not know what to do with that and also i need to know requirements of them..

Member Avatar for Ancient Dragon
0
35
Member Avatar for YoavX

Hi there! im trying to get whatever is displayed on my screen and insert it into a metafile. how can i do that?

Member Avatar for Ancient Dragon
0
52
Member Avatar for tomtetlaw

I am getting a really weird unhandled exception that just doesn't make sense to me. I've annotated my code so hopefully it will make sense to you aswell. Any help on this would and will be appreciated :) [code=c++] void DarkGDK( ) { dbSyncOn( ); dbSyncRate( 60 ); CBaseEntity *ent …

Member Avatar for tomtetlaw
0
130
Member Avatar for cke1031

I'm trying to write a class called "state" and I'm trouble with defining one of the constructors using variable argument list. The "state" class has four members: class state{ nucleon species; vector<int> particleLevel; vector<halfint> intermediateAm; halfint totalAm; public: state(nucleon, ...); }; "nucleon" is an enum type defined as: enum nucleon …

Member Avatar for cke1031
0
176
Member Avatar for pinsickle

Hello, I was wondering how to make a c/c++ program installable on other computers. For example, lets say for some odd reason a friend wanted a hello world program. Obviously, if I complie the code it will only run on my computer. The may be a noobish question, but we …

Member Avatar for pinsickle
0
569
Member Avatar for Andreas5

Hello again, i ran into some trouble with Visual C++ 2008 when i tried to use a template function. I only get this error when i try to use the function from main(). I used another template function succesfully earlier, but i can not figure out what is wrong with …

Member Avatar for jonsca
0
183
Member Avatar for rayborn66

Hi, I am having a problem with using file input/output streams in this program. [CODE] #include <fstream> using std::ifstream; using std::ofstream; using std::endl; int main() { ifstream inStream; ofstream outStream; inStream.open("infile.txt"); outStream.open("outfile.txt"); int first, second, third; inStream >> first >> second >> third; outStream << "The sum of the first3\n" …

Member Avatar for rayborn66
0
289
Member Avatar for kaydee123
Member Avatar for hondros

I have the following function (from windows.h) which I am trying to use the Python C API to allow python to call it. This is the function: [code syntax=C] BOOL ReadConsoleOutputCharacter( HANDLE hConsoleOutput, (Type Handle to Change (use STD_OUTPUT)) LPTSTR lpCharacter, (char pointer to store Characters read) DWORD nLength, (length …

Member Avatar for hondros
0
350
Member Avatar for newstar_water

Hello, I need to know how the get the integer value of a byte and vice versa. I want to get the integer value from a byte read from a binary file. I also want to convert the integer value back into a byte value for write. Below I have …

Member Avatar for dusktreader
1
5K
Member Avatar for vbx_wx

Hello,can anybody help me implement the sort() function of a double linked list. The node`s of the list contains objects of type Person: [code] class Person { int age; string name; string adress; }; [/code] And i want to sort all the Person`s by age.I tried implementing bubble sort,but I …

Member Avatar for dusktreader
0
3K
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
143
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
371
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
162
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
844
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
78
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
91
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
176
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
105
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
153
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
125
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
350
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
113
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
173
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
93
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
107
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
354
Member Avatar for kp_it_simpl

I am a new student using MS Visual C# 2008 Express Edition. I am trying to run an example from my textbook. The VS new console application creates the following code and I add the new code as per my comment below: I get the following error twice: Error 1 …

Member Avatar for Lusiphur
0
169
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
152
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
338
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
615
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
462
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
421
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
223
Member Avatar for krisox

hi i would like to group rows in categories like that : [URL="http://img199.imageshack.us/img199/9152/capturegww.jpg"]http://img199.imageshack.us/img199/9152/capturegww.jpg[/URL] I konw how to do this with OutlookGroupBy but its not possible to put the same row into severals categories So is there a way to group rows while beeing possible to put the same row into …

Member Avatar for krisox
0
38
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
83
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
243
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
59
Member Avatar for rajdey1

Hi All I am trying to write Asynchronous client-Server Socket program in which whenever a client is connected to server a Windows Form is created which has a textbox and two buttons......on Data recieved by server from client the data is written in respective windows Form textbox and if a …

Member Avatar for nick.crane
0
206
Member Avatar for c0deFr3aK

Hi everybody please help me on how to code this in C#. I have an ASP.Net Web project and needs some C# code behind. Working some variables: In my VB.Net it looks like this: [CODE] Dim str1 as String Private Sub Button1_Click(...) str1 = "some text" 'This will be assigned …

Member Avatar for Lusiphur
0
149
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
122
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
229
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
130
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
236
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
278
Member Avatar for jimJohnson

I need some serious help as I am on a deadline for tomorrow afternoon. I will give the instructions for the program followed by the code that I have... Create a utility that transfers words that are palindromes in the input file into the output file. Place a space between …

Member Avatar for StuXYZ
0
135
Member Avatar for hotness

Question 1 In C++, no name is associated with the pointer data type. True False Question 2 The statement int **table; declares table to be a pointer to a pointer. True False Question 3 Which of the following arithmetic operations is allowed on pointer variables? a. Modulus b. Multiplication c. …

Member Avatar for mrnutty
0
2K
Member Avatar for RobBrown

Hi guys I need some help with an idea i have. I work for a company that does monthly audits of items in a grocery chain. I have all my field reps setup to use excel files to complete their audits and then they send them to me. At the …

Member Avatar for RobBrown
0
156

The End.