199,113 Archived Topics
Remove Filter ![]() | |
i need a help in airline reservation system project in c n i dont no how to do that so plz tell me the codes for these we should allow the user to chose 1)to book 2)to cancel 3)view data 4)quit as well as they have to enter them name … | |
i want to read file data as below. [ int, double, double] 1234 12.30 45.60 2345 23.40 67.50 3456 45.60 67.80 . into multiple arrays of type int, double and double. any help will be appreciated. | |
can someone tell me how to convert a string to a float. [CODE](Float)"1";[/CODE] does not work. | |
My code works fine for smaller integers, but when it gets over 1 million or so the number changes or goes negative. I am sure this has to do with the range of int, but I tried float and double and all the numbers came out the same...... What is … | |
Hey all, I'm trying to implement a function InitMatrix which suppose to return a pointer to a new created 3d array of the size determined by x,y and z. I have a struct which represents a matrix and should be able to deal with some functions required, like setting the … | |
[CODE] create table item_avail ( pro_id int primary key, mod_id int, color varchar(10) ); create table Laptop ( pro_id int primary key, mod_id varchar(5) not null check (mod_id like "L%"), color varchar2(10), comp_name varchar2(20), RAM number(5), spaceHD number(4), foreign key (pro_id, mod_id, color) references item_avail (pro_id, mod_id, color) ); create … | |
Hi, recently I have been working on a file upload script that users can upload an image. I got it to work but I am stuck on how to let user update or change the image they upload. I would like this to work kind of like facebook photos work. … | |
Hi, I am a PHP beginner, I am working this code and I need help, And kinda stack of it. I have a database with 5 fields(id, date, time , title and description). This is what I want to do; I want my script to go into the database fetch … | |
Ok here is my problem thus far. My program I have created is horrible lol...I am adult enough to admit it. My issue is the output I am getting that I will post after my code. It has weird characters at the top and I am not sure why. The … | |
Hi,i was a beginner in perl .please try to help m ein these areas. If i use [CODE]du -sh[/CODE] in my perl script i was getting output as 54M /home/abhinav/compare or 569M /home/abhinav/debug But i want only the size that is either like 54m or 569m and i dont want … | |
Hey Guys, I had a question earlier about some bounds and i've got it all figured out after some intense debugging and some help. I just have one more simple question and I think I should finally be on my way. If I have a recursive function that returns an … | |
Hi, Daniweb members i have an listview containing an normal listviewitem plus one subitem What i want to do is save the info in the listview in a textfile and load when i start my program. So that all the info will be saved, but how do i do this? … | |
Hi i ve been dealing with a program and encountred a weird problem. the problem is that my array variable por[27][1]'s value changes for no reason. please take a look at the pictures in the attachment. the pictures belong to debugging. | |
I am doing the O'reilly School of Technology course and the current topic deals with Tkinter. It gave me the idea to write this application. The idea is to transfer files to various ftp sites. If I set a default master password, then the password should be used for all … | |
![]() | I've just landed myself in it. I offered to help out with a programming club at our school. Doh! The school is lumbered with VB6. I refuse to dirty my hands with it - the last time was about a 1000 years ago. I proposed to do a starter on … |
Hello, Right, basically I'm trying to write some HTML to a file, now the problem is that I do not want to write the whole of the HTML in the C# program, incase I ever need to change the HTML file. All I want to do is change a few … ![]() | |
Hello, I have an assignment where we are supposed to populate an operating system's ready queue with processes and try various process scheduling scheme and record their wait times. To do this i made a rudimentary structure for a process: [CODE]typedef struct{ int ID; int wait_time; int exec_time; }process; [/CODE] … | |
Hi Okay so i have a text file and i have it converted to a bunch of lists with strings as the words. Now i need to find words that occur only once in the entire text file, how can i do this using a loop? A hint says that … | |
Hi I'm doing an assignment on Rational Number calculations. I'm getting some compiling errors which I don't know how to fix. Here is the error message and the code is beneath the error message. I would really appreciate if someone could read over this and see if you know whats … | |
Hi, I am trying to make a word counter, for that I have to input a string line untill '@@@' character is entered. My problem is that when I enter "Hello hello" as my input it reads the last hello twice.. or this is what I think it does.. Right … | |
Hello, The title of this thread perhaps does not explain my problem correctly. Actually i am developing a financial software for a company.The software is similar to a banking system. The software is being developed using VB 2008 and SQL Server 2008.The company has its branches located at different locations. … | |
I'm working on a program for my C++ class. The assignment uses a file that includes student names and three test scores. For example: Name Test1 Test2 Test3 Name Test1 Test2 Test3 My teacher wrote the main part of the program for us and we are to write the functions. … | |
Hey guys, i'm working on a recursive problem that invlolves getting from a place "s" (start) to a part "e" (end) in as few moves as possible. There are road blocks "x" and the grid is a size up to 15x15. My problem is that when I try to write … | |
Write a function that accepts an array of integers and determines the difference between the integers. For example, if the array [3 7 8 13 11] is passed to the function, it prints to the screen [3 4 1 5 -2]. mine give me : 3, 4 ,4 9, 2 … | |
So I have a data file that looks like this [CODE] Movie1 Year Salary Actor1, Actor2 Movie2 Year Salary Actor3, Actor4, Actor5 ... etc [/CODE] The part that's throwing me off is the actors line. It can have from 1 to 5 actors on it, separated by commas. I have … | |
I'm working with sets and notice when I do: [CODE]s1 = set( ['a', 'b', 'c']) s2 = set([1,2,3]) print s1.symmetric_difference(s2)[/CODE] It prints it off as: [CODE] set(['a', 1, 2, 3, 'c', 'b'])[/CODE] Is there any reason to why it displays it in the order of 'a', 1, 2, 3, 'c', … | |
hi guys, I would greatly appreciate it if you could help me with this code I have some tables called, Student (SID,SNAME) -> I have got data into it Course(CID,CNAME) -> I have got data into it Take(SID,CID) -> I have got data into it quesion (CID,QNO,MRKS)-> I have got … | |
Hello Everyone, i am wanting to build a leaderboard for my site for the members gamerscore on Xbox LIVE. I know how to fech from a MySQL database, etc but this is the hard bit. So the users table in MySQL contains their gamertag and i want to pull that … | |
Hi, I've been using tkinter to write a program that has a root window and many toplevel windows. I was able to create them successfully but my next step was to incorporate mysql with it so it would actually store any data that was entered in the various entry fields. … | |
Hey. As the topic states i want to use a streamwriter to write the listbox from form1, but the streamwriter is in form2. How do i get the data from form1 to form2? I have the code to write everything out etc, all I need is help to get the … | |
Hello, I am just starting learning Python and I am having some trouble properly importing a function from a module. I wrote the short script: [CODE]def print_twice(param): print(param, param) [/CODE] When I try to import the function print_twice, the shell tells me it cannot import the name print_twice. When I … | |
Hey, I want to start this new project for my own site, but I'm not really sure on how to start. Was wondering if anyone could help start me off, with some ways to organize and start it out. Basically I want to start a hockey league script, that contains … ![]() | |
hi can anyone help me with this ive trying for 2days to get this sorted but cant figure it out. i want to be able to list my data in the table which works fine then i want a link next to each data line to amend it heres my … | |
hello, i need a tool to measure the cyclomatic complexity of a given C source file. what do you suggest for this? thanks.. | |
I'm trying to create a print void function, however I'm not understanding how to call the database in the print function. I've tried to do something similar to what is in my textbook but all I'm getting is errors. This is what I've done so far. [CODE] #include <iomanip> #include … | |
can i format a digit while typing it on a textbx for example 2343244 will show 2,343,244 any help will be appreciate | |
Salam, My mission is to program a cube[I](given its dimensions (x,y,z))[/I]. The cube will be represented in a struct, which I'll choose what data members it should contain. I need to implement the allocation function(which actually creates the matrix) and some other functions. The most important function is the setter … | |
Hi! Is it possible to dynamically update a text of items in JList? Let's say there is JList defined as follows: [CODE] list1.setModel(new AbstractListModel() { Object[] values = listOfTasks.toArray(); public int getSize() { return values.length; } public Object getElementAt(int i) { return "Task " + i; } }); [/CODE] As … | |
Hello, I am looking for a means of database interaction in which the database will be stored on a user's machine but with no actual server software running. I have read there is some way to create databases in SQL express and then take the files for use in your … | |
Originally I was using Office Interop to import data, but that was a headache and a half for both me and my computer. Right now I'm attempting to load it with ACE, but my data grid isn't being populated. Once that's up and running I need to know how to … | |
Hi, Thank you for helping and here is the problem: [ICODE] #include <string> #include <fstream> #include <vector> #include <iostream> using std::string; using std::ifstream; template<class t> class Openfile { private: string pavadinimas; ifstream fin; public: typedef ifstream & reference; Openfile(); Openfile(const char * c); reference rout(); std::vector<t> & operator>>(std::vector<t> &); ~Openfile(); … | |
I can't figure out for the life of me why the names of the square and rectangle won't show up....can anyone help? [code] public class Square extends NamedShape implements Shape { public void Length() { System.out.printf("Please Enter Length Value: ", this.getLength()); } public Square(String name) { super(name); System.out.printf("Shape:", this.getName()); } … | |
Write the function my_strncat(). The function has three parameters: a char * s1, a const char * s2, and an int max, which represents the maximum size of the s1 buffer. Append the characters in s2 to the end of s1. Make sure you have only one '\0' at the … | |
Hey there. I'm 19 years old and I'm currently a student at a local community college. I came into college thinking I wanted to be an engineer, but after a few engineering-specific courses (Statics) I decided that engineering is not for me. Now I am looking into computer science and … | |
I've read around that playing WAV files from resources using My.Computer.Audio.Play causes horrid distortion when playing the sound, and I've experienced this myself. I cannot, however, use WaitToComplete, because the sounds are associated with a timer that cannot stop for anything, as it is an official competition timer. Also, I'm … | |
Hello all: I am working on a class for creating 2-D arrays. A couple of days ago, someone kindly helped me identify a problem with my operator() expression, but now I'm getting a segmentation fault. I just can't figure out where the problem is! If anyone could take a look … | |
Every time I think I am really making progress in understanding object oriented programming, I run into something that makes me have to go back and start all over again... This time its "subclassing". I believe that I understand the basics inheritance and overriding, but when I start to develop … | |
Hello, I'm completely newbie, I used pairs from <utylity>, but now I'm in need of something like "thirds", so I decided to create a template. I started with: [CODE]template <class T1, class T2, class T3> struct thirds { typedef T1 first_type; typedef T2 second_type; typedef T3 third_type; T1 first; T2 … | |
please i want someone to help me out here. i am trying to develop a dynamic class timetable. Every 2hrs; classes change lectures and lecturerers. i want my application on its own to be able to switch to next period. Doing that, the next period lctures and the lectureers would … ![]() | |
Hi all, I want to parse the elements in my arraylist to double. May I know how to implement that? [CODE]import java.io.*; import java.util.*; public class Array2 { static ArrayList myDouble = new ArrayList(); static String[] temp; static String[][] finalTemp; static String[] arr; static int rows; public static void main(String … |
The End.