51,593 Topics

Member Avatar for
Member Avatar for stan lee

hi a set top box is connected with the tv testing the source signal resolution is 720x480i and the tv resolution is 1280x720p... the signal resolution is converted to tv resolution and proper output should be displayed.This was the process Here we have to change different resolution for tv and …

-1
129
Member Avatar for Stefano Mtangoo

Hi there, I need to block port 80 (HTTP for internet). Is there a way to block give socket? Thanks!

Member Avatar for sheva249
0
817
Member Avatar for emilyhedgecock

Basically, its all to do with the inventory system, all the other reams of code work fine, thank God! with the inventory, the idea is that each character can hold 5 items, so an array, but the array needs to hold the itemID and the itemName therefore an array wont …

Member Avatar for Stefano Mtangoo
0
155
Member Avatar for ibdatx

Hi all, I am attempting data binding in WPF. I have a class Recipe and another called RecipeService. There seems a problem with the RecipeService class in terms of compatibility with the Recipe class as when I add its type to the ObjectDataProvider in the XAML file, I get an …

Member Avatar for Antenka
0
491
Member Avatar for Ptap03

Hello, I'm new to this thread but have referenced to it before many times. I have finally joined thanks to all the great responses I have read in the past. Okay, I recieved an assignment which is as follow... "Declare a dynamic array of Person to store the information of …

Member Avatar for VernonDozier
0
461
Member Avatar for ice_tea_lemon

Hey all, Since I am new to this forum I better intorduce myself first. Well, I plan to take C++ in June, but seeing it as being my weakness zone earlier on, I wanna train while I've got the chance. So, I'm studying on my own at home since uni …

Member Avatar for wazcreliars
0
751
Member Avatar for pwp14

#include <iostream> using namespace std; int ScrabbleScore(string word) { int x=0; for(int index =0; index < (int)word.length() -1; index ++) { char ltr = toupper(word[index]); if(ltr == 'A' || ltr == 'E' || ltr == 'I' || ltr == 'L' || ltr == 'N' || ltr == 'O' || ltr …

Member Avatar for gerard4143
0
1K
Member Avatar for ana_1234

This is a friend operator overload function that used addition. It adds two mix fraction by reducing them to simplest form the adding and converting them back to a mixed number [CODE]Mixed operator+(const Mixed& f1, const Mixed& f2) { int newnum, newnum2, gcd, tmpNumerator2, tmpNumerator, tmpInteger, tmpInteger2; Mixed r; tmpNumerator …

Member Avatar for ana_1234
0
434
Member Avatar for exekiel101

my professor has a assignment for us... this is the directions "write a c++ program that declares an array alpha of 50 elements of type float initializxa the array the 1st 25 elemensts are equal to the square of the index variable and the remaining elements are equal to 3x …

Member Avatar for Ryaether
0
92
Member Avatar for ana_1234

So I've been working on this program for a while, I'm finally finish but I have two error that I can not understand why. My first error is when I am declaring the header f [CODE] //------------------- Mixed.cpp -------------- #include <iostream> #include "mixed.h" using namespace std;[/CODE]ile> it keep sending me …

Member Avatar for ana_1234
0
305
Member Avatar for _Nestor

I wrote this code to convert from number in denary to a different base I was curious if anyone has any tips on a better way to write this code I'm always looking to improve my coding and I find others critiques to be a great way of improving. In …

Member Avatar for Schol-R-LEA
0
171
Member Avatar for iloveall

Can you guys help me build conway's game of life? I don't need anyone to build it for me, but if you could help me work through it, I have no idea how to implement the rules correctly. Here is the basic board which I have set up so far.. …

Member Avatar for kes166
0
364
Member Avatar for yznk

im trying to create a short email based program that displays only the subject of each email and how many emails with that specific subject there are. However im having a few scoping errors i cant figure out in my SearchCommunication. Can anyone take a look at it and let …

Member Avatar for kes166
0
170
Member Avatar for glenak

This is a proper beginner's question, as you can tell from the thread's title. I have to say, working with java is so much less frustrating. I created a managed c++ project on eclipse, and created a c++ class. Problem is I can't run any of the codes I write …

Member Avatar for kes166
0
127
Member Avatar for vbx_wx
Member Avatar for mayyubiradar
0
78
Member Avatar for megz_03

Hello. I'm currently working on a project its a database project and i'm the one assign in adding names on the database. For example: when run in c++ Huston, Cher A. Surname First name M.i. what i want to do is that c++ would automatically delete the '.' when the …

Member Avatar for mayyubiradar
0
89
Member Avatar for fukki

Hello! I want to pass array of struct to a function. After from that function to pass it to another function. I made some efforts but without result. Those are some parts of my code i create the structure to my main function [code]airplane ticket[numberOfTickets];[/code] from main function i pass …

Member Avatar for kes166
0
139
Member Avatar for lynnhtet

With keyboard input symbol.depending on which character is entered to print one of the following messages: "It is a figure!" "This is a letter!" "This is not a number and not the letter!" I can't write this programm and please help me if you can.... Thank a lot ...I will …

Member Avatar for kes166
0
103
Member Avatar for diagramatic

Hi there, What coding standards are most important to you? I'm doing a review and would like to get some feedback. Naming conventions, is m_ used these days? Class Names - prefixes, case? Comments - style, on functions? Do people prefer to use == NULL or == 0? Any feedback …

Member Avatar for mike_2000_17
0
186
Member Avatar for codingNewB

Hello Everybody I cannot get my file to open in my eof program. Outlined below is what the program needs to do: 1) Program needs to read from a file (ex. "Data.txt") 2) Program needs to read even & odd numbers down file. (ex. 2 3 12 5) 3) Program …

Member Avatar for codingNewB
0
770
Member Avatar for myk45

Hello, im trying to write a recursive algorithm to generate the following binary sequence. ie basically: for 3: 000 001 010 011 100 101 110 111 i tried the iterative method, it works fine. this is what i did: [CODE]for (i = 0 to pow(2, n) ) { //generate the …

Member Avatar for mrnutty
0
1K
Member Avatar for Archenemie

Basically after every guess i want the loop to run until the user guesses right. This is just a simple number guessing game. I ask the user for more input after every wrong guess but the program ends after the second guess is given. Can anyone help? [CODE]#import <iostream> #include …

Member Avatar for Archenemie
0
210
Member Avatar for burcin erek

pls would you help to draw a circle using with msoftcon.h library. but it does not work on dev-c compiler. i checked the files it does not cover msoftcon.h on dev-c where to find this library for graphical shape. thanks in advance.

0
106
Member Avatar for dhawalruud

Turbo C++ gives an error saying "BGI graphics are not supported under windows". Please help me out...

0
83
Member Avatar for brontok214

write a program that declares three one dimensional arrays named price,quantity, and amount. each array should be declared in main() and be capable of holding 10 double-precision numbers. the numbers to be stored in price are 10.62, 14.89, 13.21, 16.55, 18.62, 9.47, 6.58, 18.32, 12.15, and 3.98. the numbers to …

Member Avatar for daviddoria
0
252
Member Avatar for kominosmash

I'm having trouble trying to figure out how to code an output for the customer when they order a certain item for example: customer orders a number 1 which is a double burger or a number 2 a heap of fried chicken, then they are prompted if they want fries …

0
228
Member Avatar for starpointer123

I'm currently working on a recursive descent interpreter using C++. Though there is already a code on the project, I'm asked to rewrite the Recursive Descent Interpreter implementing it using a list class without using templates and facilites from the standard template library. I already worked through part of the …

Member Avatar for starpointer123
0
188
Member Avatar for hugzzy123

please help me on C++ i already converted decimal to hex this are the instruction write a program that will ask the user to input an integer (4 byte number) n Display the hexadecimal equivalent of n then the reverse byte order of n , Display it on Hexadecimal as …

0
40
Member Avatar for hugzzy123

please help me on C++ i already converted decimal to hex this are the instruction write a program that will ask the user to input an integer (4 byte number) n Display the hexadecimal equivalent of n then the reverse byte order of n , Display it on Hexadecimal as …

0
40
Member Avatar for mtron10

for my computer programming class, we are suppose to create a program that asks the user to enter a file name, and after the file is brought up the next step is for a cloze text to pop up. we are suppose to write the code for that every 5th …

Member Avatar for daviddoria
0
86
Member Avatar for edubar

In Robot.h: #include "Motores.h" namespace SoftRobot { ... public ref class Robot : public System::Windows::Forms::Form { .... public: void ComunicarEnviar(System::String^ EnvDados); private: System::Void Robot_Load(System::Object^ sender, System::EventArgs^ e) { Motores ^newMDIChild = gcnew Motores(); newMDIChild->MdiParent = this; newMDIChild->Show(); } }; } In Global.cpp: #include "Robot.h" using namespace SoftRobot; void Robot::ComunicarEnviar(System::String^ EnvDados) …

Member Avatar for daviddoria
0
174
Member Avatar for timb89

im trying to store preorder tree transversal into a stack though am getting a wide array of errors: to many arguments in void print_order, to many arguments in void preorder, and push has not been declared. any help please! [CODE]void print_inorder(BST *& p, stack <int> *& s);[/CODE] [CODE]void printOutText(BST *& …

Member Avatar for daviddoria
0
100
Member Avatar for lukename

Hi. How can i get handle of button if i don't know it's id? I tried to get it's id with AutoIt and i failed. AoutIt Windows Info doesn't reconsie it as button. I mean i moved cursor on the button and nothing appeared in control tab. Maybe i can …

Member Avatar for lukename
0
141
Member Avatar for slawson01

I am working on an assignment that is to make 2 classes that hold a char* with a constructor to initialize as a new char[5] as the private variable. Both classes do the same thing, but one has a copy constructor defined to do a deep copy and the other …

Member Avatar for nbaztec
0
179
Member Avatar for waway

Hie , Am teaching my self C++ ,this is my first attempt to code..,any ideas.. I am writting a C- program to deal with any two complex numbers. The program must contain at least five functions - Add – to add two complex numbers passed to it - Subtract – …

Member Avatar for waway
0
89
Member Avatar for glenak

I want to begin writing C++ codes in Eclipse. When I try to create a new C++ project I am given the option of choosing an executable project type, a shared library project type or a static library projec type. What's the difference between all these project types and which …

Member Avatar for glenak
0
216
Member Avatar for crodriguez08

Hey there, I'm having trouble creating a multiplication function for the program as I have two classes to keep in mind (Monomial and Polynomial). And if possible, a little advice on how to make my for statements in the arithmetic operators more flexible to user input such as i<PolynomialSize, which …

Member Avatar for crodriguez08
0
2K
Member Avatar for prakash02

i have to crreate a splash screen to display messages at various instance of my project .So any one can provide me an example how to create a singleton instance for the creation of Qt widgets.

0
38
Member Avatar for Baby_girl

hello...i want to ask something about the GUI in c++.. how can i develop the program for stereo vision image using GUI in c++?? i don't have any idea to develop this program. Can u give me any idea to solve this problem

Member Avatar for Stefano Mtangoo
0
32
Member Avatar for YingKang

Don't know why I keep getting error messages. This is first the error message: 5 F:\DPR226\Homework\Customer\Customer.h:3, from main.cpp In file included from Customer.h:3, from main.cpp Could anybody help please? Thanks [CODE] // main.cpp #include <cstdlib> #include <iostream> #include <string> using namespace std; #include "Customer.h" int main(int argc, char *argv[]) { …

Member Avatar for Stefano Mtangoo
0
129
Member Avatar for keeda

Hi, I am trying to read values from a text file that has exactly 5 numbers in each line and all numbers are "tab" separated. numbers could be one digit or two digit. I am reading it as : [CODE] if (map.is_open()) { int i = 0; int num; while …

Member Avatar for nbaztec
0
97
Member Avatar for ganesh_IT

Hi Guys, I am using CDateTimeCtrl in my project.I dont know how to get Date, Month and Year Separatly. If you Know explain me with simple code Thanks in Advance

Member Avatar for Ancient Dragon
0
82
Member Avatar for nubore

[CODE] string CTriangle::TriangleType(string TypeOfTriangle) { if ( ValidTriangle() ) { if ( SideA == SideB && SideA == SideC && SideB == SideC ) { TypeOfTriangle = "Equilateral Triangle"; } if ( int(AngleA()) == 90 || int(AngleB()) == 90 || int(AngleC()) == 90 ) { TypeOfTriangle = "Right-Angled Triangle"; } …

Member Avatar for nbaztec
0
178
Member Avatar for Anthony Ajax

I have to create a program that will read both of these files and print them to the Win32 Console. After it does this, I have to reread the file replacing every fifth word with 10 underscores. My code works correctly for the austin.txt file, but it counts the first …

0
95
Member Avatar for shirleyyu

This assignment will exercise reference parameters, value parameters, and (most important) program decomposition. This program will act as a bank. The general behavior will be: • User walks into the bank • User opens an account. This consists of: o Asking the user for a name. o Asking the user …

Member Avatar for shirleyyu
0
2K
Member Avatar for anthonette

write a c program which takes five names as input and prints them in alphabetical order

Member Avatar for myk45
0
54
Member Avatar for 1bh

Hi guys, So my code is below. This is a simplified version of the shell... It does not continue for ever... I guess its actually rather a program to accept a command.. has the fork and the execve etc. Anyways when i compile it and run it in the terminal …

Member Avatar for abhimanipal
0
242
Member Avatar for networkZombie

Ok so i have to write a program called hailstone numbers. Its basically asking the user to enter a number and if its even divide it by 2, if its odd multiply it by 3 and add 1 and then output the number of iterations. I made my program but …

Member Avatar for networkZombie
0
235
Member Avatar for onako

I store matrix entries in std::vector<double>, such that the reading is row by row. This means, for matrix 1 3 4 8 9 3 3 6 8 1 1 2 2 0 9 8 7 6 the std::vector<double> would have entries: {1,3,4,8,9,3,3,6,8,1,1,2,2,0,9,8,7,6}. To transpose the matrix I use the naive …

Member Avatar for princess cesxo
0
161
Member Avatar for jmcorpse

Hello, I'm a little lost as to how to get the day part of my function to come up properly without a garbage number as it wants to do at the moment. I have everything else working well until it doesn't return the day on line . [CODE] #include<iostream> #include<cmath> …

Member Avatar for kes166
0
125

The End.