199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for gladtoplay5

I have been working on some code that calculates your BMI and then puts you into a category based on that. every time i try and run this program it either tells me that I am in the underweight class or the average class and I have no idea why …

Member Avatar for WaltP
0
102
Member Avatar for abelLazm

hi... I am using sorted dictionary to add nodes in a hierarchy but i have to show multi-parent multi-child relation but sorted dictionary doesn't allow duplicate entries :( is there any way if yes please suggest I will be honored Thanks in advance

Member Avatar for abelLazm
0
161
Member Avatar for sfuo

Hey I am running into a problem with CoCreateInstance() in a program that I am using to try to disable all the network adapters. When I try to use [CODE]hr = CoCreateInstance(CLSID_ConnectionManager, NULL, CLSCTX_LOCAL_SERVER | CLSCTX_NO_CODE_DOWNLOAD, IID_INetConnectionManager, reinterpret_cast<LPVOID *>(&pNetConnectionManager) ); [/CODE] I get two errors. undefined reference to `_IID_INetConnectionManager' undefined …

Member Avatar for sfuo
0
392
Member Avatar for ghost_from_sa

Hey guys I've been asked to create an array of objects on the heap for my assignment but I cant seem to find any examples that explain it well enough on the web. So what I got is: [CODE]//Heabder File class Wheel{ public: Wheel() : pressure(32) { ptrSize = new …

Member Avatar for ghost_from_sa
0
191
Member Avatar for munitjsr2

[code] #include <iostream> #include <vector> #include <algorithm> using namespace std; class A { public : void getData(); void putData(); bool operator==(const A &) const; private : int x; char name[90]; }; vector< A > v; void A :: getData() { cout << "id = "; cin >> x; cout << …

Member Avatar for mike_2000_17
0
2K
Member Avatar for ebanbury

Hi First I'm really sorry if this is the wrong area to post this query, but as my pages are all in php, I thought it may have something to do with it. I have just realised that the top part of my pages flicker when you move your mouse …

Member Avatar for ebanbury
0
80
Member Avatar for lianpiau

The problem is Red color there. when add record into table. I want have same LoadingNo but different RecNo. But I'm using this only can add record until 2 only. Expert please help me!! [CODE]private string CalculateNewRecordNumber(string record) { string[] data = record.Split('/'); DateTime currentDate = DateTime.Today; int recordYear = …

Member Avatar for lianpiau
0
206
Member Avatar for kurogumo

Trying to import a flat file into SQL Server using SSIS. The file format is like this: [CODE] Image: C:\folder1\1234\5678.jpg ColHead1 ColHead2 ColHead3 Data1 Data2 Data3 [/CODE] I need a result that looks like this: [CODE] ColHead1|ColHead2|ColHead3|ColHead4 ----------------------------------- 5678 |Data1 |Data2 |Data3 [/CODE] So the idea is that we extract …

Member Avatar for kurogumo
0
631
Member Avatar for zulkefli82

hi, I create a form using php+html in my website. When visitor of my website press send button, the information their key-in in the form will send directly into my inbox. The problem is, my inbox always receive spam from this.. I already delete the form to solve this problem …

Member Avatar for almostbob
0
99
Member Avatar for ceyesuma

When I parse this date: [code] SimpleDateFormat sdf = new SimpleDateFormat(); Date utilDate=sdf.parse(txtFieldArray[i].getText());//12/31/1955 java.sql.Date sqlDate=new java.sql.Date(utilDate.getTime()); instructorBean.setStartDate(sqlDate); [/code] error [code] May 9, 2011 7:10:43 PM view.forms.profileForms.InstructorProfileForm actionPerformed SEVERE: null java.text.ParseException: Unparseable date: "12/28/1955" at java.text.DateFormat.parse(DateFormat.java:337) [/code] Can someone show me some code on a date that can be parsed?

Member Avatar for ceyesuma
0
456
Member Avatar for Bline

I am an retired untrained volunteer who assist a couple nonprofits with their web sites. I could really use some help on a problem I have been attempting to resolve. I am developing an application for one of the sites that generates assignment cards for Football Game Officials from information …

Member Avatar for Bline
0
115
Member Avatar for fadi_1234
Member Avatar for eduardc

Why is the serial no always 0 while I put other numbers? Php file: <html> <body> <?php $con = mysql_connect("localhost","eduardli_user","-z.x,c"); if (!$con) { die('Could not connect: ' . mysql_error()); } $description = $_POST["description"]; $price = $_POST["price"]; $quantity = $_POST["quantity"]; mysql_select_db("eduardli_company", $con) or die(mysql_error()); mysql_query ("INSERT INTO Products (description, price, quantity) …

Member Avatar for almostbob
0
139
Member Avatar for woody0114

alright I need help and at this point I am desperate. Been working on this for a couple of days, mostly typing and then hitting the Edit/undo! This is a homework project. What the project is supposed to do is: 1. open a text file(einstein.docx) 2. Prompt user for a …

Member Avatar for woody0114
0
939
Member Avatar for predator78

Well I been studying like a rabid dog foaming at the mouth since I have a higher level language under my belt and my initial failiure at c++ as a first language. Anyway getting near the end of my first little tutorial and have a few more questions. 1. I …

Member Avatar for predator78
0
151
Member Avatar for GhostMonkey

Hey, I've got my code finished but I need a working exe file but I cant find where it is. The only files I have are the source codes and a sql server compact edition database file whatever that is, which I cant open. Anyone know where I can get …

Member Avatar for GhostMonkey
0
116
Member Avatar for spunkywacko

Hey guys, I'm kinda late on a college project and being kinda noobish to C# doesn't help either... Anyway: [CODE] using (XmlReader reader = XmlReader.Create("myXml.xml", settings)) { reader.MoveToContent(); reader.ReadStartElement("users"); while (reader.ReadStartElement("user")) { string userID = reader.ReadElementContentAsString("userID", ""); string userName = reader.ReadElementContentAsString("name", ""); reader.ReadEndElement(); lstContent.Items.Add(userID + " : " + userName); …

Member Avatar for spunkywacko
0
231
Member Avatar for lounestor

I have 6 different datatables. I created one massive YUI dialogbox. I need to have different views depending on which datatable is being accessed. I cant seem to be able to call the function? do I need more arguments to point to the 'datatable' first and then to point to …

Member Avatar for tawes01
0
113
Member Avatar for cmart

Can someone give some advice on this Tic tac toe game i'm trying to make with vb, it would be greatly appreciated. I am a total newb, and I know this code is probably terrible, I'm just trying to do what I know and see if I can make some …

Member Avatar for BitBlt
0
107
Member Avatar for Mattshu

In the top of the first page that is requested, I make a global variable and store the value of microtime() in it. The footer of the page is require()'d at the bottom, and in the separate footer page is a code that subtracts the current microtime() from said global …

Member Avatar for diafol
0
62
Member Avatar for jimmymack

[CODE]// rational.cpp - Script 9.5 #include <iostream> #include <string> // Declare the class. class Rational { public: // Constructor: Rational(int num, int denom); // The overloaded methods that implement // arithmetic functions: Rational operator+(Rational rhs); Rational operator-(Rational rhs); Rational operator*(Rational rhs); Rational operator/(Rational rhs); void print(); private: // normalize() will …

Member Avatar for jimmymack
0
119
Member Avatar for PPS

I have a class registration form. The database has a semester table, class table, student table and registration table. I want a query to return a list of students that are registered for a class in an active semester. I have the query, but it returns each student twice. I …

Member Avatar for PPS
0
209
Member Avatar for jimmymack

[CODE]// rational.cpp - Script 9.5 #include <iostream> #include <string> // Declare the class. class Rational { public: // Constructor: Rational(int num, int denom); // The overloaded methods that implement // arithmetic functions: Rational operator+(Rational rhs); Rational operator-(Rational rhs); Rational operator*(Rational rhs); Rational operator/(Rational rhs); void print(); private: // normalize() will …

Member Avatar for jimmymack
0
155
Member Avatar for sciprog1

Hello Members, Given an undirected Graph, G, is there any standard algorithm to find the value of k, where (k-1) represents the number of vertices whose removal results in a graph that is still connected and the removal of the kth vertex makes the graph disconnected? Thank you! sciprog1

Member Avatar for sciprog1
0
73
Member Avatar for perohijo

Hello. Although I have seen someone else having a similar problem here, I got stuck with an error. This is the code and it shows a red parenthesis. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>JumbleMaker</title> </head> <body> <?php function DisplayError($fieldName, $errorMsg) { global $errorCount; echo …

Member Avatar for perohijo
0
157
Member Avatar for Sonia11

I am working on a program in which everyting is perfect except Unhandled exception at 0x0041180c that I am getting at run-time and the location its specifying at is: [CODE]void candidateType::setVotes(int region, int votes) { votesByRegion[region-1]=votes; }[/CODE] I have checked it numerous times but still not getting it. Any help …

Member Avatar for mike_2000_17
0
174
Member Avatar for fantasma

Greetings! I'm having a problem showing a set of records using jQuery. When I click in the designated link, the script only shows the first record that comes from the database. Am I doing something wrong? Here's the code jQuery [CODE]$(document).ready(function() { //hides the slickbox as soon as the DOM …

Member Avatar for fantasma
0
121
Member Avatar for jimmymack

So I have a book on C but have Dev-C++ IDE and was wondering if I could learn C from that book whilst using the Dev-C++ IDE? Many thanks in advance!!

Member Avatar for TrustyTony
0
537
Member Avatar for kpsbhuvi

Hai friends I am creating a file upload process, In that process I want to validate whether uploaded file contents are empty or not... i want to validate txt, doc, pdf, xls , ppt, docx, msg these extension files. when a .doc file is created then it has the file …

Member Avatar for tawes01
0
628
Member Avatar for dangari

Hi guyz. My challenge is that I can manually run the following command from linux shell: [CODE] sh /usr/bin/sshlogin.sh 192.168.0.37|danga|dan1ga|java -jar /shared/smsfiles/coin/MySSH.jar [/CODE] successfully. The challenge from java is getting the same command to run. The snippet of my code that handles this is as follows, though it does not …

Member Avatar for mKorbel
0
1K
Member Avatar for tundra010

Hello! I have just started learning assembly language, and I have decided to use the NASM assembler. I made a small program, included below, that is supposed to take a number, add 5, and print out the final result. The program correctly prints the prompt, and takes a value, but …

Member Avatar for tundra010
0
244
Member Avatar for helpfullProgram

Hello everyone! I have found a really weird result when I display a 2D texture (with GL_QUAD) on the screen at a different size to what it normally is: E.G when I display a 64x32 image(texture) on the screen at 128x64 and it contains an alpha channel the pixelated borders …

Member Avatar for helpfullProgram
0
262
Member Avatar for Kawaljeet Kaur

Hello to all,m kawal had rcecntly started my carrier in php so requests to help me in my projects.... I wana know how to generate a password by the admin panel itself..for ex.If if m running a company and handling admin panel,how can i generate a password to a new …

Member Avatar for CobRalf
0
110
Member Avatar for tothushara

hi :lol: friends hey i need a help from ul..to complete my projects can u tell me how to write a visual c#.net program to run an exe file to update its old version ;) thanks all thushara

Member Avatar for arcade_1945
0
136
Member Avatar for triple_A

Hey all. I am trying to make a program that consists of two list boxes. The first list box contains the names of several employees of a given company, and the second is to display the name, department, ID number, and phone number of the person when the name is …

Member Avatar for triple_A
0
178
Member Avatar for aidant

So, when i click a button my jQuery dosent change the value of the div, this onaly happens in safari in all other browsers it works! Javascript: [CODE]$(document).keypress(function(){ if (event.keyCode==13) key('='); if (event.keyCode==42) key('*','x'); if (event.keyCode==43) key('+','+'); if (event.keyCode==45) key('-','-'); if (event.keyCode==46) key('.'); if (event.keyCode==47) key('/','&divide;'); if (event.keyCode==48) key(0); if …

Member Avatar for twiss
0
117
Member Avatar for itisnot_me

ok so i am pulling my hair out here trying to figure out why php doesnt want to work right with this reg expression [B] what i am looking for [/B] {blog:name_of_blog} [B]what i have[/B] preg_match_all('\{blog:[A-Za-z0-9_]+\}', $replaced_content, $matches, PREG_SET_ORDER); [B] this is the error it is out putting[/B] Warning: preg_match_all() …

Member Avatar for itisnot_me
0
149
Member Avatar for jimmyo88

[CODE]void EmployeeSearch() { vector<string> file; string temp; ifstream infile("GROUP.txt"); while( !infile.eof() ) { getline(infile, temp); file.push_back(temp); } // done reading file infile.close(); string item; cout << "Enter an employee number to delete from the file: "; getline(cin, item); for(int i = 0; i < (int)file.size(); ++i) { if(file[i].substr(0, item.length()) == …

Member Avatar for jimmyo88
0
238
Member Avatar for cliffcc

I don't know how to enquiry the "informationtype" which are message and email? How to rewrite the below code? [CODE] $information = mysql_query("SELECT * FROM table WHERE informationtype='message'"); $row = mysql_fetch_assoc($information); $result=($row['informationno']); [/CODE]

Member Avatar for Stefano Mtangoo
0
82
Member Avatar for prajesh2

I'm trying to run this code but there is error message: PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource [code] <?php if (mysql_connect('localhost','root','') && mysql_select_db('guestbook')) { //echo 'connected today'; $time= time(); $errors= array(); if (isset($_POST['guestbook_name'], $_POST['guestbook_email'], $_POST['guestbook_message'])) { $guestbook_name = mysql_real_escape_string(htmlentities($_POST['guestbook_name'])); $guestbook_email = mysql_real_escape_string(htmlentities($_POST['guestbook_email'])); $guestbook_message = …

Member Avatar for Stefano Mtangoo
0
242
Member Avatar for gingerfish

i know how to add many things into arraylist at once, like: [CODE] String [] things = {"eggs ", "pie ", "lasers ", "hat "}; List<String> list1 = new ArrayList<String>(); for (String x: things) list1.add(x); [/CODE] but is there a way to add things into arraylist iteratively one by one?

Member Avatar for JamesCherrill
0
169
Member Avatar for I<LateNupurGuha

[INDENT]We know that out of local variables if no initialization is provided, a default initialization takes place [B][I]at the time of[/I] class loading [I]or[/I] instantiation[/B]. :icon_rolleyes:But the question is [U]where it takes place in a programming code?[/U] Either [COLOR="Green"]it is after the declaration then and there to protect and optimise …

Member Avatar for jon.kiparsky
0
155
Member Avatar for gingerfish

hey guys, when do we use "long"? and what is it anyway? like: [B] public [COLOR="Red"]long[/COLOR] someStuff([COLOR="Red"]long[/COLOR] n) { ..... ..... } [/B] thanks :)

Member Avatar for gingerfish
0
151
Member Avatar for Rocker Gang

Can anyone tel me the implementation of typeid operator and how its returning typeinfo reference.......

Member Avatar for mike_2000_17
0
156
Member Avatar for stereomatching

compiler : g++ of gcc4.5.2(minGW) os : windows xp sp3(32bits) [code] template<typename T, template<typename> class CONT = AccumulationTraits > class Accum { public : static typename CONT<T>::AccT accum(T const *beg, T const *end) { typename CONT<T>::AccT total = CONT<T>::zero(); while(beg != end) { total += *beg; ++beg; } return total; …

Member Avatar for stereomatching
0
149
Member Avatar for br_astronut

HELP! I am a medium duty VB.Net developer and want to start developing web applications and converting some of my VB apps to web apps. I know the basics and have put together a working ASP.Net application with no problem. I have the mechanics working fine. I just can't seem …

Member Avatar for matthewskyle
0
274
Member Avatar for emilmicho

I am in a huge need of having a simple mastermind game made in groovy. I will be very thankful for any help Thank you in advance

Member Avatar for TrustyTony
0
177
Member Avatar for slrobinson1983

Hello all. Can anyone show me the best way to convert a duration consisting of only minutes and seconds (such as 2:15) into all seconds (which would be 135 based on my original 2:15). Thanks in advance!

Member Avatar for slrobinson1983
0
298
Member Avatar for hueikar

Hi, i am currently doing a system for the rental video. I am new to java coding.. Problem is how to add data to access database using java coding in method? Thank you.

Member Avatar for hueikar
0
193
Member Avatar for jeordy

I'm going a little crazy here trying to figure this out. Any help would be greatly appreciated. MySQL version: 5.0 I'm trying to make a very ugly php page used to basic queries. I have a similar page working that creates new records in the specified table, so I know …

Member Avatar for TySkby
0
148

The End.