51,593 Topics

Member Avatar for
Member Avatar for Aghtar

Hi, ive been trying to get this code to work, but the calculations just doesnt work. it gives me something like 1de00067 something like that. I seriously dont see the error :/ Any help is appreciated. P.S. is it something about: "Initializing the lenth and the width?" i dont remember …

Member Avatar for Aghtar
0
126
Member Avatar for DoubleZ

Hello, so I recently started reading on arrays and I have an assignment to make a program that removes the necessary elements from an array of integers so that the array consists only of increasing integers, for example, transform {2,3,5,1,6,2,3} to {2,3,5,6}. Now, I do not know of any possible …

Member Avatar for sreejithbabu
0
212
Member Avatar for clorofaysal

i got this error in the arrow line.help me out. [CODE]void stack::push(int x) { /*->>>>>>>>>> */ nodeType *n=new nodeType(int x); n->next=this->head; this->head=n; length++; }[/CODE] it is stack.cpp file

Member Avatar for Ancient Dragon
0
61
Member Avatar for infantheartlyje

I want to develop report engine in C++. Frankly I don't know any thing now about reporting engine. I know some of C++ features only (up to File handling). Can anyone guide me to develop report engine in C++? My display engine will ask my report engine to send some …

Member Avatar for thines01
0
240
Member Avatar for stereomatching

According to "modern c++ design", "effective c++", boost and loki. I believe that policy based design is very powerful(not mentioning about TMP yet). The idea of policy is pretty straight forward and easy, you don't need to be a template wizard or know TMP very well before you could use …

Member Avatar for stereomatching
0
398
Member Avatar for wnr78ta

Hi I am doing an assignment and my professor gave us the code for a copy function for a doubly linked list. The function should copy list into another empty list and if the list being copied is empty it should just return and exit. Here is the code my …

Member Avatar for wnr78ta
0
919
Member Avatar for optimus_prime_1

please tell me how to remove the error of iota undeclared as shown in attachment file

Member Avatar for vijayan121
0
146
Member Avatar for Despairy

i studied c++ before c guess that was my mistake... i try to read from a file a set of strings and put them in the new allocated array, i do not understand what is the main thing this code isnt working. i get segmentation fault... and even trying to …

Member Avatar for Narue
0
2K
Member Avatar for tonic22

[CODE]#include <iostream> using namespace std; struct account { account(); int accountnum; float balance; float interestrate; }; account::account() { accountnum = 50; } struct account2 { account2(); account * data; void test(); }; account2::account2() { } void account2::test() { data->accountnum = 1000; } int main() { account test; account2 test2; cout …

Member Avatar for LevyDee
0
130
Member Avatar for hallmat

Hello, im trying to make a program that opens up jpeg files one at a time and look at there brightness and then if its past a threashold moves the file to a "keep" folder if not moves it to a "varify" folder im new to C# so im not …

Member Avatar for hallmat
0
403
Member Avatar for FiToKa

Hello, everybody. I'm stuck on an assignment I've been given recently. Looks like I've missed many lectures in programming. Here's the thread. I'm just asking for some hints, really, I'd appreciate that. [B] The problem:[/B] Write a complete program with at least one example for using all interface functions of …

Member Avatar for FiToKa
0
147
Member Avatar for harde

Slot Machine I got all this so far !!! Nex is .. First build in support for writing output to an output file. 2 Make a copy of your existing program and modify the new program to be array based or to use functions or both. It does not have …

Member Avatar for sushlet
0
157
Member Avatar for brsharvari

can u please provide me with a c/c++ program to add a user to MySQL and allow him to only insert into the database

Member Avatar for ushapriya
0
255
Member Avatar for spicyrelish

I need some help to bebug some C++ code. I can't see any obvious errors but my compiler reported 36 errors. I think they are all relating to the first error I'm getting from inside the State class. It says: "changes meaning of 'State' to 'class State' but I'm not …

Member Avatar for mrnutty
0
138
Member Avatar for mbirum

Hello, I have a project in which I have to write a client program for the finger protocol. It's a very, very basic program which covers the basic socket() connect() connectToHost() and read()/write() functions. I am having a small problem which I cannot figure out. My program compiles perfectly, no …

Member Avatar for mbirum
0
211
Member Avatar for Zssffssz

I need to read one wide Charecter(wchar_t) from a file once but it says: "ambiguous overload for 'operator>>' in 'WER >> mont' The part that also confuses me is that it writes the Charecter just fine. It is only one Charecter not a string if that makes a difference. Thanks.

Member Avatar for Zssffssz
0
439
Member Avatar for skylinedrifter

Here's the the question... 1. Declare an enumeration type consisting of the nine planets in their order by distance from the Sun (Mercury first, Pluto last). 2. Write a value-returning function that converts the name of a planet of the enumeration type declared in Step 1 into the corresponding string. …

Member Avatar for mrnutty
0
863
Member Avatar for spar

►Write a class implementation for a class Student that contains the data members: 1. Data member for the student Name. 2. Data member for the student Number (ID). 3. Data member for the student Faculty. 4. Data member for the student Gender (M or F). 5. Data member for the …

Member Avatar for XMasterrrr
0
326
Member Avatar for f4fjks

Hey All! Can Any one help me in getting an idea what to make for a computer programming project? Thanks!

Member Avatar for StuXYZ
0
122
Member Avatar for dsmey

Hi all, I'm trying to create a simple function in MS Visual Studio which would take a function and a range of values, divide that range into 500 equal steps, and barf out the results to a CLR richTextBox. The function looks like this: [code]void Form1::Range(double from, double to, double …

Member Avatar for Narue
0
174
Member Avatar for MrEARTHSHAcKER

Hi, I created the class for converting decimal to binary numbers and I wish to make the Windows application but there's an error: [ICODE]E2285 Could not find a match for 'TForm1::TForm1()' [/ICODE] The source code: [CODE]//--------------------------------------------------------------------------- #include <vcl.h> #include<math.h> #pragma hdrstop #include "Unit1.h" //--------------------------------------------------------------------------- #pragma package(smart_init) #pragma resource "*.dfm" TForm1 …

Member Avatar for MrEARTHSHAcKER
0
204
Member Avatar for evilsilver

c++ I am making a game and decided to put in a bogus company animation thing, kinda like Blizzard does, but need to find a way to play the file that we made without going on in the code. ie it comes to the line to play the file (c:\evilsilver.avi) …

Member Avatar for omid80
0
180
Member Avatar for jwalker25

#include <iostream> #include <iomanip> using namespace std; void addNodes(); void displayList(); struct vote { char candidate[7]; int votes; double percent; vote *votePtr; }; vote *startPtr = NULL; vote *current; int i,j; int main() { vote *startPtr = NULL; cout<<fixed<<setprecision(0); cout<<"Enter the number of candidates: "; cin>>j; addNodes(); displayList(); return 0; …

-1
46
Member Avatar for Taino

Hi, I have an assignment that requests that two integers be provided in a range and that these numbers should be checked if they are prime or not. I am having the following problems with my code. a) [U][COLOR="Red"]the number 4 shows up in my calculation and four should not …

Member Avatar for Clinton Portis
0
159
Member Avatar for sohair

Hello guys this is my first post I was having trouble interfacing a remote controlled car using serial port I have made the circuit for interfacing the serial port with the relays to control the car remote but the problem is that I need to make a C++ or C …

Member Avatar for raptr_dflo
0
355
Member Avatar for coolbeanbob

This is a lot of code, but most can be ignored. I am just having a problem with using templates/types. main.cpp(48) : error C2664: 'HashTable<Entry>::insert' : cannot convert parameter 1 from 'int' to 'int &' There is basically a type mismatch between line 48 of main (int) and the HashTable::insert …

Member Avatar for raptr_dflo
0
494
Member Avatar for kodemaaster

I am declaring a structure as this [CODE]typedef struct Request { deque<int> roomsList ; }Request;[/CODE] Then , in some other function I get a segmentation fault in the highlighted line : [CODE] int initRoomsList(Request *R) { int roomSatisfying ; char roomName[20] ; int roomNum, capacity,wb,proj, lcd, sound, aud, vid , …

Member Avatar for raptr_dflo
0
2K
Member Avatar for thenewbiecoder

These are my homework questions. I have attempt to do most of it and I need somebody to check to see if im doing this right. 1. Given the following declaration for a TestScore class, write a derived class declaration called IDScore that adds an integer student ID number as …

Member Avatar for raptr_dflo
0
211
Member Avatar for mrnutty

This code below add two positive numbers in any base from binary to base 36 with any length allowed by memory. The snippet comes with examples. There might be some bugs, because I haven't tested extensively, so forgive me if you find bugs. Hope people find it useful somehow. Thanks …

Member Avatar for Tumlee
0
690
Member Avatar for PapaGeek

I’m an old fashion Visual Studio 6 C programmer. I’m writing my first 2008 Form application using C++. The application will be able to run multiple instances at the same time. The first tool will be a selection box where you can chose the project you are working on with …

Member Avatar for PapaGeek
0
127
Member Avatar for zekstein

Hello ! I want to make an application ( Win 32 - DLL Output ) That do two things : 1) executes in application with system( "C:\blalblala\lol.exe" ) 2) sends an email at 1 ) it is working but i don't wait to wait for exit ( ex : if …

Member Avatar for thines01
0
105
Member Avatar for dolfan55aj

We have to do a level order traversal of a max-heap and I'm having some trouble. Of course a regular level order traversal in a heap is easy as can be (it's an array of course) but now I have to print it in a sort of tree structure. For …

Member Avatar for vijayan121
0
175
Member Avatar for coroche

Hi I'm trying to write a program that will print the results of the series sqrt(1), sqrt(1)+sqrt(2), sqrt(1)+sqrt(2)+sqrt(3),...., sqrt(1)+sqrt(2)+sqrt(3)+...+sqrt(n) where n is chosen by the user. The output should look something like 1, 2.414, 4.146, 6.146, 8.382, 10.831, ..... Here's what I have so far [CODE]#include <iostream> #include <cmath> using …

Member Avatar for coroche
0
138
Member Avatar for XodoX

Does anybody know of a good site where I can learn how to do linked lists and use multiple linked lists together? The sites I found weren't any good. I'm not getting it. I'm just the kind of person who needs to get it spoon-fed and detailed sometimes.. I would …

Member Avatar for myk45
0
53
Member Avatar for prithvisrini

Hi, I have declared a function as virtual in base class. In derived class I am overriding the same function. According to me function in derived class should have been executed when I make a call to the function. But the base class function is executed. Does anyone knows why …

Member Avatar for prithvisrini
0
104
Member Avatar for skylinedrifter

Hey fox... got a problem in codding im a newbie at this so take it easy on me ... The question Write a C++ program by completing the following steps: Write a value-returning string function called MonthAbbrev that takes an int value as a parameter. The parameter, month, represents the …

Member Avatar for richieking
0
149
Member Avatar for roshan_iiita

I am working on Hand Gesture Recognition System and I want to generate keystrokes for any application using gestures as input. But i am not getting any idea that how can i make this work on both Linux and Windows platform, as keybd_event is there for Windows but it doesn't …

Member Avatar for roshan_iiita
0
334
Member Avatar for iamthesgt

This is another homework problem. I thought it was easier, and I wouldn't need help, but I keep getting a segmentation fault when running the program. The assignment is to use a recursive function to output the amount of candybars we can buy with a user-inputted amount of money. Each …

Member Avatar for markshah2
0
632
Member Avatar for lavenzo

hi, i having some problem here. I have a DLL written in C# but I need to re-write it in C++ using visual studio 2005. I have no C++ language..o.O so could some one help guide me? help translate my code..should i use new project > 'Class Library' project or …

Member Avatar for thines01
0
2K
Member Avatar for Dakot

hello , i'm trying to solve this problem [QUOTE]Create a program which generates fibonacci series till a number 'n' where 'n' is entered by the user. For eg. if the user enters 10 then the output would be: 1 1 2 3 5 8 (beginner)[/QUOTE] the problem is that the …

Member Avatar for WaltP
0
184
Member Avatar for triumphost

I have a file that has the layout: [CODE] 0 0 0 1 1 0 1 1 [/CODE] I want to read it into a multidimensional array and use the values. The thing is I don't know how to read it in.. I can read the amount of columns and …

Member Avatar for triumphost
0
245
Member Avatar for coolbeanbob

Hello all, I have created an array of linked lists called hash_array[]. I am trying to write a search function. I am getting compiler errors on line 7 & 9. They are below. Line 7 warning C4018: '<' : signed/unsigned mismatch Line 9 error C2784: 'bool std::operator ==(const std::list<_Ty,_Ax> &,const …

Member Avatar for triumphost
0
81
Member Avatar for efronefron
Member Avatar for slygoth

Sorry to post this here How do I write a query to double the `buyprice` of every item that costs less than 20US. Can someone help me with this please. I had UPDATE Account SET buyprice This is where i got stuck been searching google but couldnt find it

Member Avatar for Ancient Dragon
0
66
Member Avatar for seraphina

[CODE]#include<iostream> using namespace std; int main() { int num,factorial(int n) ; cout<<"Enter a number "<<endl; cin>>num; } for(n=0;n<100;n++) { cout<<""<<n<<endl; system("pause"); }[/CODE] where i do wrongly? why i cannot compile?

Member Avatar for rubberman
0
279
Member Avatar for deeps2_daniweb

i made a program in dev c++ to merge contents of two files into a single file but the merged file is showing garbage outputs. question:- Write a C++ program to merge the content of two files namely “Employee.txt” and “Salary.txt” into “EmployeeDetails.txt”. Sample contents of Employee.txt EmployeeName EmployeeNumber Department …

Member Avatar for raptr_dflo
0
2K
Member Avatar for Adnan671

So, it sorts the books by price just fine, but I cannot get it to sort the books by title. I am most likely over thinking this, but I've spent a couple hours trying to figure it out. I've looked online and couldn't find the answer. I'm guessing the problem …

Member Avatar for raptr_dflo
0
3K
Member Avatar for coolbeanbob

Hello all, I am trying to write the constructor for the HashTable class, so it will create an array when a HashTable object is created. With the code below, I am getting the errors: error C2466: cannot allocate an array of constant size 0 error C2133: 'arrayTest' : unknown size …

Member Avatar for coolbeanbob
0
89
Member Avatar for knowill
Member Avatar for raptr_dflo
0
242
Member Avatar for ThePolid

[code]#include<stdio.h> #include<stdlib.h> main() { float num,a,b,c,d,e,f; do { scanf("%f",&num); getchar(); } while (num>=0.75); a=0.0; b=0.0; c=0.0; d=0.0; e=0.0; f=0.0; if (num%2.0!==0) { a=num/2.0; num=num%2.0; if (num%1.0!=0) { b=num/1.0; num=num%1.0; if (num%0.50!==0) { c=num/0.50; num=num%0.50; if (num%0.20!==0) { d=num/0.20; num=num%0.20; if (num%0.10!==0) { e=num/0.10; num=num%0.10; if (num%0.05!==0) { f=num/0.05; } } …

Member Avatar for raptr_dflo
0
222

The End.