199,114 Archived Topics
Remove Filter ![]() | |
hi all, just looking for some help with setting up an array of items for a stocktake program. i have an item class that works, and now i need to create an array to hold an array of the items. the item class code is class Item { private String … | |
Hi All I am hoping someone can help me out since this is driving me nuts. On my site I have 3 columns: [code] |sidebar| content |sidebar| [/code] What I want to do is have the height of the 2 sidebars controlled by the height of the content. So instead … | |
[code]using dice std; # include <cstdlib> int dice( ) { int. random_ interger = rand ( ) cout << random_ interger << end 1 }[/code]<< moderator edit: added [url=http://www.daniweb.com/techtalkforums/misc.php?do=bbcode#code][co[u][/u]de][/co[u][/u]de][/url] tags >> . Write the member function definitions for each function listed: 1. Object Type: a pair of dice Knows: The … | |
For some reason the code is not printing the error string in the output screen of the operating system. Go figure? This code is directly out of the book. [code]#include<iostream.h> #include<fstream.h> #include<stdio.h> #include<stdlib.h> #include<conio.h> ofstream fileout; ifstream filein; void main() { char file[20]; //you must type in filename and extension … | |
omg i need help so bad. I've been working on a school project for what seems like an eternity and i'm close to deadline. Using FIFO's (i ahve to) to communicate between parent and child proc's. Right now I'm stuck on a read/write. fifomsg is a struct with int length … | |
Hi everyone, I am still having a few issues with my program. It definitely runs but it just seems to run poorly. I think my problem lies within the following 3 sections Quicksort, Partition, and Insertion I've written comments next to each line of code just to make sure that … | |
What is the difference between grammar and syntax in a language? Thanks in advance | |
Hi, Using Dreamweaver I have created a form that submits data to an sql database using PHP. I have a number of questions that I hope you can help with. 1. Why are some fields on the form a different colour when the background on all fields are set to … | |
I was wondering if someone could aid me in this. all help will be duly noted in the script itself. Here is what i am trying to achieve, a realtime editor of the CSS attributes of a given page. I have the page i am using and the CSS table, … | |
HAving trouble with my pointer arithmetic, any ideas appreciated My orgional code [code] Activity p[51]; for ( int i = 1; i <= n; ++i ) { // Read the activity records. pert >> p[i].i >> p[i].j >> p[i].pt >> p[i].prt >> p[i].ot; pert.getline(p[i].desc,21); [/code] converted but wrong [code] Activity … | |
Good evening everyone, This next exercise, I have to do the following: Write a ClassTemplate for a linked list. Demonstrate it by using two linked lists. The datafield of the first type is int, the second one is double. What Ive got sofar is this: [code] #include <iostream> #include <vector> … | |
Hi. I have to write a program that will return the amount of all the vowels on a string.. I already did it, but it freezez during the execution :sad: . Any suggetions are welcome. ps.I must say that I am a begginer on this... :o Here is the code: … | |
ok im stuck how do u print to the screen in the main file from a class? this is what im doin [CODE]ostream &operator <<(ostream &outs, const Point &p) { outs << "(" << p.getX() << ", " << p.getY() << ")"; // print out the value of the point … | |
Why is it that a major class should be defined in a header file, then given a source file to define it's functions? | |
[COLOR=Blue][FONT=Arial Narrow]Hi. I am a begginer :cheesy: on the programming area and I am currently taking a course on C++. I have doubts :o about how to use the strchr function. Can somebody give me some hints? :?: Thanks.[/FONT][/COLOR] | |
Hello all: I'm creating an image gallery that opens in hidden divs. Here's my javascript code: <script type="text/javascript"> <!-- function popupSwitch(szDivID, iState) { if(document.layers) { document.layers[szDivID].visibility = iState ? "show" : "hide"; } else if(document.getElementById) { var obj = document.getElementById(szDivID); obj.style.visibility = iState ? "visible" : "hidden"; } else if(document.all) … | |
I'm using GNU Pascal. For my homework (due to next Friday) I have to learn how to set up the cursor position, and how to change text and background colour. And how can I learn more about such commands? | |
Dear all, This is my first post :). I am an undergraduate student of an IT university. Now I start to making a thesis as final project for undergraduate. My thesis is about to build a simple article manager. This project must to build with a good Object Oriented Analysis … | |
Hi, I have an application (a web browser control within a vb6 form) which shows users their weekly schedule. At the moment they have to input their user id to see the schedule. What I want to do is have their schedules automatically appear according to their network login. I … | |
Hi, sorry I'm posting so much all off a sudden, but I recently found these forums, and they've been a lot of help. I'm have to read into the program from a file and output into another file. The problem is in function calculateGrade. When I output, I get a … | |
can someone help me with this, or just help get me started. write the definitions of the functions to overload the increment, decrement, arithmetic, and relational operators as a member of the class rectangeType. write a test program that tests various operations on the class rectangleType | |
Hi all, I'm fairly new to Perl I am confused ? I will try to explain it. What i am trying to do is we have 26 branches and our central office generates data files like for income files (003.inc010105,003.inc020105,) /sales(003.sal010105) and many more reports on dialy basis in text … | |
Hi! I've a HTML form I've a function with some parameters that checks the value of each field (it's called within a onBlur event). This function check the type and other restrictions about that field. I must create a function that checks that all required fields (or options or other … | |
Hey everyone. I am not sure of any of you are familiar with the term MUD (which is Multi User Dungeon, a text-based game). If not feel free to go over to [url]www.mudconnect.com[/url] to check it out. Anyway, back to my post. What I am currently planning on doing is … | |
Hi all I've programmed a relay chat system in Java. Just having two GUI-related problems with the chat client itself. [B][U]Problem #1[/U][/B] : I can't get the chat windows to scroll as new text appears in them. The scroll bar [i]does[/i] appear when it needs to, but it remains at … | |
I use VB5 and I have a form which has very close to VB 5's limit of 255 controls per form which is starting to concern me. Can someone tell me if the limit for VB6 was increased and let's not forget VB net if possible (although changing the code … | |
Hi Im using C++ builder 6 and need to print off some text. The text will be in the form of strings. I guess I need to use TPrinter. Can someone point me in the right direction on how to print stuff out from C++. I need to be able … | |
I need to show three frames consecutively for 500 msecs on a form then move to a new form. I have tried calling a sub procedure to do this but it doesn't work. Can anyone help please? | |
1. With VB5 you can either create an EXE file while you are running VB, or use the separate setupwiz utility to create a .EXE file. The setupwiz way results in a smaller EXE file. Is this the only advantage? Also the setupwiz way results in the program doing something … | |
I know you use strcmp() with strings and that if it is equal to zero, they match. But, how do you see if one string is less than the other? I want to compare SSN's to see if 12345620 is less than or greater than 123456708. Thanks for any input. | |
Hi to everyone... Just for clarification and added information...can someone please explain deeper what are VB RUNTIME Files and its use or benefit if i dont have VB software. Your response would most likely help me before i start programming in VB, thanks a lot. | |
hi,, the program i made is soppost to reads 3 integers from user and solve the average, the maximum, the minimum and their median value..the problem with the program is that the median section is not working, can u please have a look at it.. [code]#include<stdio.h> main( ) { int … | |
hey ppz! im havin problems wiv my code on vb.net! it dopesnt recognise the "ADODB connection()"-it says its not defined?? i have added the data adapter and connection, so why doesnt it work??? [PHP]Imports System.IO Public Class frmClients Inherits System.Windows.Forms.Form Dim CN As New ADODB.Connection() Dim RS As New ADODB.Recordset() … | |
Apologies if this is a simple query, I only get to use Oracle on the odd occasion so I tend to get a bit rusty. At present I am attempting to create a view that gathers data from 4 tables, this information will then be queried by an external application. … | |
im a beginner in C++ and require help in developing a program that converts the price of a list of items from a text file from £ to euros. i am supposed to be able to edit this program so that there is a). GBP/Euro conversion rate. b). Data to … | |
Hello, thanks for taking the time to read my query. I've basically got a page (dark grey) with a panel that sits in it (light grey).. this fills the screen, except for a 16px gap around the edge which allowed the dark grey (from the body tag) to show through. … | |
I'm trying to learn asp.net in vb.net. I have a form to order hats online because I'm learning only one hat at a time may be ordered. I have two listboxes one displays the size and the other the color, I have a checkbox which if checked adds a logo, … | |
Can someone please help me with this program? it is supposed to ask user to input ten integers which are part of an array and then output that array and then output the numbers in ascending and descending order in an array. can you repair this program? thanks. import java.io.*; … | |
hello everyone. ok i got a program (see below i know its long but just copy and paste and it will work),, my only problem is i need to include a search method (i.e. where i enter CDName and it prints out the rest of the details of the CD.) … | |
Please Help my code for this program is listed below what the program is supposed to do is also listed below. I can't get it to work. The problem Write a program to compress a message consisting of the ten symbols A, B, C, D, E, F, G, H, I, … | |
ok, so I'm supposed to write a program which allows the user to input 5 candidate names and the number of votes they receive. The program should the spit out the names, number of votes, percentage of votes received, the total votes, and the winner of the election. This is … | |
Fellow designers, I am currently in the process of designing a software program that, from my research, does not exist. The program will basically function as a combination of, at least, 3 existing programs...MS Word, PPT, & Media Player. The end result is a program installed on a PC that … | |
Hello, I have a small app that uses pipes to do some basic client / server communication, just for testing purposes. Well, when the server is run before the client, it works fine. However, if the client is run before the server, there are problems. To solve this I wanted … | |
I am trying to pass the OleDbDataReader to table that I can pass out of a function. | |
I can can use a BufferedReader to open a Streamat the command line, like this: [Code] BufferedReader br = new BufferedReader(new InpuStreamReader(URL.openStream())); [/Code] Once I try to use this same statement inside of my applet, I get an AccessControlException. I know it's something to do with security, but how do … | |
I would like to design a program to implement a string of operation, such as: 1+3/4+5*5-(454*23-34) Then, it returns a correct answer. And what's the exact algorithms? | |
Hello, I am new here looking for some advice. I belong to a programming group that intends to simulate hearing loss via software that we are creating. At the moment, we are looking to see how are we able to obtain sound from sound cards. What we intend to do … | |
Hello, I am having a members search page, where you can look up members by searching on e.g. age, interests, country etc. If the user does not specify e.g. an age range, then all ages should be included in the search. But if a specific age range is specified, then … | |
hi guys, i need some help. i need one c program about a file called segy. hve to extract some information from its header(trace header) & stored it in another file to view.The information i have to extract from the trace header are inline,crossline,x coordinate & y coordinate. i wanna … | |
here is the sequence i'm using for my arrow keys [code]#include<stdio.h> unsigned char keyin main() { if(square==1) {//start square putimage(285,440,ste,COPY_PUT); while((keyin=getch())!='\r') {//up arrow key if(keyin==72) {//hit up arrow keyin=getch(); square=2; }//hit up arrow }//up arrow key }//start square do {//game from start square on if(square==2) {//on square 2 putimage(285,400,ste,COPY_PUT); }//on … |
The End.