199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for hadoque

Hi I'm trying to extract the exponent and mantissa from a float. It seems that the most forward way would be to read the bits of the number, according to IEEE 754 ([url]http://steve.hollasch.net/cgindex/coding/ieeefloat.html[/url]). So I need to do bitwise operations to float variable. According to what I have found on …

Member Avatar for hadoque
0
170
Member Avatar for arthurav

I have some text in a block with a certain width. I can count the number of lines in the text with substr($text,"<br />" but this is not the same with the number of line of the formatted text at that width. Is there a way to calculate that? Thank …

Member Avatar for diafol
0
130
Member Avatar for iammet

I NEED TO KNOW HOW TO GET THE CHOSEN RADIO BUTTON.MAYBE THE COUNTERPART OF getText FOR RADIO BUTTON... I HAVE ONLY MALE AND FEMALE.

Member Avatar for ajst
0
356
Member Avatar for rpandia31

Can we call a single trigger for multiple tables.... say I have two identical tables a and b. now we have a trigger that is needed to be called by each table. It is possible in POSTGRESQL using Triggers function.... these functions allow to call a single trigger function from …

Member Avatar for rpandia31
0
93
Member Avatar for ogsirus

Hi Everyone, Ive been messing around the OLEDB in C#, What im trying to do is create a program that would read from a Access Database, and then the user has the right to add,edit and delete a records. So far i can get the Database to display and are …

Member Avatar for ogsirus
0
776
Member Avatar for pjh1985

Hi, I am developing a dynamic website and i want to highlight the current page but i'm having some trouble in applying the styles to the links. Here is what i've got so far: [CODE] <?php function checkPage($fPage) { $fCurrent = $_GET['title']; if($fPage = $fCurrent) { $fStyle = 'class="activelink"'; return …

Member Avatar for pjh1985
0
181
Member Avatar for Roriomphe

Hi All I have created a form for a user to register and be able to Logon.I need help with username and password validation code.This is what i have done so far and I'm getting this error:error: Column count doesn't match value count at row 1 Warning: mysql_num_rows() expects parameter …

Member Avatar for Roriomphe
0
116
Member Avatar for yardi

Can anyone be kind enough to teach me how to create programs that are sport related. Such as a program for a football/soccer league that does the following: Store players names, numbers, team, goals scored, etc. Show goal difference, league standings of teams. Be able to log information such as …

Member Avatar for ravenous
0
125
Member Avatar for RoyalElite96

Hi, I do know a bit PHP and also had no probles with regular expressions, [I]until now[/I]. This is my code: [CODE] $string = ereg_replace("([\"](.*)[\"])", "<span class=\"style10\">\\2</span>", $sting);[/CODE] . Why doesn't it work? It all runs fine when using: [CODE] $string = ereg_replace("([*](.*)[*])", "<span class=\"style10\">\\2</span>", $sting);[/CODE] , but I want …

Member Avatar for RoyalElite96
0
207
Member Avatar for coxdabd

Hi, do I need to LIMIT my blast script to fire out an emailer or can I just take it out. We have around 500 email address in our database. Having to reload the script is going to become painful - is there anything I can do? My hosting provider …

Member Avatar for coxdabd
0
362
Member Avatar for gedas

hey guys, i have been asked to create a little web service. i have a very little understanding of how web services work but as far as im told is that all of my GUI has to be on client side and the logic of the program needs to be …

Member Avatar for gedas
0
108
Member Avatar for skylight25

Hi all, my problem is that i want to block my main frame when i call a JDialog! i try several things but cant! I use this to call the JDialog [CODE]public void showAboutBox() { if (info == null) { info = new Informacion(this);//call my jDialog info.setLocationRelativeTo(this); } info.setVisible(true); }[/CODE] …

Member Avatar for Dean_Grobler
0
196
Member Avatar for skorm909

i was working on a simple calculator and here's the problem I'm having: i want the whole program to loop over and over until the user decides to stop, so i put a while in there and the loop works great, but when the user is done inputting the numbers …

Member Avatar for Jason Giggs
0
167
Member Avatar for flasp

I cant solve this assignent. I hope a helpfull soul can help me out. The problems goes like this: Write a program that ask the user to enter the number of seconds as an integer value(use type long) and that then displays the equivalent time in days, hours, minutes and …

Member Avatar for Jason Giggs
0
180
Member Avatar for Tseegii

How to save listview data to database? Not work code: [CODE]private void Insertbutton_Click(object sender, EventArgs e) { string strConnection = "Data Source=OCH-ERDENE\\SQLEXPRESS;Initial Catalog=Database;Integrated Security=True; Pooling=False"; SQLiteConnection conn = new SQLiteConnection(strConnection); conn.Open(); for (int cnt = 0; cnt <= lsvXML.Items.Count; cnt++) { string query = "INSERT INTO DataObject VALUES('" + lsvXML.Items[cnt].Text …

Member Avatar for sayeevani
0
187
Member Avatar for shinsengumi

Hello all. I created a C program that used MySQL in Linux and now I'm transferring the program to Windows. I would like to ask what software do I need to download/install in Windows to be able to compile and run the program there? Also, when the program is already …

Member Avatar for shinsengumi
0
158
Member Avatar for LJames

I need to create pages of address labels using VB Express, so no Crystal Reports. The end user does not have Office, so no mail merge either. I am using an Access table for data source. I need to be able to save it as a pdf so the documents …

Member Avatar for LJames
0
93
Member Avatar for DARK_BYTE

Hi I have to develop an algorithm visualization tool for my project. I divided my tool into these 4 modules below: [QUOTE]The tool will be divided into 4 modules: -The GUI -The Visualisation module -The Calculate module -The Compile module The GUI the GUI class is the class that forms …

Member Avatar for JamesCherrill
0
380
Member Avatar for Nemo_NIIT

HI I have install Nunit when i am running this nunit it gives me some error and the error i am getting is [COLOR="Green"][B]"This assembly was not built with any known testing framework"[/B][/COLOR]:'( and in c# in reference i am adding the .net framework and in that i am not …

Member Avatar for Amol Ranjere
0
95
Member Avatar for tanzi816

I'm trying to write a program that can win a Battleship game in fewer than 60 guesses. Since the Battleship game that I am writing this for uses a 10x10 array, I thought that first of all I would just try to win the game in 100 guesses before I …

Member Avatar for vinitmittal2008
0
235
Member Avatar for bflack

//I need help please? [CODE]#include<stdio.h> #include<iostream.h> class Time { public: Time(); ~Time(); void setTime(int, int, int); void printMilitary(); void printStandard(); private: int hour, minute, second; }; void Time::printMilitary() { cout<<"Military time: "<<hour<<minute<<second; } Time::Time() { hour=minute=second=0; } Time::~Time() { cout<<endl<<"Destructor code."; } void main() { Time wakeup, samplePM; wakeup.setTime(6, 5, …

Member Avatar for WaltP
0
464
Member Avatar for bwbyron

Okay. So I'm writing this snakes and ladders game, and I want to be able to save the scores, but the try/except method seems to be giving me trouble. I feel like it has something to do with the fact that I'm not writing, just reading. But I'm not sure …

Member Avatar for bwbyron
0
201
Member Avatar for penguins10

Hi, I have a homework assignment that I just cannot figure out. I would be grateful of any help. The assignment is: Create a program which: Implements a class called Queue: The class should contain an array of maxQ integers. There should be two constructors: One that takes no argument …

Member Avatar for Zeeshan Cheema
0
244
Member Avatar for anler

Hi guys, I'm doing a web app that will be available in various countries and I need it to be quick enough. That's why I'm wondering if keeping a separate database for each country would be faster than using a common database and filtering the results by country?

Member Avatar for smantscheff
0
71
Member Avatar for erum

ca any one correct my insert query in database [code] Dim hotel_book As String = "insert into hotelbooking (Userid, hotel_requirement_Types, singleroom, single_no_room,doubleroom,double_no_room) " & _"VALUES (" & userid & ", '" & ckchecked.Text & "' , & singlecheck & , & no_single_room & , & doublecheck & , &no_double_room & …

Member Avatar for kvprajapati
0
94
Member Avatar for Leppie

My program runs a three dimensional maze (3x3x3 = 27 locations) it has a start room exit room and code room all in a loop so no two are the same location, the start and exit rooms show up on the run compiled program but the code room does not …

Member Avatar for Leppie
0
149
Member Avatar for TrueCoding

Hi I need to have an array in my program that is defined by the user. I just need the user to enter the size of the array and then enter the integer values that they want to store in the array. I know how to declare the array myself, …

Member Avatar for vinitmittal2008
0
493
Member Avatar for chi18

Hi Can anyone Help me for the program in C Using Looping Statement Create A program That Input A number And Then Convert It in Asterisk using looping statement..eg input number 5 and the output is the 5 asterisk(*****)..help me plss...:icon_smile:

Member Avatar for chi18
0
84
Member Avatar for SabinIvy

Okay I have tried everything to alter the code but nothing works, so I ask for your help. The thing is I am trying to turn my code from this: *______* **____** ***__*** ******** ***__*** **____** *______* into this: *________* **______** ***____*** ********** ***_**_*** **__**__** *___**___* ____** ____** ____** ____** …

Member Avatar for VernonDozier
0
446
Member Avatar for skorm909

I'm making a simple text RPG game that I will later (once i get the code running well in the text version) put it to graphics and so on. Basically what this code is doing is, there's a monster that the user just killed. based on that monsters level that's …

Member Avatar for sfuo
0
226
Member Avatar for MatthewT

Hi, I'm writing a program in C++ that is driven by events that occur externally to the computer. As far as the program is concerned the event is just a change from false to true and I figure the simplest transmission mechanism would be over a single pin on the …

Member Avatar for VernonDozier
0
100
Member Avatar for Spiffy P Mcgee
Member Avatar for atoklas

I am trying to read in names and telephone numbers from a text file using fscanf. The format of the data is: 9073234 Colwer, Mrs J. 3823823 Le Boeuf, Mr S. To do this I am using the following line: fscanf(fpp,"%d %s %[^\n]s",&a,surnames[i],firstnames[i]); This works except for "Le Boeuf" where …

Member Avatar for milkz
0
220
Member Avatar for mbarandao

Hello: I'm using this script as an auto resize function for an iframe, but can't get it to work [U]in safari. [/U] [CODE] <script type="text/javascript"> <!-- function calcheight() { var the_iframe = document.getElementById('paymentHistory'); var the_document = (the_iframe.contentWindow ¦¦ the_iframe.contentDocument); if(the_document.document) the_document = the_document.document; var the_height= the_document.body.scrollHeight;} //--> </script> [/CODE] to …

Member Avatar for mbarandao
0
208
Member Avatar for rockerjhr

how do i make a program that calculates the product of two vectors in C ? this is what i have but i think im doing it wrong i need some help? [CODE]#include <stdio.h> double inner(double m[ ] , double n[ ] , int size ) ; int main( int …

Member Avatar for Dervish1
0
244
Member Avatar for searchfgold6789

Hi. I am posting here because I thought maybe you guys could help me with a QBasic thing. I am trying to make educational software in Qbasic, namely a quiz creator software. I will have the Questions and quiz answers in files on the hard disk. How do I print …

Member Avatar for Rich_ch47
0
116
Member Avatar for ellenski

Hi, We were asked to make a subscription type of form. Details needed are username, password, first name, last name, etc. My problem has something to do with the password validation. when i feel in the password field and the re-type password field, both of them should be checked. If …

Member Avatar for ellenski
0
7K
Member Avatar for CJMW
Member Avatar for kamotekid08
0
240
Member Avatar for amari ♥

i need help with the following: make a program that gets the summation of a given number e.g. 4+3+2+1 implement it using both iteration and recursion ex. enter a positive number: 4 the sum is 10.

Member Avatar for Shankye
0
165
Member Avatar for chamika.deshan

Hi I have a third party code. [CODE]class Lazy { protected: template <class T> static void create( T*& ptr ) { ptr = new T; } }; template < class ClassT, class Policy=Lazy > class MakeT : private Policy { public: static ClassT* instance() { static ClassT* ptr = 0; …

Member Avatar for mrnutty
0
147
Member Avatar for kamotekid08

How can I create a program where the output is name,horoscope,birthdate and birthstone..

Member Avatar for kamotekid08
0
110
Member Avatar for i_luv_c++

Hey Guys, I am writing a Recursive Function which picks the best move for Computer(sort of A.I.) i have done all the base cases however couldn't figure out how to deal with the last part. [QUOTE]Given n stones the player can remove 1, 2 or 3 stones per move. The …

Member Avatar for mrnutty
0
130
Member Avatar for g_riding

I am learning C++ and having a problem with adding numbers in a [10][10] array. It reads the data from a file. I have the array set up and I have to add the numbers diagonally left and right. I have to add prj6[0][0] then prj6[1][1] then[2][2] and so forth. …

Member Avatar for g_riding
0
452
Member Avatar for Ragster

Hi, this is my first time posting here so I'm sorry if I post something wrong. I have an assignment for my class and I think I have done everything right, well except for this one error that's been killing me. I get this error for each function call when …

Member Avatar for Ragster
0
710
Member Avatar for xuexue

could you help me guys to translate this code from PHP MySQL to PHP ODBC. i'm having a hard time to run this page using the PHP ODBC which uses MSSQL connection. any help would be very much appreciated.. thanks in advance ^^ [CODE] <?php $return_arr = array(); $sql = …

0
91
Member Avatar for Gdyson

This looks pretty simple on the face of it but I can't get my head around it. I have two tables that I'm querying: dbo.tblrespondents RespondentID FirstName Surname dbo.tblrespondentschildren RespondentsChildID RespondentID ChildFirstName ChildSurname ChildDOB ChildSex I am trying to find which Respondents who have only sons - one must be …

Member Avatar for darkagn
0
151
Member Avatar for sachintha81

I was looking for a way to Start / Stop Windows Services residing in a remote machine using C# code, and found the following code sample. It works fine for me. It is coded using Impersonation Technique, which apparently requires both the machines (let's say A and B) have a …

0
110
Member Avatar for louiscos77

Hi guys, I'm planning to make a car game & for that I'll use Microsoft Visual C++ 2010 for programming, directX 10 for the graphics, & Nvidia PhysX engine for the physics. The problem is that I can't find any tutorial of directX and Nvidia PhysX, I only find of …

Member Avatar for louiscos77
0
559
Member Avatar for rowen17

after compiling it this errors came out, what do u think is the possible solution for this? thanks! Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 9 at accountinfo.<init>(Main.java:73) at accountinfo.main(Main.java:142) [CODE] import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.io.*; class accountinfo implements ActionListener { private JFrame f3; private JButton jLogout; private JPanel …

Member Avatar for rowen17
0
180
Member Avatar for ace8957

Hi all, So I'm currently teaching myself about hash tables. I'm doing a programming challenge where I create a hash table that stores instances of a class Person, with data members for name, phone number, and GPA. The table uses separate chaining to take care of collisions. The node I'm …

Member Avatar for ace8957
0
269

The End.