199,112 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for NewOrder

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 = …

Member Avatar for NewOrder
0
127
Member Avatar for James0l9l

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 …

Member Avatar for woooee
0
102
Member Avatar for pacers10

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 …

Member Avatar for woooee
0
137
Member Avatar for skiabox

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... …

Member Avatar for skiabox
0
138
Member Avatar for ChaosKnight11

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 …

Member Avatar for Stefano Mtangoo
0
147
Member Avatar for shakssage

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 …

Member Avatar for Stefano Mtangoo
0
261
Member Avatar for wonder_laptop

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 …

0
144
Member Avatar for vbx_wx

Is there any diference between: [code] X* x = new X; X* y = operator new X; [/code]

Member Avatar for arkoenig
0
94
Member Avatar for 123a

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 …

Member Avatar for 123a
0
78
Member Avatar for Cool&Awesome

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 …

Member Avatar for Cool&Awesome
0
73
Member Avatar for gshockneo

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 …

Member Avatar for bofcarbon1
0
3K
Member Avatar for LianaN

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 …

Member Avatar for LianaN
0
1K
Member Avatar for baraah

hi how can i make program using for loops only that display the output below * * ** ** *** *** **** **** ***** ***** ***** ***** **** **** *** *** ** ** * *

Member Avatar for peter_budo
0
165
Member Avatar for BlueZephyr

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 …

Member Avatar for packetpirate
0
274
Member Avatar for speedy94519

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 …

Member Avatar for Haneen Dweikat
0
198
Member Avatar for drh9

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 …

Member Avatar for Dhruv Gairola
0
237
Member Avatar for baltik08

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 …

Member Avatar for Dhruv Gairola
0
794
Member Avatar for choosenalpha

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 …

Member Avatar for d5e5
0
210
Member Avatar for nichu

i am doing a desktop application using netbean6.8 how to show error message if i didnt enter mobile number textbox pls help me....

Member Avatar for apines
0
93
Member Avatar for speedy94519

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 …

Member Avatar for apines
0
154
Member Avatar for Lanor

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 …

Member Avatar for WaltP
0
100
Member Avatar for djcrab

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. …

Member Avatar for djcrab
0
112
Member Avatar for mrclark

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 …

Member Avatar for mrclark
0
88
Member Avatar for Brickmack

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 …

Member Avatar for richieking
0
955
Member Avatar for Donnovan

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]

Member Avatar for Donnovan
0
101
Member Avatar for sairakhalid

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 …

Member Avatar for sairakhalid
0
177
Member Avatar for LianaN

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 …

Member Avatar for LianaN
0
3K
Member Avatar for JustmeVSI

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 …

Member Avatar for JustmeVSI
0
445
Member Avatar for ana_1234

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 …

Member Avatar for ana_1234
0
399
Member Avatar for oggiemc

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; …

Member Avatar for gerard4143
0
157
Member Avatar for rcanter

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 …

Member Avatar for rcanter
0
205
Member Avatar for samsons17

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 …

Member Avatar for samsons17
0
409
Member Avatar for Raf8

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 …

Member Avatar for Raf8
0
121
Member Avatar for NewOrder

when is it called in an inheritance hierarcy. is the base static constructor called before the derived static constructor?

Member Avatar for Momerath
0
80
Member Avatar for Buffalo101

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 …

Member Avatar for Buffalo101
0
251
Member Avatar for lbargers

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 …

Member Avatar for diafol
0
139
Member Avatar for blogoot
Member Avatar for gerard4143
0
135
Member Avatar for HBK_100

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 …

Member Avatar for HBK_100
0
103
Member Avatar for mangopearapples

Is there anyway to play an mp3 file in java? P.S I'm new here, hello world?

Member Avatar for mangopearapples
0
172
Member Avatar for ottilie

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 …

Member Avatar for apines
0
129
Member Avatar for purijatin

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 = …

Member Avatar for purijatin
0
235
Member Avatar for feoperro

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 …

Member Avatar for feoperro
0
259
Member Avatar for avinash_545

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 …

Member Avatar for Airshow
0
140
Member Avatar for sairakhalid

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 …

Member Avatar for sairakhalid
0
130
Member Avatar for alex-VX

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) …

Member Avatar for AndreRet
0
2K
Member Avatar for divyakrishnan

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 …

Member Avatar for divyakrishnan
0
88
Member Avatar for RoseMary3

i am looking for some help creating a php script that allows users to vote up (only up) a certain item.

Member Avatar for jon44
0
80
Member Avatar for svatstika

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(); } …

Member Avatar for ddanbe
0
242
Member Avatar for ceyesuma

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()?

Member Avatar for ceyesuma
0
321
Member Avatar for SpyrosMet

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 …

Member Avatar for SpyrosMet
0
156

The End.