199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for SacredFootball

full function: [CODE] void finalScoreMessage(bool prematureExit) { if (finalPoints_ > highestScore_) { cout << "You've beaten your previous high score! The new high score is: " << finalPoints_ << endl; saveScore(); } else if (finalPoints_ <= highestScore_){ cout << "Your score is: " + finalPoints_ << endl; cout << "Your …

Member Avatar for SacredFootball
0
110
Member Avatar for Blax

Hello ive been working on this real number program for a couple of days and i still cant get it working it always prints out the same two numbers 1 2 1 2. Please help. [CODE] public class perfectnums { public static void main(String[] args) { int n = 1; …

Member Avatar for Blax
0
166
Member Avatar for SacredFootball

hey all. I've been banging my head on this for hours. I'm trying to get only whole numbers from a user and if they input anything different, I want it to display a validation error and restart the function. Here's what I have: I'm either getting an infinite loop of …

Member Avatar for mitrmkar
0
18K
Member Avatar for p_jain

i want to connect jsp with mysql , plz send me the connectivity code or any connectivity program...............

Member Avatar for jwenting
0
99
Member Avatar for decoy684

Hello everyone, I am starting to run completely out of time on an assignment that is due tomorrow. No I'm not asking for free code here, because I already have it 99% complete. My assignment is to read a text file into an array and bubble sort them from highest …

Member Avatar for rurouni
0
318
Member Avatar for skorm909

ive heard people using somthing like[CODE]#include <windows.h>[/CODE] so that its not in the command prompt and its in a window the size the person making it selects

Member Avatar for mitrmkar
0
85
Member Avatar for aripaka

hi, can anybody please help me understand the difference between java runtime and java virtual machine?

Member Avatar for thebody
0
202
Member Avatar for Twonk

I have no error or warning when compling this code but as you can see it keeps changing one of my inputs (int ID) into a random number. This same number is still the output when i change the imput. code: [CODE]#include<iostream> #include<string> #include<sstream> using namespace std; class student { …

Member Avatar for Twonk
0
113
Member Avatar for AndiNo

Hello everyone! For the last week I've been trying to convert an EXE file into a DLL. I read about 1000 Google pages on the way and now know much more than in the beginning :) I have nearly succeeded in getting the "DLL" to run but there is one …

Member Avatar for AndiNo
0
255
Member Avatar for Krstevski

Hello friends, if someone wants to help me with one task. (I want example) The task is: One calculator can make two operations (multiply and subtract). Return the minimum number of operations needed to get to target (or -1). Example: Your multiply number is 5 Your subtract number is 7 …

Member Avatar for gusano79
0
139
Member Avatar for johnnyd1986

I need to know what the command is for setting a specific set of decimal places in an answer, somewhat like the PHP number_format command. Here is what I got coming up in my answer.... 0.7893948 I need it so it says: .789 Anyone have an idea of what the …

Member Avatar for snippsat
0
170
Member Avatar for HiHe

I am using Python 3.1.2 What is the best way to get numeric (float or int) user input?

Member Avatar for TrustyTony
0
4K
Member Avatar for dixie_flatline

Hi, i have a project to do in VB and its been a while i done anything in it. My problem is taxation and decimal places. How can I round 2.19 to 2.20 ? the actuall number was 2.194 and vb6 rounds it at 2.19, is this as it should …

Member Avatar for dixie_flatline
0
2K
Member Avatar for xmlstudent

I have this piece of code: [CODE]<xsl:value-of select="format-number(/object/data/row/EGL_1244 - /object/data/row/EGL_1886,'0.00')"/>[/CODE] The idea is it subtracts EGL_1886 from EGL_1244 and displays the result as a number. However, on occasion each value can have a comma in it. So the value "1,234.56" would make the result show NaN. How can I rework …

Member Avatar for xmlstudent
0
80
Member Avatar for VilePlecenta

I have tried resizing the taskbar with all the normal Windows APIs SetWindowPos MoveWindow SetWindowPlacement But to no avail. The taskbar does not even flinch, what would be a good way to adjust it in its width, height, pos.

Member Avatar for VilePlecenta
0
107
Member Avatar for ku95

[B]Connect4View[/B] [CODE]import java.awt.*; import java.awt.geom.*; import javax.swing.*; import java.awt.event.MouseListener; import java.awt.event.MouseEvent; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import javax.swing.JButton; public class Connect4View extends JFrame { DrawPanel canvas; Connect4Model model; ControlPanel myControlPanel, JRadioButton; public static void main(String[] args) { Connect4View w = new Connect4View(); w.setVisible(true); } public Connect4View() { setTitle("Connect4 solution"); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setSize(500,220); …

Member Avatar for quuba
0
107
Member Avatar for krishnisilva

hi, in the database i have a value as True, when it is true i need to write a code for the check box to be ticked when the form is loading i ma using VS 2008 standard C# language? does anyone know the solution for this?????

Member Avatar for farooqaaa
0
89
Member Avatar for gabsi

Hi, I searched for few days, and even if I see that there are people getting this error, I can't find a solution. I have an application communicating over the serial port. The application is written in VB6 and 2 PCs, one with XP, the other one with Vista. If …

Member Avatar for gabsi
0
2K
Member Avatar for brain007

Make a project, consisting of 3 modules: student.cpp, course.cpp and register.cpp. Write source and header file for a program that registers students for courses. Design a class student that stores the name of the student, the id number and array (vector) of all course numbers for which the student is …

Member Avatar for Sodabread
0
2K
Member Avatar for Th3one234

Hi Guys (and gals), Thanks for taking the time to read this, hope someone can help. I've been tasked with developing an anti-virus scanner as part of a university assignment. I've written all the signature matching code, which works fine, and the software can scan through a directory and find …

Member Avatar for Th3one234
0
115
Member Avatar for Learner7

Hi, What is the code to write in txtCaps text box event which can change the whole text entered in as capital letters? Thanks.

Member Avatar for Learner7
0
102
Member Avatar for ajjg123

My assignment is to make a recursive bubble sort, but I'm not allowed to use any loops.... In fact, the only loop I can use is in the main when I call the function. I'm totally clueless as to what to do. This was an example of a bubble sort …

Member Avatar for ajjg123
0
450
Member Avatar for pedro2010

Hello, Could anybody please help me soon: In C++, a number x= 367.1234444444444444444. I only want to get x=367.123 or x=367.1234 (some digits after the sign ".") Which function to get it? Thank you in advance. Pedro

Member Avatar for mrnutty
0
98
Member Avatar for lisles

im working with asp.net 2.0 and im using master pages.i have a link to a pdf file...when i click on the link i want the pdf to open within the contentplaceholder.im using iframe within the content placeholder.my master page code is below: [code] <%@ Master Language="C#" AutoEventWireup="true" CodeFile="jm.master.cs" Inherits="jm" %> …

Member Avatar for kvprajapati
0
917
Member Avatar for Krunalexpert
Member Avatar for vbboy
0
135
Member Avatar for ans2007kumar

if i used this [CODE]<authentication mode="Forms"> <forms loginUrl="Default.aspx" timeout="90" /> </authentication> <authorization> <deny users="?"/> </authorization>[/CODE] so that unauthorized user do not access the content then the Default page do not show any images in the login page i have to use this in order to do so [CODE]<authentication mode="Forms"> <forms …

Member Avatar for ans2007kumar
0
81
Member Avatar for mgern26

ok so i need a code that can read a list of random numbers from a note pad and then sort them, i have it set that it reads the notepad that it is supposed to but how do i make it sort // this is what the notepad file …

Member Avatar for javaAddict
0
100
Member Avatar for bravo659

Hello Everyone, I have an MDI form which works fine. At startup the childform opens and its windowstate is maximized. In the childform I have a textbox but does not have a windowstate to maximize. How can I maximize the textbox with the childform? This is my formload: [code] private …

Member Avatar for bravo659
0
125
Member Avatar for babz83

[B][I][COLOR="Green"]Hi,[/COLOR][/I][/B] i am currently doing a project that will be used to add employees to a database. I have already designed the form and have gone ahead to do some coding. Though am stuck a bit, i can not be able to detect whether the employee does exists in the …

Member Avatar for vbboy
0
665
Member Avatar for vkscool

I am trying to search data in database at runtime.... when a user put the license no in the text box and press button this is my query but it is not working, for every search it is showing first record of the database...... Set rd = New Recordset rd.Open …

Member Avatar for vbboy
0
115
Member Avatar for am5a03

What I want to do is: change the array a[] = {1,2,3,4,5} to a[] = {5,4,3,2,1} by recursion [CODE]void reverse(int *a, int size){ if ( size == 0) return; int t = a[size-1]; a[size - 1] = *a; *a = t; reverse(a, size/2); }[/CODE] However, the above coding did not …

Member Avatar for am5a03
0
231
Member Avatar for beforetheyknew

Hi guys, just looking for a bit of help. I've fallen victim to a particularly bad teacher with concurrency and now i have an exam in 2 weeks. I've been relying on online tutorials but the vast majority of it still escapes me. Can i ask what mutex is ? …

Member Avatar for beforetheyknew
0
85
Member Avatar for soilarmoon

please help me.. i want know the coding searching.. how can find search coding in vb 6.0?

Member Avatar for vbboy
0
146
Member Avatar for mansoorhacker

hello. i m using a datagridview in c#. i wana calculate total cost value from multiple rows of a single column in a data grid. i m actually sending the rows of the grid to the datatable and then counts the value throw foreach(datarow in dt.rows.count) { } but it …

Member Avatar for slider212
0
114
Member Avatar for Agent Cosmic

Hi, I need some help detecting the escape character ''. It doesn't show up when it's in a string. I'm trying to convert '/' into '&&' and '\/' into '||'. Help is much appreciated. Thanks.

Member Avatar for Agent Cosmic
0
291
Member Avatar for newbiecoder

Hello when Im trying to learn strncpy function, I copied a part of string to another char array, but it gave me different results when I used puts and printf functions. Can anyone tell me why such difference occurs? I guess its about the last terminating NULL character, but Im …

Member Avatar for newbiecoder
0
673
Member Avatar for helpmepassclass

Okay i posted a question like a day ago and didn't get no response, I did however figure out the problem. The problem I am having now with is the fact that it finds the numbers that i want it to but it also adds a zero which is in …

Member Avatar for javaAddict
0
116
Member Avatar for jellybeannn

[code] public List<DateTime> GetDates(DateTime startDate, DateTime endDate, int valuationDay) { TimeSpan span; span = endDate - startDate; List<DateTime> result = new List<DateTime>(); DateTime dateToParse = DateTime.MinValue + span; int yearMonths = 0; if (dateToParse.Year > 0) { yearMonths = (dateToParse.Year - 1) * 12; } int monthCount = (yearMonths + …

Member Avatar for jellybeannn
0
138
Member Avatar for kdott

i have a program that requires that I load info from a text file and in the end, make an arena out of it. The text file is in the following format: <number of rows in body> <number of cols in body> <body that is rows*cols big> ex: 15 15 …

Member Avatar for javaAddict
0
4K
Member Avatar for FotG2

I have this section of code that keeps giving a vector subscript out of range error, but I cant figure out why. the vector is defined as [CODE]vector< vector<double> > distance;[/code] for the test I am doing, point->size() = 3, and through the debugger I have verified that the matrix …

Member Avatar for daviddoria
0
216
Member Avatar for donaldw

Hello, I'm using code as shown below to play the first [i]duration[/i] milliseconds of a media file [CODE] MCIWndHome(m_Audio); MCIWndPlayTo(m_Audio, duration); [/CODE] This works fine to only play the first [i]duration[/i] milliseconds when the length of the audio file is greater than [i]duration[/i], but if the audio is longer than …

Member Avatar for donaldw
0
605
Member Avatar for niths

[QUOTE]hi all, in my insert project page wen i am above to insert project if the project size is greater than the allocated size then it should display some alert message,but my code not displaying anything.so please check my code. Thank u.[/QUOTE] [CODE]<?php $id=$_GET['f1']; @session_start(); require_once ("check.php"); createsessions($username,$password,$userid,$projectid,$projectname,$filename,$size,$allocatedmemory,$answer,$usedmemory); $con=mysql_connect("10.70.1.248","invensis","invensis"); if(!$con) …

Member Avatar for nav33n
0
89
Member Avatar for _yanto_

when you develop a database program, what's your choice and why (may be your choice not in list). - use dBase table (easy to use but not secure). - Paradox table (secure table) - MySQL (good for network but not simple/must install MySQL) so what's your choice?

Member Avatar for BitFarmer
0
96
Member Avatar for ku95

[CODE]import java.awt.*; import java.awt.geom.*; import javax.swing.*; import java.awt.event.MouseListener; import java.awt.event.MouseEvent; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import javax.swing.JButton; public class Connect4View extends JFrame { DrawPanel canvas; Connect4Model model; ControlPanel myControlPanel, JRadioButton; public static void main(String[] args) { Connect4View w = new Connect4View(); w.setVisible(true); } public Connect4View() { setTitle("Connect4 solution"); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setSize(500,220); setLocation(300,300); …

0
51
Member Avatar for severman

hi all I'm trying to write a procedure/function in pl sql that get the user's password, encrypting it with md5 algorithm and inserting it into the USERS table. any 1 knows how to do so? i know that md5 is not a good algorithm but i dont care cuz its …

Member Avatar for debasisdas
0
302
Member Avatar for -DLS-

Hi guys, I need some help for a homework I have due in 8 hours. I was assigned to write a recursive sorting algorithm that works with iterators :mad: After googling, and putting code together I got this. [CODE]#include <algorithm> template<class IT> void quicksort(IT begin,IT end) { \\begin and end …

Member Avatar for -DLS-
0
192
Member Avatar for NitaB

Okay, I have a slight problem here. My final project was pretty much open to anything. We just had to make a proposal and do it. So, I proposed a bank type program. I had it done and in the bag(or so I thought) until I was told to include …

Member Avatar for NitaB
0
1K
Member Avatar for Ni6tO_

I am trying to write a program in C with a main function and five other functions: input, output, calculate day of year for a calendar date, calculate calendar date from day of year and year, and determine if its a leap year function. I have a problem with calendar …

Member Avatar for Ni6tO_
0
165
Member Avatar for naveedmahar

Please tell me about <ctime> header file what functions it contains inside how to use them..

Member Avatar for caut_baia
0
74
Member Avatar for manikandanS

hi everybody, how to read FileMaker Pro 10 Data from .Net??? and I need ODBC dRIVERS fOR FileMaker Pro 10..... Please help me............. Searching For it THrough out the day......................... Regards, Manikandan

Member Avatar for Rjplus
0
289

The End.