199,112 Archived Topics
Remove Filter ![]() | |
hi, i created a webpage explaining what polymorphism is. could someone point to me any inaccuracies or additions that i could make? [CODE]Polymorphism Syntax Polymorphism is when one type can take the form of a related type. Here is an example: DerivedClass B = new DerivedClass(); B.DoWork(); BaseClass A = … | |
The first time my code loops through my nested while loop it works. But the second time it doesn't- I don't know why. Could someone tell me the reason. [CODE]m = [['__', '__', '__'],['__', '__', '__'],['__', '__', '__']] z=1 count=9 f=[0,2] from random import choice w=choice(f) from random import choice … | |
I need to define a function that translates an sentence from present to past. A. put all words in lower case and omit all punctuation B. Plural and singular verbs should be recognized C. verbs ending in "y" change to "ied" D. verbs ending in "e" add "d" E. other … | |
I am trying to use a vla (variable length array) in my code but I see that the array is not initialized properly when I debug the program. Here's the code : [code] #include <stdio.h> #include <stdbool.h> int main (int argc, const char * argv[]) { // insert code here... … | |
So I started with C++ recently, and it's still very new and difficult for me but I think I'm starting to get the hang of it. Now I want to start making my first real-world app. I downloaded an SDK for a mobile application API and I want to make … | |
I can't think of a way to get rows out of a table. It was easy doing it with VB.Net and I'm just finding vc++ really difficult. This is what I have so far. I've connected to the database file and I am able to get the data shown onto … | |
Im Writing a c# Code that Takes an Excel Sheet ,creates the Corresponding SQl table and Dumps the data in a new table in SQL. Now My problem is: In the " create table" command , i have to specify the DATATYPE for the column !i.e. CREATE TABLE "table_name" ("column … | |
Is there any diference between: [code] X* x = new X; X* y = operator new X; [/code] | |
Hi, i only know the Java basics and really need help! I have a class called temporaryHolder which holds an arrayList of 54 cards. However, I need to get elements out of this arraylist and need to add them to stacks in another class. Q1) How can I access all … | |
Hi guys, Ok, call me lazy, or call me busy, but what's your opinion on this: Does it make sense using resized original images instead of thumbnails? Today's internet is pretty fast,and i've just done an image intensive website, so i'm thinking on applying this solution to an image intensive … | |
hi all, I want to call a class function using beans inside java script. but it is not working. It calls that function only 1 time. [code] <jsp:useBean id="track" scope="session" class="ReturnProgress"></jsp:useBean> <script type="text/javascript"> function getProgress() { document.getElementById('progress').innerHTML = '<%=track.findProgress()%>'; } </script> [/code] I want that Whenever user clicks on button … | |
Hi! I've decided to open a new thread for discussing the problem with uploading a file to a SUB-FOLDER at the FTP Server. So, I'm using Apache Commons library and I can upload my file to the Home Directory of the FTP server. However, if I want to upload it … | |
hi how can i make program using for loops only that display the output below * * ** ** *** *** **** **** ***** ***** ***** ***** **** **** *** *** ** ** * * | |
I get this error: variable or field 'calc_score' declared void and I am pretty much stuck. Here is my code, it obviously isn't finished but I need to be able to get this void to compile to continue on. [CODE] #include <fstream> #include <iostream> #include <cstdlib> #include <iomanip> using namespace … | |
I have a reduced function and one of the product terms is: B * C(not) * D + B(not) * C * D. Is that considered an XOR gate? Im aware that B * C(not) + B (not) + C is an XOR gate because When i do the truth … | |
Anyone have much experience in Haskell? I'm a comp sci student and have a project to essentially write a parser and an interpreter in Haskell. Would be grateful if anyone could suggest some resources (books or on web), or if I send in my code if anyone could make suggestions … | |
problem: the user will input an integer for example 12345 (5 digits) and the output should be: 12345 12345 12345 12345 12345 // depending of how much digit you input or if the user will input lets say 123hi and the output should be 123hi 123hi 123hi // the program … | |
Hello All, I am trying to find where the error is when I compile this Perl script but I can't seem to locate it. It is stating that it "Can't find the string terminator "FOOTER" anywhere before EOF at reddrill.pl line 54. I have went through and checked for extra … | |
i am doing a desktop application using netbean6.8 how to show error message if i didnt enter mobile number textbox pls help me.... | |
Hello, Im having trouble deciding what type of MUX circuit I should use, for example 2:1,4:1, etc. I was given a problem about designing a circuit on a block diagram level that performs the following math operations: RES = A + A RES = A + C RES = A … | |
Hi...I am not able to input text file correctly as desired...... data.txt -------- Jim A James A+ Smith Cathy D Dazy Peter C I am suppose to input the above file and fill the above data in two seperate arrays. For the second column, I am suppose fill NULL value … | |
I'm beginning to think that I don't have the eyes for this. Chrome's JS console is telling me that on line 28 "setCookie is not defined". What does this mean? I've looked at the function portion and it looked the same as my book but I have missed punctuation/spelling before. … | |
i am creating a web-album for my site. what i am trying to do, is on the homepage, if a user clicks on a specific thumbnail, it will got to the album using a #image[number] tag. i have this code so far for changing the images based on the tag … | |
Is there a way in python to look through a file line by line and find a word in that line, but only if the word is the first word in the line? Like if it was looking for the word "apple" then it would only notice if the line … | |
Hi everyone, how do i push item with a givin index in a linkedlist. e.g. linkedlist.add(element e, int index); this is my function [CODE]public void push(Student s, int index){ if(isEmpty()){ start = s; }else{ last.next = s; } last = s; size++; }[/CODE] | |
i want to know whats the error over here. i just want to store the three value in a node and making a linked list but after storing two nodes that is headptr and than temptr, when the third node is made it stops. I think my error is somewhere … | |
Hi! I would like to develop a software that will allow me to find a file (using JFileChooser) on a local machine and save it to a remote machine. I know an IP address of the remote machine. Please, give me some explanations or a link to some tutorials regarding … | |
Hi guys. The thing is that I have some experience with other programing languishes like Java and C#. I recently got into php and java script. The questions is when wold you prefer to use java script functions over php. For example say the random function. I'm aware of the … | |
myint.h [CODE]#include <iostream> // so that we can overload << and >> using namespace std; class MyInt { // these overload starters are declared as friend functions friend MyInt operator+(const MyInt& f1, const MyInt& f2); //friend MyInt operator*(const MyInt& f1, const MyInt& f2); /*friend MyInt operator++(MyInt& f1, int); // postfix … | |
Hi guys, Just wondering how i would access a particular variable from an object in an array?? Consider the code: [code=c]void Animal::arrayDisplay(){ Animal ani; Animal* arry[3]; string n,c; int a; for(int i = 0; i<3; ++i){ cout <<"Input name:" <<endl ; cin>> n; cout <<"Input color:" <<endl ; cin>> c; … | |
Having a little problem with my code. I'm thinking it is a name somewhere that is the problem, but cannot find it. Getting warning that inventoryTable is never assigned to and will always have default value null. I have read that this warning can be disabled but when I try … | |
Hi all :) Recently i got a an assignment to be done which need to deal with c++ pointer.. This is the question : [B] Write a function that accepts a pointer to a C-string as its argument. The function should return the character that appears most frequently in the … | |
Hi ! I’m new to php and try to devellop a simple application that would allow the user to classify various dishes by using radio buttons. I'm a bit lost :( My code is as follows (I’ve already got help to achieve it, but can’t go further). The first part … | |
when is it called in an inheritance hierarcy. is the base static constructor called before the derived static constructor? | |
I want to set up a connection to a Microsoft SQL Server 2005 express on my PC. [code=java] try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con = DriverManager.getConnection( "jdbc:mysql://localhost/db1","xxxx","yyyy"); Statement stmt = con.createStatement(); ResultSet rs = stmt.executeQuery("SELECT nume FROM tabel1"); while (rs.next()) { String s = rs.getString("name"); textArea.append(s); } } // Catches any … | |
Hi, My sql database contains a video table which has a video 'adddate' field. I need to change the code [COLOR="Red"].$video['adddate'].[/COLOR] from the following format: 2010-11-02 to 11-2010 I've changed it in .tpl files doing the following: {assign var='vidMthYr' value=$videos[i].adddate} {$vidMthYr|date_format:"%m-%Y"} However that does not work in my .php code … ![]() | |
In ANSIC use semaphores and mutex? How to exchange messages between the programs? | |
I have the following in the txt file [CODE] 1 Single.Standard Standard Empty ......... ........ 70 2 Single Standard Empty ........ ....... 70 [/CODE] I ahve the code below buts its not deleting the selected id [CODE] while(!file.eof()) { file >> roomnumber >> category >> type >> status >> datein … | |
Is there anyway to play an mp3 file in java? P.S I'm new here, hello world? | |
Okay, I have this problem to do and I have no idea how to do it. Refer to the method result: [CODE]public int result (int n) { if (n == 1) return 2; else return 2 * result(n-1); }[/CODE] If n > 0, how many times will result be called … | |
The problem is that when we use multiple threads and each containing System.out.println(). It doesnt print at time according to what i think it shoud On implementing the below 2 codes: [CODE] import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.SocketException; import java.util.concurrent.LinkedBlockingQueue; import java.util.logging.Level; import java.util.logging.Logger; class E { LinkedBlockingQueue<DatagramPacket> li = … | |
![]() | Hi, I'm trying to write a script where I can click an image to hide a table, then hide the table and change the image. Then if I click the image again, it should show the table and change the image to the initial image. Below is the code I … ![]() |
Dear All, I am currently working on an assignment. And I wanted to implement a bit ajax in it. I've got my html page, and on an onclick event the ajax code is going to populate a table and place it in my html page. The php file is working … | |
How can i declare 2D array in visual C++ 6.0 as a member of class? this syntax of mine is giving error. class sparseadd { int *p; int row; int col }; sparseadd::sparseadd(int r, int c) { row = r; col = c; p = new int[r][c]; // here i … | |
hi im making a task manager and want to get cpu usage of a process this is how my code looks now [CODE=vb.net] For Each proc As System.Diagnostics.Process In pList Dim lstStuff As ListViewItem = New ListViewItem() lstStuff.Text = proc.Id.ToString lstStuff.SubItems.Add(proc.ProcessName) Try lstStuff.SubItems.Add(proc.TotalProcessorTime.Milliseconds.ToString + "%") Catch End Try lstStuff.SubItems.Add(proc.WorkingSet64.ToString()) lstStuff.SubItems.Add(proc.Responding.ToString) … | |
Hi.. I am designing a tabless web page.The page contains 2 div sections.One is for menus and other is to display the contents of the page by clicking the menus.I don't want to use frames and iframes.Is it possible to do it using the div tag? The code I had … | |
i am looking for some help creating a php script that allows users to vote up (only up) a certain item. | |
Dear Friends! I want to draw a bouncing ball directly on form using component timer. I think that I should draw a ball then change its coordinates. Like this: [CODE] public partial class FormMain : Form { int mx = 10; int my = 10; public FormMain() { InitializeComponent(); } … | |
Hi. I can't figure out how to remove an element from an array. will I have to move get the element to be removed and swap it out with the last element and use the pop()? | |
Hi everybody. I need to pass the value of a pointer to a struct for a server program to a client program. my code is the following for the server: [CODE] write(ns, &fixedparkpnt, sizeof(fixedparkpnt)); write(ns, &fixeddriverpnt, sizeof(fixeddriverpnt));[/CODE] and for the client: [CODE] read(sock2, &fixedparkpnt, sizeof(fixedparkpnt)); read(sock2, &fixeddriverpnt, sizeof(fixeddriverpnt)); [/CODE] sock2 … |
The End.