132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for red10975

hi, I'm a beginner as far as c++ and i need help on writting a program. [B]Given[/B] sin x = x – (x^3/3!) + (x^5/5!) – (x^7/7!) + (x^9/9!) ….. where x is in radian. cos x = 1 – (x^2/2!) + (x^4/4!) – (x^6/6!) + (x^8/8!) ….. where x …

Software Development c++
Member Avatar for vmanes
0
176
Member Avatar for s0312001

:sad: Hello guys, This is my first topic in this forum.. I need your help, I am trying to develop an Arabic voice recognition application using vb 6, does anyone know the code or what add on I should download, I am a total beginner… ((All I want it to …

Software Development visual-basic
Member Avatar for tigerwolf
0
1K
Member Avatar for tyserman5674

Hi All, Can anyone please help me out here? I have been trying now for about 6 hours on trying to convert this code from vb.net to asp.net [code] MessageBox.Show("Press OK To Continue..", "Mortgage Amortization Table", MessageBoxButtons.OK, MessageBoxIcon.Question) [/code] All I want to do is after displaying 20 lines of …

Software Development asp.net vb.net
Member Avatar for sierrainfo
0
191
Member Avatar for NinjaLink

Hello. I'm having 2 difficulties... 1) I am trying to print out a string with spaces... Functions used: addSong and printSong For ex: (This is not the whole code...I'm pointing out the functions that it is used in) [CODE=Cplusplus] void addSong(mp3Type*& first, mp3Type*& last) { cout<<"Song title: "; cin>>songTitle; getline(cin,songTitle); …

Software Development c++ linked-list
Member Avatar for NinjaLink
0
214
Member Avatar for forgoodor4awsum

I am needing some help with my CS114 project. I am not expecting people here to do it for me just to help me with it. The project is to do a Sudoku game with a 2d array (9x9) and read in a txt file that the instructor has supplied. …

Software Development c++
Member Avatar for VernonDozier
0
2K
Member Avatar for k59smooth
Member Avatar for WaltP
0
116
Member Avatar for davids2004

I do not want a negative number input for radius, length, width, base, height. How would I do this. My code is below. It should be pretty self explanatory. Thanks. [CODE][code=syntax] #include <iostream> #include <cmath> using namespace std; int main () { double const pi=3.14159; int radius, length, width, base, …

Software Development c++
Member Avatar for davids2004
0
9K
Member Avatar for dougy83

Hi. I have written a small test socket program that uses a background thread that accepts tcp connections and adds them to a connection list that is accessed by main(). When a connection is opened, then later closed, recv() is called (see line highlighted in code below), which throws an …

Software Development c++ visual-studio
Member Avatar for dougy83
0
232
Member Avatar for koman

[code=cplusplus] int main() { string name; cout << "Please enter the filename of the encoded message:"; getline(cin,name); ifstream infile; infile.open(name.c_str()); if (infile.fail()) { cout << name << " fail to open." << endl; exit(1); } cout << name << endl; cout << " File successfully opened" << endl; string buffer; …

Software Development c c# c++ file-stream
Member Avatar for VernonDozier
0
150
Member Avatar for l_03

actually,,this is not my whole code..i just post the important one,,i am having problem with my code....i dont know how to figure out,,, everytime i am trying to withdraw and deposit..,,the balance will always be zero,, and i dont know how to figure it out.... [code] import javax.swing.*; public class …

Software Development java java-swing
Member Avatar for BestJewSinceJC
0
158
Member Avatar for risa

hi, I get a crash as "Unhandled exception at 0x5f4335bb (MFC42D.DLL) in VMFirewall.exe: 0xC0000005: Access violation reading location 0x00000000." in D:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\src\mfc\appmodul.cpp in _tWinMain() funtion at call of AfxWinMain(hInstance, hPrevInstance, lpCmdLine, nCmdShow); This crash is in both debug and release....i have tried ignore of mfc42D.lib and mfcs42d.lib....but …

Software Development c++ microsoft-access visual-studio
Member Avatar for risa
0
404
Member Avatar for clutchkiller

My dev-c++ compiler is telling me that ios::noreplace is not a valid member of std::ios. Why?

Software Development c++ ios
Member Avatar for clutchkiller
0
95
Member Avatar for skatamatic

Well, this is for the same assignment as my last post. It's just a simple implementation of a bunch of Algorithm functions. It throws a runtime exception at the end saying the stack around the b variable was corrupted! I commented out all the lines with that use the b …

Software Development algorithm c++
Member Avatar for skatamatic
0
136
Member Avatar for skatamatic

I'm working on an assignment for school where my teacher wants me to convert each member of an array of a class if it's int member is greater than 300. I can make it work for the first value of 300, since that's what find_if returns. But how do I …

Software Development algorithm c++
Member Avatar for skatamatic
0
190
Member Avatar for nectionplayer

How do you read from a file using C programing

Software Development c
Member Avatar for John A
0
98
Member Avatar for kevintse

int& fun(){ int a = 10; cout << &a << endl; return a; } int main() { int& r = fun(); cout << r << endl; cout << &r << endl; return 0; } outputs of the code above are: 0xbf8567b4 10 0xbf8567b4 and when i change `int& r = …

Software Development c++
Member Avatar for kevintse
0
74
Member Avatar for Paramecium

First of all, I'm a total beginner which is the reason that probably my code contains a few simple and dumb mistakes...but how you see I'm working on it ;) My task is to write a program that contains a queue which will be returned in reversed order. But my …

Software Development python queue
Member Avatar for bvdet
0
109
Member Avatar for altrim

hi everyone i am new to C++ need help; //Write a program that for 5 books with this atributes //books name //authors name //publishing year //book price to be selected only the books from the same year typed by the user(using structures) |

Software Development c++ publishing
Member Avatar for VernonDozier
0
133
Member Avatar for darren2005

Can anyone let me know how I could include a variable within a system command? (This is a win32 project and not an application.) I am using: (some code taken out) [ICODE] system(("set path=%path%;"[COLOR="Red"]+user[/COLOR]).c_str()); system(("set CLASSPATH=.;"[COLOR="Red"]+usertwo[/COLOR]).c_str()); system(("java -Djava.security.manager -Djava.security.policy="[COLOR="Red"]+user+[/COLOR]"\examplepolicy Xsys").c_str());[/ICODE] Thanks in advance!!!

Software Development c c# c++
Member Avatar for darren2005
0
578
Member Avatar for JustLearning

I am having a problem writing the last part of my code for this program. There is a DFS function that I need to write that is included in the header file of the graph.h my program. Here is the sample of code that my instructor gave me. [code=c++]template<class VertexType> …

Software Development algorithm c++ queue
Member Avatar for JustLearning
0
192
Member Avatar for Zach101man

Objective: Write a C program that will accept an infix expression from the user, build an expression tree using the algorithm described in class and then traverse the tree recursively three times to produce the prefix, infix and postfix expressions. Notice that the infix expression produced from the tree should …

Software Development algorithm c legal objective-c queue
Member Avatar for ddanbe
0
104
Member Avatar for bf2loser

I'm getting an unresolved symbols linking error with this code, the cpp files compile successfully separately, I just can't build the solution and run it. any ideas? header.h [code=c++] #include <iostream> #include <string> using std::string; using namespace std; class Double { private: double dub; char str[50]; public: Double(); Double(char s[50]); …

Software Development c++
Member Avatar for bf2loser
0
207
Member Avatar for minas1

[code=C++] int MAX_NUM = 600851475143; int max = 0; vector <int> ints; for(int i = 1; i <= MAX_NUM; ++i) if((int)MAX_NUM % i == 0) ints.push_back(i); cout << "size = " << ints.size(); [/code] I get 0. Something is wrong. I get 2 warnings: warning C4305: 'initializing' : truncation from …

Software Development c++
Member Avatar for Alex Edwards
0
127
Member Avatar for dblbac

i was given this question by my instructor and i am completely in the dark on what to do. i have been trying to figure out what to do but couldn't find anything in the book that really explained it. any help with this would be greatly appreciated. explain what …

Software Development c++
Member Avatar for minas1
0
145
Member Avatar for bajanpoet

How do I stop a combo box from firing the SelectedValueChanged event when the DataSource property is added?

Software Development vb.net
Member Avatar for bajanpoet
0
146
Member Avatar for christiangirl

Hello, I'm having trouble with this program. What I have to do is open a file(in this case link.dat) and then the user chooses what they want to do, take something out of it, add somethng to it, print it. It opens the file fine, but then I cant get …

Software Development c++ file-system ios
Member Avatar for christiangirl
0
94
Member Avatar for elsa87

please help me write a function which will return the last element in an unsorted list. the prototype of the function should be ItemType ReturnLastItem(); we should assume that the list is not empty ans it shouldnt change after the program is executed.. pleeeeeeeeease help me

Software Development c++
Member Avatar for Narue
0
143
Member Avatar for andrewama

Hey guys i was just wondering i have a code that will allow you to output times 4 different ways but instead of times i want it to output dates 4 different ways. [code=C++] #include <iostream> using std::cout; #include <iomanip> using std::setfill; using std::setw; using std::endl; #include "Time.h" // include …

Software Development c++
Member Avatar for Lerner
0
95
Member Avatar for davids2004

I am trying to write a program that can be used to display two random numbers to be added together. This program should wait for the answer to be input. If the answer is correct display a statement that says that is correct. If the answer is wrong it needs …

Software Development c++
Member Avatar for davids2004
0
403
Member Avatar for localp

can some one help me write a program, that works when passing 3 values (r g b value), to a Color class and outputs its corresponding colour.. please help me by giving a sample code and the output ...

Software Development java
Member Avatar for Ezzaral
0
124
Member Avatar for SQ89

Create a class called Employee that includes three pieces of information as data members – a first name (type string), a last name (type string) and a monthly salary (type int). Your class should have a constructor that initializes the three data members. Provide a set and a get function …

Software Development c++
Member Avatar for SQ89
0
549
Member Avatar for DragonReborn225

hey guys, I've seemingly exhausted all the possibilities within my limited knowledge, so I'm coming here for some assistance. heres the problem: Read the 20 students info into an array, assign the relevant grade, find the highest score, and print out all the names/scores in addition to the student/s of …

Software Development c++
Member Avatar for Lerner
0
170
Member Avatar for Foe89

Here's the problem, questions at the bottom. Write a program that uses a structure named MovieData to store the following information about a movie: Title Director Year Released Running time (in minutes) Include a constructor that allows all 4 of these member data values to be specified at the time …

Software Development c++ data-structure
Member Avatar for Lerner
0
162
Member Avatar for gammavn

I meets some problem with downcast in c++ programming language. Thus, I needs your help. My program has 5 classes. They are Employee (abstract class),Salary:public Employee,Hourly:public Employee,Commission:public Employee and BasePlusCom:public Commission. In main() function,I used vector<Employee*>employees[4]; Then I assigned values to employees. ........ And I used structural syntax BasePlusCom* ComPtr=dynamic_cast<BasePlusCom*>(employees[i]); …

Software Development c++
Member Avatar for vijayan121
0
189
Member Avatar for sivak

can any one tell me how to write the query to find out first 6 highest salary from table note: not 6 th highest salary ....

Software Development sql
Member Avatar for james_zheng
0
113
Member Avatar for number87

ok basically what my program is about. I am to create a program that allows users to input aircraft/cargo details, add the cargo to the aircraft(up to 20), and a function to display all the cargo on that aircraft. So the main problem i am getting is with the listing …

Software Development c++ oop
Member Avatar for minas1
0
122
Member Avatar for anny**

hi friendzz !! here is my program giving warning (possible use of 'ch' before the defination in function ) and also not showing correct o/p plz if anyone can help me [ICODE]#include<stdio.h> #include<conio.h> void main (void) { int j; char ch; for(j=1;j<=5;j++) { printf("enter characters from a to e\n"); { …

Software Development c
Member Avatar for ArkM
0
96
Member Avatar for c++ prog

hi, we have a simple program here that states like this: [CODE] input >= 10 ex: 12 1 Square Sqrt Cube Fouthroot 2 - - - - 3 - - - - 4 5 6 7 8 9 10 11 12 [/CODE] i made the code already but I still …

Software Development algorithm java
Member Avatar for dickersonka
0
87
Member Avatar for leecavcu

Thanks for the help. I have a workbook with VB code in it to add a new line. When I add a new line, the new cells automatically have their respective formulas in it. I also have it set so another worksheet with the same table adds a line. In …

Software Development visual-basic
Member Avatar for leecavcu
0
94
Member Avatar for insertnamehere8

Hi. This is for a phonebook assignment. Part of the assignment involves searching a 2D array. This is the function that reads the phonebook file. [code] void getData(char name[][NAMESIZE], char telephone[][PHONESIZE], char zipcode[][ZIPSIZE], char address[][ADDSIZE], int& size); ~~~~~ void getData(char name[][NAMESIZE], char telephone[][PHONESIZE], char zipcode[][ZIPSIZE], char address[][ADDSIZE], int& size){ int …

Software Development c++
Member Avatar for insertnamehere8
0
229
Member Avatar for sniper1983

Hi there, I'm wondering whether one of you could clarify how to define the maxlength in bits when inserting a parameter in a stored procedure f.ex. What I might do is something like this: [Microsoft.SqlServer.Server.SqlProcedure] public static void CreateUser([B]SqlChars pInitials [/B]... ) { SqlCommand mSqlCommand = new SqlCommand("", new SqlConnection("context …

Software Development
Member Avatar for dickersonka
0
169
Member Avatar for homs
Member Avatar for homs
0
100
Member Avatar for wirth.jason

I want to subclass a python dictionary to create a new class with dynamic keys. In other words the key value is 'property(fset, fget, fdel, doc)'. For some reason the when I get the d['b'] key, a property object is return instead of the function get_b. d['b'] should return the …

Software Development python
Member Avatar for jlm699
0
1K
Member Avatar for Grub

Hi. I am attempting to update a Jtable with details of all the files on my computer. I am running Windows XP home edition version 2002 with service pack 3. Intel(R) pentium(R) 4 CPU 3.20 GHz [ICODE] for (int i = 0; i<r.size(); i++) { Vector v = new Vector(); …

Software Development java
Member Avatar for Grub
0
80
Member Avatar for babusek

[B][/B]HI Folks, Suppose say Class ("DaniWeb") Contains 3 Objects 1.SunSystems 2.Microsoft 3.Yahoo [B]Now user has entered an Object name suppose say (Yahoo) .. and we need to confirm if the User Specified object exists in that class are not , if not we have to create an object with the …

Software Development java
Member Avatar for stultuske
0
120
Member Avatar for sganandhsg

Hi Friends [COLOR="Red"]Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.[/COLOR] I am getting the error while Select the Data... How to clear this type of errors.... Any one Help Me

Software Development visual-basic
Member Avatar for sganandhsg
0
100
Member Avatar for sganandhsg

Hi Friends i have one problem for Selection... I `ll using Totally 20 option button, I need this button for a single Form loading time 10 button value is true and 10 button value is False How do use this process... I `ll select any one button value true... Help …

Software Development visual-basic
Member Avatar for sganandhsg
0
78
Member Avatar for Stefano Mtangoo

Hello all, greetings! I'm python guy and I want to access Lame encoder from python. The big problem is I cannot find suitable lame bindings. After loooong googling and metacrawling, I found py-lame. The problem is, when I try to compile it in codeblocks, python.h is missing. I don't know …

Software Development c++
Member Avatar for Nick Evan
0
100
Member Avatar for l_03

guyzzz,,,help,,i dont know how to call a variable from other class,,could you help me,,huhuhuh,,,i really need your help... i have a class,, this is just a summary... public class BankAccount{ int accountNumber[] = {1234, 2345}; public class ATM{ BankAccount bank = BankAccount(); String accountNum; int accountNum2; accountNum = JOptionPane.showInputDialog("Please enter …

Software Development java
Member Avatar for l_03
0
113
Member Avatar for michux

In thread [url]http://www.daniweb.com/forums/thread157149.html[/url] I was asking for different alternatives for passing a node as a parameter to an XSL stylesheet called from Java using saxon. I set up on using the XdmNode object as a parameter for passing the parameter and here is a code extract: [code=java] // create a …

Software Development microsoft-access operating-system xml
Member Avatar for michux
0
378

The End.