132,726 Archived Topics
Remove Filter ![]() | |
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++ | |
: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 | |
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 … | |
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 | |
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++ | |
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++ | |
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 | |
[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 | |
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 | |
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 | |
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 … | |
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 … | |
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++ | |
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 … | |
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 | |
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!!! | |
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> … | |
![]() | 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 |
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++ | |
[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++ | |
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++ | |
How do I stop a combo box from firing the SelectedValueChanged event when the DataSource property is added? Software Development vb.net | |
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 | |
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++ | |
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++ | |
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++ | |
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 | |
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++ | |
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++ | |
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 | |
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++ | |
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 … | |
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 | |
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 … | |
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 | |
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++ | |
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 | |
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 | |
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 | |
[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 | |
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 | |
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 | |
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++ | |
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 | |
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 |
The End.