49,757 Topics

Member Avatar for
Member Avatar for Nathaniel10

I am reading the first chapter on graphics in the Stroustrup book. He explains that we students will need to download the files of a GUI toolkit in order to run programs containing graphics. He recommends the "Fast Light Tool Kit, FLTK" because the book's programs are based on that …

Member Avatar for usagi
0
111
Member Avatar for amt@

given [3][3] array it's requried to fill it's elements as following: first row will acccept only even number. second row will accept only odd number. third row will accept only prime number.

Member Avatar for kes166
-1
65
Member Avatar for Supriyo

Hello. Apart from practice and books (like C++ coding standards by Sutter and Alexandrescu) what is the fastest and surest way to acheive coding standards in c++? Supriyo

Member Avatar for xtrmR
0
350
Member Avatar for malvi

Hello everyone, I have done my programm with visual studio 2010 MFC. In my programm there is 2 timers. and 4 edit controls. My problam is, i cann't change edit control value when timer is running, suppose currently edit box is empty, but i want to write some numbers, but …

Member Avatar for malvi
0
123
Member Avatar for yeungn

I'm getting a segmentation fault when I try to search a linkedlist using the following description: [CODE] //! Searches for the first occurrence of value v that appears in the list //! after node n //! //! @param v The value being searched for //! @param n The node in …

Member Avatar for prvnkmr449
0
164
Member Avatar for jeffcogswell

[ATTACH=RIGHT]17350[/ATTACH]Since the release of the second edition of Parallel Studio this month, I've spent a good amount of time with it, trying out the new features. First, what's Parallel Studio? It's an add-in for Microsoft Visual Studio that gives you a large set of features for writing parallel code that …

Member Avatar for saahiloberoy
4
671
Member Avatar for tomtetlaw

What is the best way to convert a message that windows sends me to a printable ascii character?

0
54
Member Avatar for DSalas91

Hi guys! I'm having a problem with a project in which I analize a .cpp file for certain reasons and I need to create a ifstream Class Variable but I can't! Here in the header I declare the variable, look: [CODE] #ifndef ANALIZADOR2702010 #define ANALIZADOR2702010 #include <iostream> #include <fstream> #include …

Member Avatar for DSalas91
0
189
Member Avatar for corby

Hi guys. For some reason I cannot get the linked list to print. I want to copy it(which works) but I cannot get the list to print after copying it. Any suggestions? [CODE]#include <iostream> using namespace std; struct node { int info; node* next; }; int main() { node* list; …

Member Avatar for chiwawa10
0
186
Member Avatar for jeffpro

hey guys, I need this Var1 = 0; Sleep(500); Var1 = 1; My problem is that the Sleep makes all my threads sleep. I want only the one thread I'm in sleep. Thanks, Jeff

Member Avatar for chiwawa10
0
116
Member Avatar for burcin erek

hello it is easy program but there is a mistake in void application while printing the birthday, pt pointer gives a mistake why? [CODE]#include <cstdlib> #include <iostream> #include <conio.h> using namespace std; struct Date { int day; int month; int year; }; void printdate(Date* pt) { cout << "\nbirthday= "<<*pt->day<<"."<<*pt->month<<"."<<*pt->year; …

Member Avatar for burcin erek
0
109
Member Avatar for rgutierrez1014

Hey everyone, So in a few of my programs, when I have the user enter input, which then gets stored in a list, there seems to be some error. I use a while loop to allow for continuous input, like [CODE] while (!cin.eof()) { cin >> value; list.insert(value); } [/CODE] …

Member Avatar for chiwawa10
0
106
Member Avatar for Jennifer84

Hi, I have a problem with a random number generating function. This function works great on windows XP but when I run the function in Windows VISTA and Windows 7, I receive an error message that displays: [B]"Attempted to read or write protected memory. This is often an indication that …

Member Avatar for Milton Neal
0
271
Member Avatar for jtylerboy222

Creating a program with a circle class that has 3 private variables and 3 public functions and then have accessor & mutator functions. I know this isn't right, but I've gone through the book and my notes and I feel like I've mixed up a few ways of doing it …

Member Avatar for jtylerboy222
0
102
Member Avatar for Suzie999

Hi all. I recently began to give C++ a go again after failing on the first attempt. I quickly ran into the same problem that led me to C# the first time around. Strings, damn strings. I simply cannot get my head around arrays of charactors, they stress me out, …

Member Avatar for Suzie999
0
120
Member Avatar for parrishnewbie

Hi everyone, I was wondering if anyone could help me figure out this issue I am having with a program I have written. The problem is after you type in the number of days you want to rent the car for if it is less than 0 or greater than …

Member Avatar for restrictment
0
945
Member Avatar for NewLegend

Hello I use 2 linked list ===> Doctor ===>student the First doctor A, has three students Student_1, Student_2 and Student_3. the second doctor B, has one students Student_4. the Third doctor C, has one students Student_5. to linked student, i using this function: [CODE] Doctor * Doct; student *st1, *st2; …

Member Avatar for NewLegend
0
82
Member Avatar for kakaliki

Stuck in this question .I cant spot where i am doing the mistake. Can somebody help me please. thanks. this is the question: ----------------------------------------------- The number of combinations (C) from M items taken N at a time is given by C= fac(M) / [fac(N) * fac (M – N)] where …

Member Avatar for kakaliki
0
204
Member Avatar for Nathaniel10

I am doing an exercise from Stroustrup's book. It is the drill from chapter 10 on input and output streams. The program I wrote compiles but crashes when it reaches the prompt for the output file name. My IDE (VC++ Express) simply says there is an unhandled exception yielding a …

Member Avatar for Nathaniel10
0
154
Member Avatar for gozlemci

Hi there; I hope I post this message in true place.My question is about modules in oop. In Code complete, author Mr Steve McConnell mentioned "module" in page 89. [QUOTE] Semantic coupling The most insidious kind of coupling occurs when one module makes use not of some syntactic element of …

Member Avatar for gozlemci
0
2K
Member Avatar for s080072

i am required to program a remotely piloted vehicle (RPV) that will navigate a given terrain and determine the number of craters and their locations in that terrain.I have a skeleton program....need help finishing it.. [B][U]code:[/U][/B] [CODE]Position class class Position { private: int row; int column; public: Position(); void SetRow(int …

Member Avatar for hag++
-2
84
Member Avatar for daviddoria

Can anyone explain why the last line works? It seems like it is trying to cast a CRectangle as a CTriangle (which I imagine should fail?) but it outputs "5" as the function should. [code] // virtual members #include <iostream> using namespace std; class CPolygon { protected: int width, height; …

Member Avatar for mitrmkar
0
117
Member Avatar for DeShadow

Where can I find the best tutorial for teaching myself all there is to know about programming in C++? I have no money to spend on it and I am extremely new to programming (haven't written a program since BASIC, if you can count that). Any information you can provide …

Member Avatar for Stefano Mtangoo
0
108
Member Avatar for nolife

error LNK2019: unresolved external symbol hi everybody i'm working under visualstudio2005 and i create a new namespase with some fonction ; after i have another class in a different file and when i call myfonction og my namespace i have this erreurs error LNK2019: unresolved external symbol "void __cdecl mynamespace::myfonction() …

Member Avatar for nolife
0
1K
Member Avatar for cdh1944

[ATTACH]17390[/ATTACH] I've no idea how to solve this Q with C. help me~~ plz~~!!

Member Avatar for Stefano Mtangoo
0
156
Member Avatar for ftl25

Hi, How do I check if a member of a struct is null? I've tried: [CODE]if(ErrorInfo->TestName != NULL)[/CODE] The above method returns true even when [B]ErrorInfo->TestName[/B] contains nothing (debug shows it as 0xccccccc, ""). [CODE](!(strcspn(ErrorInfo->TestName, "") == 0))[/CODE] The above method throws an access violation. I've tried other ways too …

Member Avatar for ftl25
0
9K
Member Avatar for badllama

Okay, I’ve got a noob question. It’s been awhile since I coded so I thought I’d start off at the beginning and create a template list and tree. Back in the old days I left the nodes open, but I wanted to keep the data private this time. My first …

Member Avatar for Valaraukar
0
227
Member Avatar for tongdl04

Hello, I am a newbie in C++ programming. I try to write a C++ program to first read and split a hugh text file (that containing multiple small files inside it) into multiple small text files, then I need to write the first line of each small text file into …

Member Avatar for tongdl04
0
556
Member Avatar for homeryansta

[CODE=cpp]void BOARD_Unselect_All(System::Windows::Forms::Form^ Frm) { Frm.a1->BackgroundImage = Image::FromFile("elephant_pla.gif"); }[/CODE] a1 is a picturebox from the form. How do you use the buttons, picturebox, etc from the form being passed in?

Member Avatar for Milton Neal
0
198
Member Avatar for Rajesh1978

Hi, I am new to ACE. I want to use ACE library. I have seen so many codes. But if there is any document which explains elaborately about the macros then it will be useful. Like how to use ACE_DEBUG, ACE_ERROR. READ_MASK etc Please help

0
40

The End.