49,761 Topics

Member Avatar for
Member Avatar for Nick_11

char patron10(int m , int n ) char patron10(int m , int n ) { for ( int = 0 ; i < m ; i++) cout<< "." ; int a = 0 ; while (True) { cout<< 10*a ; if (10*a >= n) break ; for ( int i …

Member Avatar for Taywin
0
262
Member Avatar for plucesiar

Hi, I'm working through the 3rd chapter of Thinking in C++ Vol 1 by Bruce Eckel (free online). I am using Code::Blocks as my IDE. I've try searching for this problem through the forum but haven't found a solution; I think it might be a IDE-specific problem. The undefined reference …

Member Avatar for tomek3211
0
505
Member Avatar for DS9596

Using an initialization list for a class array variable, what do you use to setup a slot with a 3parameter Ctor?

Member Avatar for rubberman
0
136
Member Avatar for DS9596

How does an array variable indexing expression differ from an array definition size expression?

Member Avatar for rubberman
0
137
Member Avatar for sgw

The following is a similar program I had when having trouble: float x; int n=0; cout << "enter some numbers separated by space; enter 1.2 when done: "; cin >> x; while (x!=1.2) { n++; cin >> x; } The problem is, when using certain numbers as the sentinel (in …

Member Avatar for Suzie999
0
294
Member Avatar for lewashby

Linux Mint 17 I have recently download the SFML library but I don't know where to put the files. There is a lib directory and an include directory. The lib directory appears to have a lot of sym links in it. garrett@mint-desktop ~/Desktop/SFML-2.3.2/lib $ ls -l total 904 lrwxrwxrwx 1 …

Member Avatar for mike_2000_17
0
405
Member Avatar for cambalinho

i'm trying getting the richedit caret positions. seems that i can't use the caret functions. LONG firstCharIndex(HWND hwnd) { POINT pt; pt.x=0; pt.y=0; LONG n = SendMessage(hwnd, EM_CHARFROMPOS, 0, (LPARAM)&pt); return LOWORD(n); } COORD GetCaretPos( ) { COORD pos; //getting the line from caret position: pos.Y=(LONG) SendMessage(consoleedit, EM_LINEFROMCHAR,(WPARAM)-1,0); CHARRANGE cr; …

Member Avatar for cambalinho
0
549
Member Avatar for ShiftLeft

I'm in the process of designing a console personal/business finance package for Linux. It's easy to identify the advantages of data abstraction through classes, but I'm not inclined to become proficient with STL or containers. Exception handling may become a consideration, but definitely memory allocation via "new". My own implementation …

Member Avatar for ShiftLeft
0
1K
Member Avatar for Chris.T

0 down vote favorite I'm using Wireshark packet analyzer & when I filter for all "Websocket" packets I see what I am sending /receiving to the host. When I check individual packets mine always show as [MASKED], but you can 'Umask Payload' which shows the data in clear text that …

Member Avatar for rubberman
-1
483
Member Avatar for OmniX

I know the dos command is "shutdown" then with your parameters of "-s -t xxx" etc. Anyways so "How to shutdown your computer using C++?" Thanks, Regards X

Member Avatar for Alex_34
0
2K
Member Avatar for jxxop1

I really need help creating this program, i am not very good at coding and you all would be a blessing to help me. Thanks in advance! Assignment Create an Aircraft class that has several properties that are common to all aircraft (Ex: number of engines, seat capacity). You define …

Member Avatar for David W
0
522
Member Avatar for DS9596

Define an int array variable named arx with 3 slots, and stuff a 7 in the last slot int arx[2]=7; or is it: int arx[3]; arx[2]=7; Is this correct?

Member Avatar for David W
0
227
Member Avatar for aeck

I am off to a rough start with this program, I have attempted with my best effort, but I am still lost on what I am supposed to do. The program description with sample input and output and my attempt code is below: Program Specification: Build a hash table using …

Member Avatar for Taywin
0
2K
Member Avatar for johans22

how to populate/add & read values to this map?. typedef map<string, map<string,map<string,vector<int>>> > myNestedMap; The combination Key1+key2+key3 is unique.

Member Avatar for Taywin
0
149
Member Avatar for Aldair -

**Well guys , i have a problem , i have got my linked list , it add numbers (to the list) , and show numbers(from the list ) , but i can´t add the numbers of the list , i really need help , if the list would be: 1) …

Member Avatar for Taywin
0
213
Member Avatar for lewashby

When I try to compile the program below in Eclipse I get two erros, ‘const class Fraction’ has no member named ‘n’ & ‘const class Fraction’ has no member named ‘d’ When I compile it on the command line with g++ -Wall FloatFraction2.cpp Fract7.cpp -o FloatFraction I get more errors …

Member Avatar for マーズ maazu
0
561
Member Avatar for DS9596

C++: I'm using Microsoft Visual Studio 2012 and I am not sure what to do about these two errors: 2 IntelliSense: identifier "x" is undefined Error 1 error C2065: 'x' : undeclared identifier Prompt: Make program that reads 20 integers, display that array, and find min, max, sum, and avg. …

Member Avatar for ddanbe
0
382
Member Avatar for DS9596

C++: I'm using Microsoft Visual Studio 2012 and I am really confused and am getting errors. Prompt: Make program that reads 20 integers, display that array, and find min, max, sum, and avg. One method named "read from user file" which will ask the user to input a filename and …

Member Avatar for David W
0
631
Member Avatar for Swaraj_1

In my deisgn I have three classes derived (Der1,Der2,Der3)from a common class (Base1) in 2/3 of these classes have same implementation forvirtual function f1(). i.e f1() shares same implementaion for Der1, Der2 . and NO IMPLEMENTATION for Der3. so I kept f1() implementation in base class Base1, and in Der3 …

Member Avatar for ddanbe
0
145
Member Avatar for robotnixon

First off, happy thanksgiving everybody. Second, my program has problems. I've discovered a horrible way (for me anyway) to design and my attempts to fix it aren't getting any where. I have to design a roman numeral calculator (input romans, output romans) with at least two functions (decimal->roman, roman->decimal). I …

Member Avatar for Edwin_6
0
1K
Member Avatar for playst205

Hi everyone I need help with something i get this error fatal error C1075: end of file found before the left brace '{' at 'c:\documents and settings\navideeah\desktop\maplestoryserver\maplestoryserver\mapleisland.cpp(350)' was matched and i get the error around here [code=cplusplus] void NPCsScripts::npc_22000(NPC* npc){ int state = npc->getState(); int map = npc->getPlayerMap(); if(npc->getPlayerMap() == …

Member Avatar for kuroshmokhtari
0
8K
Member Avatar for tgreiner

I've created a program that reads lines from the text file. Each line is parsed to find a command and parameters that are executed. So, the essential code goes something like this: while (getline(script, scriptline)) Parse Scriptline Execture Scriptline Function This works very well for most functions. Until I get …

Member Avatar for David W
0
230
Member Avatar for LibraryCode

How would i fix the search function? AVL.h: #pragma once #include<iostream> #include<stdio.h> using namespace std; template<class T> struct TreeNode; template<class T> class AVLType { public: AVLType(); void InsertItem(T item); void Insert(TreeNode<T>*& tree, T item, bool & taller); void RotateLeft(TreeNode<T>*& tree); void RotateRight(TreeNode<T>*& tree); void RightBalance(TreeNode<T> *& tree, bool & taller); …

Member Avatar for tinstaafl
0
2K
Member Avatar for ParPau

Dear All, I am trying my hand at a hand writing recognition tool. I managed to find a database of numeric characters on the internet; [http://www.codeproject.com/Articles/16650/Neural-Network-for-Recognition-of-Handwritten-Digi] Does anyone know of or have (and willing to share) or lead me to a database of alphabetical hand writing characters ? As always, …

Member Avatar for ParPau
0
250
Member Avatar for DenisOxon

I need to interface to a USB device from VB.net, where I both read and write to the device. Are there any programing differences between the different USB interfaces, i.e 1,2 and 3 that I should be aware ? Does it matter if say a USB 3 device is plugged …

Member Avatar for rproffitt
0
262
Member Avatar for new_developer

Hi there, I am stuck in a problem in which my function rounds off a decimal point number upto 4 decimal place and return a 0.0000 number. But when i compare this returned number to 0 it did not return true in if condition. Please check my code below and …

Member Avatar for rubberman
0
12K
Member Avatar for snehil_1

I had created my Qt C++ application and now I am thinking to provide it as a plugin or as library in Eclipse. I know there is CDT plugin, but I don't won't to write my code again. Is there any way to achieve this? Snippet for QPushbutton in qt …

0
107
Member Avatar for Duki

Hey Everyone, I'm doing a little test for a presentation I'm giving on Tuesday. I wanted to show the performance difference between VB2008, C# and C++. To do this, I have three programs. Each program performs the Fibonacci sequence X times, and can either do it iteratively or recursively. As …

Member Avatar for Loïc
0
932
Member Avatar for Hamza_9

Hey guys!! I have my semester Project on Libaray database and they asked me to bring Class diagram of the project. Its just that i am confused how to make that ? Can anyone help me in that or give me an example of that

Member Avatar for rproffitt
0
161
Member Avatar for christian_5
Member Avatar for rproffitt
0
62

The End.