132,726 Archived Topics
Remove Filter ![]() | |
i am writing a program for seats reservation... here is the thing.... we have only one airplane with 10 seats... type (1) for expensive seat type (2) for cheap seat type (0) for exit you have to use seats[10] array and you have to do seats[10]={0}; if you type (1) … Software Development c | |
i dont know how to pass variable values from a function to another.. i get this error passing arg 1of 'add' makes integer from pointer without a cast here is my complete code: (this is not complete as i am just starting a text-only calculator :P) [code] #include <stdio.h> void … Software Development c | |
Hey everyone, I'm attempting to write a header file, example.h that will contain function declarations that will be defined in example.c. For some reason Its giving me an error when i do this [CODE]extern void mainMenu(node*);[/CODE] Now node is a struct defined in another header file, should I include that … Software Development c | |
Actually im a beginner with the subject of data structures. for my project i got a program to make which goes like: " implement the ADT unordered dictionary using hashing with linear probing." by using c or c++ language. i would b grateful if sum1 could help me with this … Software Development c++ | |
My assignment says I'm supposed to read in an address all on one line separated by pound signs (eg jane doe # p.o. box 123 # new york, new york 97229 #) and output it with correct capitalization and in proper address format like: Jane Doe P.O. Box 123 New … Software Development c++ | |
//sample program for car:) #include<graphics.h> #include<conio.h> #include<dos.h> #include<stdlib.h> #include<process.h> void main() { int gd=DETECT,gm; initgraph(&gd,&gm,"c:\tc\bgi"); int c=12; setbkcolor(0); //setlinestyle(0,1,2); int t; while(1) { settextstyle(2,0,5); outtextxy(100,10,"Press L,H ,T,P"); outtextxy(100,30,"Press 1 for Quit"); as: setcolor(13); ellipse(380,127,20,152,130,35); //////////////////////////////rear////////////////////////// line(490,109,560,142); line(560,142,569,142); line(569,142,582,102); line(582,102,620,92); line(593,132,617,125); line(617,124,627,96); line(620,92,628,97); line(472,86,602,96); line(501,113,575,121); line(443,77,475,80); line(443,77,432,93); line(475,80,472,85); //setcolor(4); line(593,132,593,137); line(593,137,600,141); … Software Development c++ | |
Hello, I am new to java and was looking all over the place for a pop up type warning box coding for java. If someone has any ideas, that would be excellent! Thanks! Software Development java | |
Hi all, I was wondering, is there also a classloader in C#? I know that Java has it; if there isn't a classloader in C#, how would one load classes during runtime? If there is a classloader, how do I use it? I mean can someone show me an example … Software Development | |
I Have one application in vs.net 2003.I used crystal report 9.0.When I am trying to deploy the S/w on client machine it gives error in crystal repot that KeycodeV32 /missing.I searched Lot on Web About the error.Some Said CR need a Licence.Is It true.How Can I get the licence. Software Development vb.net | |
[code=c] #include <stdio.h> #include <math.h> char decesion_matrix(double hh) { if(hh < 5) { printf("statement 1\n"); } else { printf("statement 2\n"); } return 0; } int chara_sum (int ii, char string[ii]) { int loop; char a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z; double hh; hh = 0; for(loop=0;loop<ii; loop++) { if(string[loop] == a) { string[loop] = 1; … Software Development c | |
void Display(Productptr t) { Productptr g; g=t; if(t==NULL) cout<<"The list is empty."<<endl; else { cout<<"Code\tDescription\tPrice\n"; cout<<"====\t===========\t=====\n"; while(g!= NULL) { cout<<g->code<<"\t" <<g->description<<"\t\t" <<g->price<<endl; } cout<<"End of the list"<<endl; } system("pause"); } This code give me problem. When I show 1st time is ok. After 1st time I add something or delete … Software Development c++ display linked-list | |
Hi, im currently trying to write a program which counts the characters in an input file. I need it to count the total characters, the non-blank characters and the alphabetic characters. And then show the statistics of each. I have both the total characters and alphabetic characters working correctly but … Software Development c++ | |
I want to develop a database application for the DS. Which is the best C++ package to use? When I was last involved with programming, Microsoft and another development company that I cant even remember now had the top two products. My current research has made me realize that there … Software Development c++ | |
Hello. I've recently started to explore the world of Java ME, and now ther's only one problem. Compiling. I've installed Java adk 1.6, Sony Ericsson SDK and even some tool I found under Suns Java ME section but the compiler still doesn't find the ME packages. Hope somone could post … Software Development java | |
New to programming my user name sums it all up!!! trying to creat a DLL for a calculator (in C#) I'm told this code below will do the trick, but it doesn't build!! can anybody out there tell me why? [code] using System; using System.Collections.Generic; using System.Text; namespace neilsuperDLL { … Software Development | |
How could we implement the code if I want to read a grayscale image file into two dimensional byte array? Since we don't always know the number of rows and columns binary file has beforehand, how can I read that into 2-D array? A grayscale image is single band image … Software Development file-system vb.net ![]() | |
Hi, i am given an array of atomic numbers, and I need to arrange them in order from 1-100 or something. the program i wrote is this [code] for(fill = 0; fill < (m-1); ++fill) { if(atomic_num[index_of_min] <= atomic_num[fill]) { temp = atomic_num[index_of_min]; atomic_num[index_of_min] = atomic_num[fill]; atomic_num[fill] = temp; } … Software Development c ![]() | |
Can anyone point me in the direction of a small app that displays 2 panels on a frame, where one panel is small and at the top taking up about 20% of the frame, and the other panel takes up 80%. I would like it to be possible using wxBoxSizer … Software Development python | |
Is there a function to remove punctuation from a string, or check to see if a char is a letter? This is a home work assignment to: 1 Write a class stack and a class queue 2 Test your classes by writing a program that will ask the user for … | |
Hi all, I need to write this program today and I really struggle :-( Would you be able to help at all? public class ISPN { private int[] authorId; private int[] programId; /** * Creates a new instance of ISPN */ public ISPN(int[] anAuthorId, int[] aProgramId) //constructor that takes two … Software Development java | |
Hello All, This is suppose to be my finished code for my "PacMan Game". All this "game" is suppose to do is to allow a Pacman to eat dots that can be placed on the screen at any location by clicking the mouse. It has a main class and a … Software Development java | |
Hi, I have a linked list which I created in a function? I want to allow the user to enter a name for the linked list, and then after he/she can display the list by typing in the title. This is part of my code [code]struct llistt{ char str[100]; // … Software Development c linked-list | |
Hi, basically i want to parse an image of a small FAT SD memory card that i have aqquired to display its directory structure. Ive tried scowering the web for some information or resources to study but i cn't find anything. Does anyone know of any info available to allow … Software Development c++ | |
[b]Code[/b]: [b]NumeroReal.h[/b] [code] #pragma once #include <iostream> #include <cmath> #include <cstdlib> using namespace std; class NumeroReal { private: double n; public: NumeroReal(); // default constructor NumeroReal( double n ); // parameter constructor NumeroReal( const NumeroReal &unNumeroReal ); // copy constructor ~NumeroReal(); // destructor void setNumeroReal( double n ); double getNumeroReal() … Software Development c++ visual-studio | |
Is there a way to accept keystrokes through c# in a console app? Basically I want to apply macros/the f-keys to my program, thanks. Software Development | |
i need some help with the SlowMovevertical method, i dont know how to incorparate it correctly into my source code to make it work? thanks if you can help. Software Development java | |
Hi, I'm hoping that someone can help me out as I'm sort of new to programming. I recorded a macro that uses microsoft query to get data from an access database. It works fine as it is, but I want to change the final filter to a variable and I … Software Development microsoft microsoft-access visual-basic | |
Basically for part of my assignment, I have to write my own int to string. This is done, however the problem is I can only enter 6 digits to convert otherewise my program crashes. Out lecturer also wants us to use the abs function as the value passed in can … Software Development c | |
Hi, I want to ask if there function in library of c++ to search word in file ?? thank you Software Development c++ | |
As an example, consider the following array of 9 integers in the range 1 to 5: [2, 3, 2, 1, 4, 5, 2, 3, 1] The count array would contain the following values: [2, 3, 2, 1, 1] Working from this set of counts, the sorted array would be: [1, … Software Development java | |
Hello~I am having trouble with my homework. I could not have them done. Please Please help me with it. Thank you all. God bless... The question is ""Add temporary, administrative, permanent, and other classifications of employees to the hierarchy from the three coding. Implement and test this hierarchy. Test all … Software Development c++ user-interface | |
I need to get an image to move a number of twips at a timer interval determined by a variable (no problem) for a number of iterations through a for/next loop (problem). I've tried it without variables without success: first: Form_Load() Dim jumps as Integer jumps = 1 For jumps … Software Development image visual-basic | |
I was wondering if someone would be willing to assist me. The program listed below compiles, but when I run it I get the following error an exception 'System.FormatException. I think my error is possibly convertinting the string in the readLine to a boolean inorder to test the true false … Software Development | |
Program terminated with signal 11, Segmentation fault. Environment: FreeBSD 6.2, Python 2.4.4, MySQLdb 1.2.2, SQLObject 0.9.1 I faced with an error in our multithreaded, network oriented application, wich interacts actively with MySQL database. Brief information from core dump is below (more detailed one is in the file attached). Though I … Software Development python | |
hi, i'm a novice user of VB. a freshman student of saint mary's university, can you please help me in my problem,, i'm having trouble in our VB 6.0 coz i dont have any knowledge regarding in this,, can you pls provide me a code which in cpu scheduling which … Software Development visual-basic | |
I have this code that i used for shoopping and adding to cart. but the problem here is that when i add to cart it'll not display the artist song that i choose and add 'em to cart rather it uses the one from another class. Please how do i … Software Development java java-swing | |
Hi, I'm quite a beginner and not sure if I can be helpful in the future. But I'll try! anyway, here is my problem... I've been searching on the net & looking up books but still don't have a clue of how to get it work. I have to simulate … Software Development c++ | |
please i need some help with this, i want to display the curent date n time at the bottom of this page. when i run it . THANKS. [code=java] import javax.swing.*; import java.awt.*; import java.awt.event.*; import javax.swing.event.*; import java.util.Calendar; /* <applet code=" The.class" height=20 width=20> </applet> */ public class The … Software Development java java-swing | |
Please suggest me a Control or Object (Other than MDI Form) In vb 6.0 which can hold a Form. I want to call another form from within a form in a control like TabStrip. Pl. suggest me at earliest. Thanking you; Pankaj Kumar Software Development visual-basic | |
Hi folks, Perl === Instead of using following command printing output to a file; $ perl AAA.pl > /pathto/name_of_file is it possible adding "print file function" to the script 1) If YES Please advise how to make it. 2) Can I add following bash syntax to the script user=$(whoami); now=$(date … Software Development file-system perl | |
I am am for the first time here,since it is the first time I needed help.I have read all the rules and I agree with you for the homework case...But this is getting frustrating!I am working on this on my own,practicing for the mid term but what am I doing … Software Development c++ | |
o.k., so as i stated in my first post, I'm very new to this, and not very good at it. I have been able to get though the labs up to this point. But I am having some issues with my final lab. One thing I want to make clear … Software Development c++ | |
Hey guys I need some help on this code. I'll just post the parts of the code needed to do thing I'm stuck on. [CODE]class Robot { public: // Constructor Robot(Arena* ap, int r, int c); // Accessors int row() const; int col() const; // Mutators void move(); private: Arena* … Software Development c++ | |
here is my problem ... I have a bunch of usernames in a listbox called listBox1, how can i store each line of text into a mulitiple arrays of a string? i cant seem to figure it out I want to do this so later i can use "usernames[x]" so … Software Development | |
I thought this script was working. I absolutely cannot get IIS to fully and completely work on my home comp. After making a special trip to school to test this thing out, it ends up that it's only displaying the last data entered instead of the averages, totals, etc. This … Software Development javascript perl | |
I must to write i program in C which will carry into clause(sentence) from keyboard and count how much "," have how much spaces " " have and how much times occur the word "The" for every clause(sentence). And in the end program when you carry into clause(sentence) must print … Software Development c | |
Hi friends again. Can you tell me how I will justify right edit box components in delphi. Ok I have found the memo to justify right for my input variables. But when I delete the text inside the memo components. Some of strings in memo components are not coming to … ![]() | |
I can't seem to get OleDb controls to show up in C# Express. Are they excluded for some reason? I have made sure they are selected in the "Choose Toolbox items..." dialog, where they are listed, but they don't appear anywhere on the toolbar. I tried to add them to … Software Development c# | |
Hey all, I'm not gonna ask for help with code or anything. What I would like is some help with an idea for a project I have, it's for college. Basically the spec for it is: Design a new keypad for a phone, to type sms' with one finger, and … Software Development java |
The End.