199,114 Archived Topics
Remove Filter ![]() | |
I have to use stacks for my program, but I've never done them before so I looked up a code in my book to try and help me understand it but parts are confusing me. [code] void push(char item) { if (full()) throw FullStack(); else { NodeType* location; location = … | |
Hi, I am trying to parse a txt file in C++. I usually use perl to parse thru text files but need to do it in c++. Here is my text file. [code] NAME BITMAPVBIREFE MESSAGE VirginBitMapiIrefE VCCVALUE 3.000000 VIHSELECT 1 VIHVALUE 3.000000 WPSELECT 1 WPARGSELECT 0 WPVALUE 2.600000 [/code] … | |
I have 4 text box in a form. when I click a button another Form show with a MSflexgrid. when I click in a msflexgrid the data show a text box of another form. I write code: form1.Text1.Text = MSFlexGrid1.TextMatrix(MSFlexGrid1.RowSel, MSFlexGrid1.ColSel) But I when I click msflexgrid the same data … | |
[code] //***************************************************************************** // CPSC1620 - Fall 2008 // // // Date: // Purpose: Program to perform array operations using functions //***************************************************************************** #include <iostream> using namespace std; //Prototype int readSeq(int []); int main() { return 0; } //***************************************************************************** //Function: readSeq //Assumption: Reads a sequence of integers //Action: Stores the sequence in … | |
Hello friends............ How to check whether the given file path is valid or not in C,independent of OS......... Please reply immediately......... Thank you......... | |
i want to add a selection sort to this code by the id_number and i have the selection code but i cant implement it to my code [code]#include <iostream> #include <string> using namespace std; struct database { int id_number, age; float salary; string name; }; void input_data(struct database*data_ptr) { int … | |
Hi. I'm new to C, so I have probably made an elementary mistake in my code. I am trying to make a program for finding roots of a quadratic equation, using if and else, but first I'm trying to get used to using the sscanf function which I have never … | |
I need to draw a use case diagram for the following: [LIST=1] [LIST] [/LIST] [/LIST]Each member carries a membership card, which is date stamped every time they attend a training session. Their attendance is also recorded in an attendance ledger. Members pay a small fee for attending any session. [LIST=] … | |
hi,i started to learn java nearly 2 weeks ago so i dont know java clearly,i try to write a program about trainingzone. i must provide an interactive training zonecalculator that prompts a user for age. i write a program but it gives errors and i dont improve this,if anyone can … | |
Hi I am new to C++ programming and as my second personal project I am looking to create a program that will index my PDF,CHM,TXT,and WRD files located on my network drive at home. I would like to replicate window's search feature where you can search for a word or … | |
Hey again. I'm working on and off on my little tool that currently installs fonts, writes the registry, and will do various other things i'm gonna need. I'm currently trying to implement full error checking before i go on, and i'm pretty clueless on how to use return values. I … | |
Hi guys, I was looking at some of the commercial IDE's today. Most notably being wingware's python IDE personal edition. I was wondering wether people thought wether the $30 you need to pay for it is worth it or is it not that great when it comes to it. Any … | |
I'm writing a code for all the algorithm mention in cormen there are term DISK-READ and DISK-WRITE. Actually what the author want to say by using these terms. | |
hi i added modal popup handler into my application the popup which enmrges out is a panel and inside the panel i added the label and correspondong to label there is one textbox(txtE1) now the problem i m facing is tht i want to write the method related to the … | |
Hi guys, Ok, so I'm a bit stuck. I'm creating a program that has 3 classes. An object of one of the classes needs to be made up from 2 objects from one of the other classes.. and I can't figure out how to do it. for example, if I … | |
Hi all, I am trying to write a software where I want to put some UI in the form that would indicate the loading process(progress bar, loading image etc). Please advice how to do it since when a form runs some code all the form gets static. Threading is also … | |
Hi, If Not IsNull(rs!permaddr1) Then mpaddr1 = Mid(rs!permaddr1, 1, 500) Else mpaddr1 = " " where permaddr1 is a field type of varchar(1500). Example permaddr1 = "No:11/19 , Anna Salai , Chennai-1"(from sql server retriving the values) This value is now is stored in mpaddr1. Now, My main problem is … | |
Ok, the code is almost done and I need help finishing up my delete function(between lines 51 to 71), I can't seem to figure out how to delete the 50 and the 20. Here is my code. BTW i'll list the output first. Thanks Sample output 10 20 30 50 … | |
I grabbed this script from dynamicdrive "vertical menu flyout" it works fine in IE but not Mozzilla. It doesn't seem to calulate the x,y position correctly to place the dropmenudiv. It returns the same position from the getposOffset function no matter what menu you are hovering over. For example 192, … | |
Hi everyone, I have a question regarding reading commands from an array for a turtle graphics program. 5, x - Move forward x number of spaces (x being the next number in the array, ie. 5, 5) 4 - Turn right 9 - End commands (sentinel value) If you have … | |
I have got to create a simple calculator in a college level intro to c prog class, my calculator must be able to do division multiplication addition subtraction using whole numbers. Any ideas on what i should do? please help | |
Hi guys, If there is this scenario where the part must be supplied at least two or more suppliers, how should i represent it in my er model? supplier 2..* supplies 0..* parts Is this the correct way of doing? I'm using uml notation for my er model. | |
I want to make an app system like Facebook. I just need to know how to include remote files. Like, for example: [code=php] <?php require "top.php"; require "side-left.php"; //Start include (sanitize with ob_start();) require "http://blah.com/bla1/bla2.php"; //End include require "footer.php"; ?> [/code] I'd like to figure out how to get a … | |
Hi, i'm very new here and very new to C. I'm trying to figure out how to encode and decode in my C class. i was given a two txt files to use. one is the decoding symbols and the other are the codes i need to decode. i started … | |
Please let me know how to get day, month and year in JSP from mysql Date. | |
I'm currently writing a program in vb.net 2008, that is split into the main program and several DLLs (of which the user can select 1 to use). In the DLL, I have a function that reads data from a filestream into a structure, then returns the structure. While trying to … | |
Hi Everyone! I have the following problem: I'm trying to create a web shop (now just the sample of it), using Visual Web Developer 2008 (Express). I've added an SQL database, and a ButtonColumn, where the button selects the line and add the datas to another database. My only problem … | |
To Be honest this is matter of Choice and no one will be judged for his choice. I got stuck on best editor to use. I have long used Wing IDE 101 and My Favorite IDE with multi language is Netbeans which is coming with Nbpython. Big problem of IDE … | |
I need help with this code to : a. Creating an array of employees b. Asking the user how many employees records does he want to enter. c. Modifying the input_data function to take the data of all employees and fill them in the array d. Modifying the output_data function … | |
Hi Everyone, Can some one tell me is this possible. I want to show a text hiperlink over an image. [URL=http://img371.imageshack.us/my.php?image=texthiperlinkjv3.png][IMG]http://img371.imageshack.us/img371/5936/texthiperlinkjv3.th.png[/IMG][/URL][URL=http://g.imageshack.us/thpix.php][IMG]http://img371.imageshack.us/images/thpix.gif[/IMG][/URL] The image it self wont be hyperlink but only the text over it. Check this attached image. Need some thing like this.. Thanks, | |
Let me explain what I'm supposed to do first. My assignment is to take text from a dictionary entry and display it in my client area. This dictionary entry contains characters like \ " ' and text that's written in Greek. There is an image in the upper left hand … | |
Hi I'm new to coding. Can someone please help with a linked list problem. I'm getting numbers for output, I think they are addresses. The output I'm getting is: HEAD CODE -12086434400 1080131584 TAIL CODE The output I need is: HEAD CODE <rect x="0" y="0" width ="200" height="200" stroke-width="2" stroke="red" … | |
There are many types of Data Synchronizations, you can Synchronize your data for PDA applications, or mobile applications, or you can convert your one type of Database into another types of Database format. Now days Mobile users also using Internet from Mobile Devices. Here we are talking about when you … | |
Hi All, I have 3 text boxes that have user input to preform calculations. What I would like to do is if the user inputs improper values to share the error code messages with out having to define the messages in each one of the text boxes using the same … | |
Write a program that implements an address book for your friends using linked lists. Each person has name, last name, and phone number. Data should be stored in ordered based on last name. The program should include the following menu: 1.Add a friend 2.Delete a friend 3.List all friends with … | |
Hello, I have a webpage where I have four buttons. when the page is loaded all you can see are the buttons but when you click a button a content appears, content which changes when clicked on another button. This is done by a siompel js script with an onClick … | |
Hiiiiiiiiii can any one help me plz :) i want to send date and another variables from form to another when click btn... how can i do it????? | |
When i print data stored in a queue it also dequeue these data... can someone provide me hints on how to print data without dequeue...printing should only display data stored in that queue........ | |
Hi, I am using VB.Net 2005, VS 2005, and an Access Database. I have a datagridview on a form that gets populated from a table in the Access DB. What I'm needing to do is take the data from the DGV and put it into a table, "not the original … | |
[CODE] $fp = "http://".$site."/stor10392/".$filename; $complete = file_get_contents($fp); header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Content-type: ".$mimetype); header("Pragma: public"); header("Content-Disposition: attachment; filename=\"".$filename."\""); echo $complete;[/CODE] this is code from my download script this making save box from browser taking too long to appear .. (30-40sec on 50mb file) anyone know how to make … | |
Hi, when I try to assign \0 using the expression: pPtr->myArray[127]="\0"; my compiler throws the following error: "invalid conversion from ‘const char*’ to ‘char’. Any idea on what's wrong? Any idea on how to solve the problem? | |
drivers? I am not very clear about this? Thanx for your help? | |
Hi, I am developing an application about tracing for preschoolers. Currently, I am developing a application and is using touch screen that does tracing. Currently, I am using mouseListener because if I am not wrong, touch screen basically equals mouse clicks. So now my application can does drawing. Next, I … | |
[B][U]Question:[/U][/B] [COLOR="Red"]How to pull info from MySQL to populate title tag?[/COLOR] [U][B]Current code:[/B][/U] Include/common.inc.php <title><? echo PAGE_TITLE; ?></title> ________________________________________ Individual pages <? include("include/common.inc.php"); define ("PAGE_TITLE", "Blablablablablabla"); ETC ECT ETC ETC ... ________________________________________ I want to customize further the PAGE_TITLE in the file details.php ([url]www.mysite.com/details.php?listid=[/url]... ) to reflect information taken from … | |
I am trying to query a table where at least three conditions have to be met and then the outcome stored in an array and printed into a table. I tried with the code, but I am having problems setting the conditional query and would be happy with an assistance … | |
hello everyone! i'm trying to display a text from my database, that part is already fine but when the value of the text has a - or ' (maybe there's more) in it, instead of displaying the actual - or ' it displays other special char like smileys and stuff. … | |
Hey, im writing a dictionary in Delphi, and i dont know how to solve 1 problem. How to make Delphi display an explanation for the selected word from the word list? :confused: | |
I create a form that can add,edit and delete particular into the listbox. The problem now is that i wan to save the particular on the listbox and wen i go in back i can load it back. i hope anyone out there can help me. This is the code: … | |
I'm trying to update my database with an inline editor. (TableKit) When I change the data in a cell, it changes; but when I go to refresh it reverts back to the old information. It's calling a php page that I need to update my database. Right now I have … | |
If you have multiple If statements happening to check the logic on something is it better to just use all else if's to make your code execute faster? and I understand that people always say that it is better programming to keep your variables as far from being global as … |
The End.