49,761 Topics
| |
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 … | |
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 … | |
Using an initialization list for a class array variable, what do you use to setup a slot with a 3parameter Ctor? | |
How does an array variable indexing expression differ from an array definition size expression? | |
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 … | |
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 … | |
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; … | |
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 … | |
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 … | |
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 | |
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 … | |
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? | |
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 … | |
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. | |
**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) … | |
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 … | |
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. … | |
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 … | |
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 … | |
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 … | |
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() == … | |
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 … | |
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); … | |
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, … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
please help me for making this project you guys is my only hope <3 |
The End.