199,114 Archived Topics
Remove Filter ![]() | |
I am currently working on a program for Gaussian elimination in Matlab for my numerical analysis class at FAMU. I am having problems understanding my errors in my code. My teacher told me to use a built in gauss elim function that I can not seem to find anywhere. Can … | |
While working on my CS project, I coded the following line: [code] if(...*stuff* || *morestuff* || *evenMOREstuff* || (strcmp(argv[5], "yes") && strcmp(argv[5], "no"){ cout << "Improper arguments." exit(1); } else{ do more stuff} [/code] Where argv[5] is a program argument supplied by the user. Either a yes or a no … | |
Hi! As you can see by my name I'm new to programming. I have a program that only works partially. It consists of two functions. One function creates a text file and reads it and the other one creates a binary file and reads it. The text file part works … | |
I built my website using no Java so I'm quite ignorant. I'd like to use the "send to mobile" button from another site on my own website but I don't know if it's possible to do. Can anyone tell me the code I need to paste into my website to … | |
Ok, so I have an array of objects that have 3 get functions. Get last name, get first name (both strings) and get salary. What I'm trying to do is get a user to enter First name and Last name and it search the array for the persons first and … | |
I'm not too sure why I'm getting memory leaks...hopefully someone here is wiser than me, and can help me find it :P . [code=cplusplus] #include "Canvas.h" CDrawer CCanvas::gCanvas(RGB(0,0,0), 1); int const GREEN(20000),BLUE(50), RED(200), THICK(3); CCanvas::CCanvas(void): _iSize(0), _cptPoints(0) { } CCanvas::CCanvas(CCanvas const & tmpCanvas): _iSize(tmpCanvas._iSize) { if (_iSize > 0) { … | |
| |
Hi guys, I've developed a web app which is to be hosted. Its all about stock trading. A customer can log on and checks his/her account, place sale or purchse order for stocks etc. But I equally want customers to be able to use their cell phones to achieve most … | |
We just started to learn decisions, and I'm confused. Wonder if someone could help me figure this out. In this assignment, you are going to calculate how much a BahnCard costs to buy, using the following rules. * BahnCard25. The card costs 110 euros for a first class card and … ![]() | |
I have to write a program where a user trys to pick a number. The code i've written below always exits after 2 guesses abd says the guess was correct even if it's wrong. Can anyone see what i'm doing wrong? Thanks [code]# include <stdio.h> # define NUMBER 50 int … | |
[code=cplusplus] #include <iostream> #include <fstream> using namespace std; int main() { int numberofemployees; int employeeid, hoursworked; float hourlyrate, grosspay, taxamount, netpay; const float TAXRATE=0.10; ifstream fin("C:\Dev-CPP\employee.txt"); while (!fin.eof() )} fin >> employeeid >> hoursworked >> hourlyrate; cout<<"EMPLOYEE ID IS: "<<employeeid<<endl; cout<<"THE HOURS WORKED ARE: "<<hoursworked<<endl; cout<<"THE HOURLY RATE IS: "<<hourlyrate<<endl; … | |
Hi, I am trying to list all the files in a drive. when i use "*" instead of "C:\*" in findfirstfile() function then it works fine and lists all the files in the current directory but it does not work when i use "C:\*" and does not list files. can … | |
first time here so I'm sorry if I didn't do something correctly. I need to find the total number of floors, rooms on each floor, how many empty rooms there are, occupied rooms on each floor, find occupancy rate, and the "Heartbreak Floor". Which has to display the floor with … | |
Hi, I'm taking a programming class at my school. My teacher gave us a pdf that said "..You will be writing a program that can read a bitmap and insert a secret message into the bytes of the picture in a retrievable way using the picture as a cipher and … | |
Hello Everyone, [U]Scenario: [/U] I have an application where users are required to register to gain access. I want to set an 'automatic timer' on their access so that after 1 month, their access level is set to NULL (which would not allow them to log into the application). [U]Question: … | |
HI guys, I need to create a windows service that runs a constant ping request to a list of servers and puts the data back into a text file for each server. It will read in from a text file with ip addresses in. It will also need to do … | |
Hello, I have a problem with displaying special slovenian letters. 1) I set up in MySQL database charset to utf8, and collate to ut8_general_ci. 2) In my php files which communicate to database, I put next code: mysql_query('SET CHARACTER SET utf8', $db); mysql_query('SET NAMES utf8', $db); mysql_connect is stored in … | |
Iam new to perl. This is my problem. I have calculated the distance using the formula my $distance = sqrt(($x2 - $x1)**2 + ($y2 - $y1)**2 + ($z2 - $z1)**2); and the value of $distance looks like this: 3.72851967944384 5.83210433720111 7.12922562414741 10.2322964186931 11.2073015931579 11.882666956538 14.4465118281196 16.0581479006765 17.2278339903773 Now I have … | |
Hi guys! Well they gave me this work, that says as follows: Write a program to score the paper-rock-scissor game. Each of two users types either P, R, or S. The prgram then announces the winner as well as the basis for determining the winner: Paper covers rock, Rock break … | |
Hello to everyone, I have a database with several representatives in different cities, sometimes there are many representatives in one city. The search is like: [code] sql_representatives.source = ("Select ID, CITY from REPRESENTATIVES Where PROVINCE_ID = " & LST_PROVINCE.ItemData(LST_PROVINCE.ListIndex) & ";" [/code] The above sql return all cities in the … | |
as iframes are now depreciated as of xhtml 1.0 Strict is there away to replace these using Ajax. this is something i have heard off but have never come across and would like to know if this is possible. I have used iframes in the past to display content from … | |
i have a problem creating games with C++, if anyone has a source code in C++, please share with me, i need help, simple game is okay e.g: snake, arkanoid i just need a source code for a simple game, without open GL or something like that (because i can't … | |
Hi, and here i am throwing a "not the exact version" of my problem, but if this is been solved, my problem is done. Lets suppose i am building a application in c++ that will simply display the content of a text file. I absolutely can make the app take … | |
Can anyon help me with the code to delete from file using the delete method or function void delete() { } Thanks in advance | |
Hi I wasn't sure as to where I need to post XSL related questions..Is there anyone in this group who has expertise with XSL? If anyone can help me out with an XSL related question, that would be great. Ani | |
How can i print the lower and upper triangles of matrix Please guide me in writing the code. i don't know even how to start writing the code. Please help. | |
Hello, I am trying to do an export from a table within a mysql database into a csv file where my parameters are a start date and end date...but I am experiencing a few problems... [U]Background:[/U] I have 2 files; testGCR.php and gcrFunction.php. testGCR.php has my form where the user … | |
I would like to work with the MFC classes. As far as I Know these are not included with the Visual C++ express edition but only with the standard edition . can i get these classes for free elsewhere or do I have anyother option? please help. ![]() | |
I have some C code that, when compiled under Linux, works perfectly as a CGI. This same source compiles perfectly with Visual C++ producing an exe. My question is how do I use this as a CGI in a Windows, Apache environment. Can I just place the exe in the … | |
Hi Everyone, Is it possible for a table in MySQL to be updated on a regular basis from an Oracle database? | |
Hi, Could anyone help me with this problem, the following code contains the GUI for a chargeback application which was handed on to me. I want to be able to test the components DC1 and DC2 to make sure information was entered when the btnGenChargeReport button is clicked... :?: I … | |
Hi, I have a web application where the users have to create an account to be able to access the entry form. I have 2 types of users, 1. Admin and 2. User. I have a Java application that is called via a link on the page, but I only … | |
Hello, Does anyone know how to pass a prameter to vb.net program that will run behind an exist vb 6 program. I have been given an instruction to write the new functionality in vb.net and integrate it with vb 6. Many Thanks S | |
Hiii I just made a small [B]Memory game[/B] with the help of many of the members of [I]daniweb[/I].... Now I have a screen clearing problem... The program is simple...The compiler shows random numbers,then the user inputs the number within a time limit... there is a scoring key.... but I want … | |
hi,am a final year student thinking of making an application able to track people from a live camera.the idea is for the application to automatically identify certain actions eg person attempting to enter certain doors etc.in other words the application should be able to know the location of a person … | |
i hv a vb6 form connected to the ms acess... it has multiple tabs so if a user wants to make any one of the two then a unique key should be followed... preferably the key should be followed by the system year as this could be used for many … | |
Hello all! I am just starting Ajax... is there anything i need to install on PC? i already have WampServer 2.0c Thou Ajax doesn't seem to work on it.. thanks! | |
I was wondering if anyone happens to know any good c++ books to learn linked list (single, double, and/or circular)? Something that has explains with code to show how to do it and explanations to the code if possible. | |
The assignment problem below ask me to calculate the number of months it will take to pay off the loan and the total amount of interest paid over the life of the loan. I'm having trouble trying to find the right algorithm for the monthly payments. Could you please take … | |
Hey can there be any reasons for the program that is written to play audio clips is not givin any response!!!! i wrote program correctly but i cant hear any sound from the audio device.. Anyone give solution plzzz!!! | |
It might be an issue with my laptop's IE6 although I haven't ascertained this. Anyway, I'm having a really weird issue. When I open my website in IE6 and click on a link inside that page, the page doesn't load for some reason. I just get the background color and … | |
I need this to been done recursively, it works but I was told that it is not recursive does anyone have any ideas or suggestions [code=language]#include <stdio.h> #include <string.h> #define TRUE 1 #define FALSE 0 main () { char decision; char str[30]; int isPalindrome = TRUE; int choice = TRUE; … | |
hello guys, can anybody help me with smart devices....i need a good website to learn abt this with tutorial and example...can anyone supply me with links??? thanks Gopinath.. | |
Greetings. I encountered a problem in accessing the controls I placed inside the TemplatedWizardStep tag. Here's the code snippet:- [code] <asp:Wizard ID="wizCreateBulk" runat="server" DisplaySideBar="false"> <WizardSteps> <asp:templatedWizardStep ID="Step1" runat="server" Title="Select Recipient Method" StepType="start"> <ContentTemplate> <div> <span>Enter Name: </span> <span><asp:TextBox ID="txtName" runat="server" /> </div> </ContentTemplate> </asp:TemplatedWizardStep> </WizardSteps> </asp:Wizard> [/code] Then, in the … | |
I have an wsdl file, I puted the wsdl file in the app_code folder ("I am using visual studio 2008"), as it is supposed to be it generated the proxy for me. But the proxy file containes object type parameter for all functions even for the functions that are not … | |
I have written a program that reads a text file and then saves it as an image file.Although the program is reading the file but its having errors saving it as an image file. Please Help! [ICODE]Option Explicit Private Const SRCCOPY = &HCC0020 Private Const MERGEPAINT = &HBB0226 Private Const … | |
hello guyz,,do you know any best sites that could help me making codes in "shopping cart"??hope you can help me.thank you ahead... | |
Hello Every Body I Am Using PHP AND JAVASCRIPT i am using two images on my page at run time 1. first i drag one image on another 2. after that i write some text using a prompt box which is written on the dragged image at run time 3. … | |
:) hai can any body help me in how to convert the Vb.net Code into C#.net code | |
my question here is two fold I am new to recursion and I am not going to lie. I dont get it at all, well at least the code part. is this considered recursive? and the second question is how do I make a loop that would let the user … |
The End.