199,124 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for slrobinson1983

hello all. heres my problem. i have a mysql database with 2 tables. the first table is called songs which contains records for all the songs on my site. its columns are song id and song title. the second table is called ratedsongs. its columns are song id (id of …

Member Avatar for diafol
0
77
Member Avatar for Gobbler

Hi all, I am very new so excuse the messy code. I am just trying to get this code to work properly first before cleaning it :p . For now I want it to: if user types "no" exit, if user types "yes" then run the next part, or if …

Member Avatar for jonsca
0
112
Member Avatar for Sarama2030

i'm working on this project in asp.net in conjunction with vb.net.the thing is code behind is just not getting fired, well it used to but then it stopped. I'm using visual studio 2010 ultimate edition as my editor and of course IIS as my web server. I really don't get …

Member Avatar for Sarama2030
0
186
Member Avatar for chico9

[CODE] public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((temp1== null) ? 0 : temp1.hashCode()); result = prime * result + ((temp2== null) ? 0 : temp2.hashCode()); return result; }[/CODE] I don't really understand about haschodes, yet, so I …

Member Avatar for chico9
0
355
Member Avatar for newcoder310

Hi , I have two string which have time in them like one= 11:54:30.360 two= 11:54:30,427 Wht is the best way to get the difference between them Thanks

Member Avatar for ~s.o.s~
0
107
Member Avatar for shyla

HELLO, i tried to understand the context, but as an international student i want to make sure that i did it correctly , if someone can verify it with me i will appreciate it, the question is attached below. [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace CarsDemo { …

Member Avatar for shyla
0
143
Member Avatar for t_man700

Hi guys, I've got a question that hopefully someone can answer. I have a file that contains the following structure: g hub f 100 200 300 12 f 356 403 345 484 f 333 212 1203 393 g door glass f 323 9292 383 f 32 3838 3939 f 1231 …

Member Avatar for WaltP
0
398
Member Avatar for lochnessmonster

I'm haveing a hard time determining wether i should implement certain things as a class or just functions....for example.... Log.h library <--- i could obviously implement a Log class....and i could also have use Log functions(without a class) alternatively...is there any guideline/recommendations i should use when knowing wether i should …

Member Avatar for mike_2000_17
0
116
Member Avatar for triumphost

Can someone help me with this? I No matter what I do, when I press F9, the message box pops up showing F9, But when I press F10, the message box for F9 pops up.. Is it because MSG msg and MSG msg2 are the same?? How do I fix …

Member Avatar for triumphost
0
137
Member Avatar for RapidFire4Life

Hi, I was given the following problem, I've almost got it but I've hit a roadblock and having no luck getting past it. Here is the problem im supposed to solve... The function insert of the class orderedLinkedList does not check if the item to be inserted is already in …

0
270
Member Avatar for JonSmith

Hi, Can someone create a short code that will rename a files extension in a sub directory using a command line option -r? So if i have a file a.txt in folder called loc. I enter this "change -r txt doc" and the file will become a.doc in the loc …

Member Avatar for JonSmith
0
180
Member Avatar for bunny07

What I tried to do here is There're 2 methods that each will have final result as an array. At this point I don't know where to go/ how to fix it. What I need is array U that supposed to be combination of U_1 and U_2. and I need …

Member Avatar for bunny07
0
121
Member Avatar for hercx

Can anyone help with this i am trying to populate a combobox with the returned values of an SQL statement from an access database the statement returns the values that i want but don't know how to pass the values into the combobox. SQL statement SELECT DISTINCT Stock_Name FROM Stock …

Member Avatar for hercx
0
262
Member Avatar for meetmani017

hi i am looking for a new project of web development in ASP if anybody has a project can contact me on my email: [removed]

Member Avatar for epathtrade
0
103
Member Avatar for timo86m

I am reading this book called "C++ From the Ground Up". I saw this and it makes perfect sense // Using a reference parameter. #include <iostream> using namespace std; void f(int &i); int main() { int val = 1; cout << "Old value for val: " << val << '\n'; …

Member Avatar for rubberman
0
168
Member Avatar for Clinton Portis

Trying to make a quick little tool in response to the [URL="http://www.msnbc.msn.com/id/42348642/ns/technology_and_science-security/"]FBI's request for assistance[/URL] on cracking a code.. getting an error that takes me outside the scope of my program.. not sure what is causing the problemo. Maybe another set of eyes can help: [CODE] #include <iostream> #include <fstream> …

Member Avatar for Clinton Portis
0
246
Member Avatar for sergent

Once I was trying to create an object inside a switch statement. It looked something like this. [CODE] cout >> "Enter how many objects you want to create: "; int nofobjects; cin << nofobjects; switch(numberofobjects) { case 1: objectclass object1; break; case 2: objectclass object1; objectclass object2; break; case 3: …

Member Avatar for WhiZTiM
0
193
Member Avatar for smitty34

[CODE]// Finals.cpp.cpp : Defines the entry point for the console application. // #include "stdafx.h" int _tmain(int argc, _TCHAR* argv[]) { #include <iostream> #include <string> #include <iomanip> using namespace std; // //CLASS DECLARATION SECTION // class EmployeeClass { public: void ImplementCalculations(string EmployeeName, int hours, double wage); void DisplayEmployInformation(void); void Addsomethingup(void); string …

Member Avatar for sergent
0
135
Member Avatar for eman 22
Member Avatar for eman 22
0
85
Member Avatar for sunny124

Hi guys, I am trying to display validation error messages when form validation fails. Currently it does display the error messages but then disappears straight away. How can I stop the page from refreshing when validation fails? I have return false in my code when validation fails but still having …

Member Avatar for sunny124
0
325
Member Avatar for maybnxtseasn

I am quite confused on the following terms...are all the following terms all the same way to pretty much say "nonmember function" ( function that works with a class that isnt apart of its public interface ) [B]auxillary function helper function free function utility function[/B]

Member Avatar for mike_2000_17
0
142
Member Avatar for mkab

Hello everyone. I have some problems in implementing some stuffs about genetics in java. Here's the scenario. A human cell contains 23 pairs of chromosomes. Each chromosome in each pair has thousands of genes. Each copy of a gene is called an allele. These alleles determine the different traits of …

Member Avatar for dononelson
0
164
Member Avatar for newbiecoder

Hello I tried to make a contact form for my Flash website but when I upload it to my server it just doesn't work. Can you tell me what is wrong with my codes or doesn't it work because of a server-side problem? Here is my Actionscript code on Flash: …

Member Avatar for newbiecoder
0
276
Member Avatar for soniajothi

Question Create a class named Package with data fields for weight in ounces (oz.), shipping method, and shipping cost. The shipping method is a character: ‘A’ for air, ‘T’ for truck, or ‘M’ for mail. The package class contains a constructor that requires arguments for weight and shipping method. The …

Member Avatar for dononelson
0
428
Member Avatar for tanisa

hi friends i want to do one pro. inwhich i take 2 buttons 1 as on 2 as off by clicking on the onbutton the audio file should be palyed & by clicking on off it stop the playing audiofile plz anyone can suggest me what can i do ?

Member Avatar for mahpour
0
106
Member Avatar for DaniwebOS

I've been trying to think of the easiest way to calculate the average and display the results. The two outputs that I am missing would be the average part of the program. When the program is ran, it should display "Danika Patrick averaged a score of 120 in 11 minutes …

Member Avatar for sergent
0
105
Member Avatar for Suzie999

Sorry if this is a silly question, but i'd just like to be certain. I start my app, and then immediately start a new thread to carry out some tasks while my 'main thread' (if that is the term to use) is doing something else. Do all method calls from …

Member Avatar for Suzie999
0
120
Member Avatar for TheWhite

[CODE] import java.util.regex.Matcher; import java.util.regex.Pattern; public class test_regex { public static void main(String[] args) { String text = "(asdf) (123) (zxcv)"; Pattern p = Pattern.compile("^\\((\\S+)\\) \\((\\S+)\\) \\((\\S+)\\)$"); Matcher m = p.matcher(text); if (m.matches()) for (int i=0; i<m.groupCount(); i++) System.out.println(i+".) "+m.group(i)); else System.out.println("no match"); } } [/CODE] [QUOTE] Output: 0.) (asdf) …

Member Avatar for TheWhite
0
222
Member Avatar for disposable_zero

OK I'm pretty green at this so do bear with me. What I want to do is have an area where people can upload files to me. I found a script that I'm trying to make work and I've almost got it there but I'm having an issue. Everything actually …

Member Avatar for disposable_zero
0
113
Member Avatar for penguino138

So i'm transferring all the files from my mom's website and on a very important javascript file, I'm getting an unknown error on line 9. Here's the code: [CODE] /** * @package Kinetic Template - RocketTheme * @version 1.5.3 March 18, 2010 * @author RocketTheme http://www.rockettheme.com * @copyright Copyright (C) …

Member Avatar for penguino138
0
147
Member Avatar for eman 22
Member Avatar for Taimoor Rana

Hello guys, I was wondering is it possible to set an animated Background to a JPanel instead of a simple colored background?

Member Avatar for paycity
0
1K
Member Avatar for sergent

I don't understand why goto's are so bad. I LOVE to use it in an if-else or switch to quit a loop. But everyone says they are bad and I should not use them but no one says why! Can you explain it to me?

Member Avatar for arkoenig
0
547
Member Avatar for thephpdev

I have no idea what's wrong, I googled but I couldn't find the answer :/ it's probably really obvious but i'm rather new to PSQL Statement: [CODE] INSERT INTO drop_users VALUES ('John_Bucky','John_Bucky','a83b3735814aa577651a55b7c838a6a0',02-04-2011_02:20:55,'object', DEFAULT,DEFAULT,13,DEFAULT,DEFAULT[/CODE] Thanks for your time! ~Josh

Member Avatar for thephpdev
0
93
Member Avatar for BLUEC0RE

My original plan was to pipe "ls -l", get the permission string that represented the file in question. Translate the string of 'r's 'w's 'x's '-'s into 0s and 1s then convert it from binary to octal. This seems really cumbersome and annoying and I gotta figure there is some …

Member Avatar for BLUEC0RE
0
175
Member Avatar for jeffpro

Hey guys I'm trying to make a directdraw program to output certain statistics but it's not drawing fast enough. Does anyone know how to increase ddraw update speeds? Thanks in advance!

Member Avatar for jeffpro
0
93
Member Avatar for CrumbledCookies

I don't fully understand what is wrong with my code, it will read the first lines of any text file but then overloads and keeps displaying "0.00" and then crashes the program. I'm trying to get it to read student's last names and read their GPA scores, and the sentinel …

Member Avatar for CrumbledCookies
0
2K
Member Avatar for abk07

Hi! I’m trying to write a ‘C’ program to extract variable definitions and variable use in each line from a input ‘C’ program. That is, a variable is said to be defined when its value changes(including declarations) and it is said to be ‘used’ when it is referenced. I need …

Member Avatar for WaltP
0
213
Member Avatar for Wajed

Computer Organization, Computer Design, and Computer Architecture; can you tell me the difference between them with examples? I'll quote my book for it's explanation of the three terms, which I don't understand. [QUOTE][I]Computer organization[/I] is concerned with the way the [COLOR="Green"]hardware components[/COLOR] operate and the way they are connected together …

Member Avatar for rubberman
0
12K
Member Avatar for jalpesh_007

I have made floyd warshall algorithm. I need some help for finding shortest path from source to destination. We have to give source and destination. Eg. Program gives us output like source=A and destination=D then shortest path is A-B-D with distance 10. I also give the code for that in …

Member Avatar for rubberman
0
372
Member Avatar for Climber Ty

Okay here's what I have so far... The error I receieve is below... The HCP Header File [CODE] #ifndef HEALTHCAREPROVIDER_H #define HEALTHCAREPROVIDER_H #include "stdafx.h" #include <string> #include <iostream> using namespace std; class HealthCareProvider { protected: string fullName; string profession; int yearsExperience; string companyType; string apptAvail; double bill; double fee; public: …

Member Avatar for Climber Ty
0
158
Member Avatar for msqueen082

Hi I could sure use some help. In a form of a push in the right direction. I am tryig to remove all multiple tcode (stock name) and add (if tcode is "B" add the shares and if tcode is "S" subtract the shares) them together in just one line …

Member Avatar for hercx
0
128
Member Avatar for megaLU

Hello! I have written a nested for loop with an inner loop of 86400 iterations and the outer loop 365. It compiles and everything but only gives me 97 of the 365 results. This is the error message: [CODE]aqua(855) malloc: *** mmap(size=268435456) failed (error code=12) *** error: can't allocate region …

Member Avatar for rubberman
0
187
Member Avatar for ChaseRLewis

I know printf prints to "stdout" how exactly can I change the pointer to a class of mine that i'd prefer to handle the output string? or is it better to just process using sprintf and manage the strings? Would there be any issues with the first method?

Member Avatar for rubberman
0
89
Member Avatar for Freedom*

hello! well, i want to read 10 grades and put them at an array... i want the values to be >=0 and <=10 how can i do that? what changes i have to do at my method? [CODE] using System; class Student { blah blah public void SetGrades() { for …

Member Avatar for Freedom*
0
132
Member Avatar for Robert955

Hi, I am making a 2D game with XNA 3.1 where I want to make my space ship move with the arrow keys. atm when I press left or right arrow the ship rotates around its own axis. but now I want to make it fly into the direction its …

Member Avatar for Robert955
0
77
Member Avatar for eman 22

[CODE] int main(){ // I have an error in the next line read_file("F:/2nd year_2/Data structure 2/books/lecture-26.pdf"); return 0; } string read_file(char* address){ string line; ifstream myfile (address); if (myfile.is_open()) { while ( myfile.good() ) { getline (myfile,line); cout << line << endl; } myfile.close(); } return NULL; }[/CODE] this program …

Member Avatar for eman 22
0
139
Member Avatar for BigTito89

Hello, I'm creating a game editor and I'm at the current stage that I would like the ability to attach scripts to objects (by selecting the string of the method name to be called). That would be saved into the object's scripts to load / run array. That shouldn't be …

Member Avatar for Momerath
0
178
Member Avatar for shyla

i am trying to figure it out, and i cant get the income and the SSN to show [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Assignment5_Koch { class Rates { public readonly int incomeLimit; public readonly double lowTaxRate; public readonly double highTaxRate; public Rates() { incomeLimit = 30000; …

Member Avatar for Momerath
0
236
Member Avatar for altXerror

i have part of a text based game that keeps track of the HP , DEF... and such. it needs to be able to replace the current value for the variables, in which case are: [CODE]long HP, def, sheild;[/CODE] for instance, you battle a monster and the attack does 75 …

Member Avatar for daviddoria
0
89

The End.