199,114 Archived Topics
Remove Filter ![]() | |
pls help me on solving my project. this program isrunning but when i press enter it will be sent back to the compiler. pls help me thanks in advance [code=c] #include<stdio.h> #include<conio.h> #include<string.h> string(); int x,i,a,b,y; int stocks[5]={4,5,3,6,2}; int code[5]={100,101,102,103,104}; float cost[5]={5000.00,4000.00600.00,3500.00,7000.00}; char des[5]={'t',d',v',v',c'}; float PA ,dis,net_pay,downpayment,monthly; int main() { … | |
I'm working on a project (lord knows why, I'm a below average coder) where I need to identify a phone number and its country code and national code to obtain the billing info.. I have been able to obtain the the country code without problems, but I'm having problems getting … | |
I have a variable of type float.can anyone tell me how to put this in session as an attribute so that i can use it in other pages.plz reply | |
Hello there, I need to write a function that insert new data into a text file, and I manage to do that, but only for the first row.... When I close my program, and reopen it to key in a 2nd input, it will simplely overwrite my 1st input. how … | |
Here I am again with my next sql problem. I'm not sure if I can use insert into for what I need. What I want to do is the following. My tables I have tblreminder with userid workid workdate I have tbluser with userid and username My textbox I have … | |
There are situations that exception could be throw within constructor and we usually employ auto_ptr to protect resources. But if we do not have auto_ptr can we use the following technique to handle it? Please search "QUESTION" and see my question. Thank you for helping!!! [code=cpp] #include <cstdio> using namespace … | |
I am learning java and was looking at this program I don't understand what is wrong with it, I am getting an error that says something about the compareTo cannot be found and variable cannot be found. [code] class Card implements Comparable { Card(int r, int s) { rank = … | |
I f I enter the name of a any person in an InputBox and I want that name to appear in a MessageBox, who do I do this? Exmaple: If I enter Bill, I want to see in the MessageBox: Bill, but if I enter Lucy I want to see … | |
jsp code <%@ page import="temperory.Mrityunjay.*"%> <%@ page import="com.MindShaper.ClassTeacher.Utility.BaseServlet.VSHttpServlet" %> <%@ page import="java.util.*"%> <%@ page import="com.MindShaper.ClassTeacher.Utility.Helper.*" %> <%@ page import="ClassTeacher.SessionObject"%> <%@ page import="ClassTeacher1.MemoryTables"%> <HTML> <HEAD> <TITLE>Student Information</TITLE> <!-- for confirm () --> <script language="JavaScript1.2" src="functions.js" type="text/javascript"> </script> <link rel="stylesheet" href="lib.css" type="text/css"> <style type="text/css"> <!-- td { padding-left: 15px; } --> </style> … | |
Here the error i get from the file below [code] F:\JAVA\Java Files\lab employee\FulltimeEmployee.java:1: cannot find symbol symbol : class Calender location: package java.util import java.util.Calender; ^ F:\JAVA\Java Files\lab employee\FulltimeEmployee.java:22: cannot find symbol symbol : class DateComponent location: class FulltimeEmployee DateComponent dc = new DateComponent(date); ^ F:\JAVA\Java Files\lab employee\FulltimeEmployee.java:22: cannot find … | |
I have a file that is representing an image, here's the puddle.img file: 10 22 2222888222882222228882 2222888222882222228882 3333333333333333333333 1111111111111111111111 1111144444111111111111 1111444444411551111111 1114643434345551111111 1111333333311551111111 1111133333111111115114 1111111111111111115543 The first two numbers are the size of the image, rows and then columns. Then I have to pull in the image, and before the … | |
Dear all, Please let me know the meaning of the script. #zcat compressed_tarball.Z | (cd /export/opt; tar xvfp -) Actually I am I search of command to untar file in to mew directory. Then I got this, but I don't understand it. | |
Hello there, I come from a Java background, and I am a very able with java. I would like to try C++ to build a chess engine, since my java chess engine lacks the performance that can be obtained using C++. I've been trying to set up a C++ IDE, … | |
Hello there ive written my own linklist in a template way but it doesnt seem to want to work when i add classes rather than primitive data types to the list... heres the code: [the node itself (template) [code] #ifndef LINKLISTNODETEMPLATE_H #define LINKLISTNODETEMPLATE_H template <class T> class LinkListNodeTemplate { public … | |
Hello, I would like to be able to declare a filename as a global constant (so I can change the input file easily), which seems to be a simple thing to do, but I can't seem to get it to work. I declared this globally: [code] const string RES_FILENAME = … | |
hi.i have problem adding record into access database because these tables i've created has relationships.i need to add record (from a single vb form) into 2 different tables. these 2 tables refer to the same record id actually.but first i need to add record into the first table because then … | |
i try to compile this programm useing pluto,it shows me error .where schould the fehler be? [code=c] #include <"stdio.h"> int main() { int counter; int even=0; int b= 7,int h= 10; if h+ = b % 10; b /= 10; for( counter = 1; counter <= 10; counter++); { if … | |
i need help to make this program work i created a class and made the setter and getter and it compiles now i made search by name and id but it doesn't work and i need to find max average for 10 students and print information of the student with … | |
I am developing a website where users can ad entries to a database. I am using phpMyAdmin to create the database. It works perfectly on my local testing environment, but when I upload it to my remote server it doesn't. I have used my hosting company's (GoDaddy) version of phpMyAdmin … | |
Hi I'm tying to get php to calculate someone's age from that person's birthday, for example 1985-04-11 the age would be 20 anyone can tell me how I could do that? Thanks! | |
Hey guys, I'm a long time lurker, and first time poster. Please be kind. Anyways, for one of my classes, Principles of Algorithm Design 1, we had an assignment where we had to create a program that would encrypt and then de-encrypt a message by offsetting the characters by a … | |
// accept numbers from 0.1 to 99.9 then count the number of tens, ones, and tenths import java.io.*; public class accept99_9 { public static void main(String[] args)throws IOException { BufferedReader abc=new BufferedReader(new InputStreamReader(System.in)); System.out.print("Enter a value: "); String input=abc.readLine(); float v=Float.parseFloat(input); float tens=v %100; float ones=v %10; float tenths=v %10; … | |
i need help on making a login page and register page that will be linked together using access. can anyone teach mi the step to make it? | |
I have an executable that contains java components. From the java code, I need the access the executable's modified timestamp (so I can use the year). Any ideas? | |
<html><body> <%@ page import="java.sql.*" %> <% String user="root@localhost"; // root itself String password="pwdl"; String connectionURL = "jdbc:mysql://localhost/Database_name"; Connection connection = null; Statement statement = null; ResultSet rs = null; Class.forName("com.mysql.jdbc.Driver").newInstance(); connection = DriverManager.getConnection(connectionURL, user, password); statement = connection.createStatement(); rs = statement.executeQuery("SELECT * table"); while (rs.next()) { out.println(rs.getString("name")+"<br>"+rs. getString("emailid")+"<br>"+rs.getString("contents ")+"<br>"); } … | |
hi i want to write all the elements of an array to a file to generate a report i tried the following code. foreach(@main_time) { system([EMAIL=""]"echo \"@{$_}\[/EMAIL]" 1>> $file_name 2>&1"); } But the its not writing into the file. please suggest me how to do this | |
Okay, so I just got some help on how to find the average of 30 randomly generated numbers. The next thing I would like to do however is a little trickier, I think. I would like to display the highest randomly generated number in the equation. Here is what i … | |
Hi, I Have tried to make average calculator but I cant make few things happen and I would really appreciate some help with this. This is the code I came up with. Questions are below. [CODE]#include <iostream> using namespace std; int main () { int a, b; float result; cout … | |
I am trying to write a program that takes a specif range from the user and generates 30 random numbers in that range. I have that part worked out and the code works fine but I have no clue how to take the average of those 30 random numbers. Could … | |
hi I have windows vista home basic runing on my pc , i've installed apache 2.2 and php 5.2.4 , i've added all the needed lines to httpd.config and restarted the apache , it's all fine and am not facing any error . but when I test it with the … ![]() | |
I hope I phrased the question properly... I'm just curious if there is a way to determine what programming language was used for a particular .exe application. I'm a programming newbie starting to study VB and, like many others, I wonder if this is the best language to learn. My … | |
Hi all I am totally new to C++ and I am using the Dev C++ compiler and getting the tutorial off [URL]http://www.cplusplus.com/doc/tutorial/program_structure.html[/URL] I ran the first program (code below) and it compiled fine but when I run it a box appears then dissappears so quickly I dont have time to … | |
I can't find the answer to this in any C reference. The question is, is there any way to do this: [code=c] #define MAX 10; struct aStruct { int a; int b; }; typedef struct aStruct aType; aType array_of_atype[] = { {1, 2}, {3, 4}, {5, 6}, {7, 8}, {9, … | |
hi guys, I've been done with my c++ training and i applying it to some of my projects. I've started reading some OpenGL tutorials. What would be the requirement for creating a Game in 3D/2D?what would you prefer? | |
Hey. I'm having some problems with creating user defined functions. [code] # include <iostream> using namespace std; int num1, num2, x, y; int perimeter (x,y); int main () { cout << "Enter the length and width of the rectangle: "; cin >> num1, num2; perimeter (num1,num2); cout << "The perimeter … | |
I want to model a situation where you can have multiple children of an element, and the children can be different types and in any order. A simple example of what I mean is at [1]. I am trying to make a schema to define this document, my attempted schema … | |
![]() | which way is the best to design multi-language web sites ? PHP/XML or PHP-MySQL ?? ![]() |
Hi, I have the following javascript: [CODE] <script language="javascript" type="text/javascript"> // Global variables. var numSeconds; var timerId = null; var timerInterval = 1000; var numUpdates = 0; // Handle OnLoad event. window.onload = Window_OnLoad; function Window_OnLoad() { StartProcess(); } // Starts the process for updating the Map. function StartProcess() { … | |
I have a question on my handout for class that says: Justify / refute the statement that theese declarations are equivalent. double speed[1] ; double speed; My guess was they are the same, since, even though speed[1] is an array, it is the same size of just speed. Am I … | |
Without creating global variables, is there a way to pass variables to the WindowProcedure that handles the messages? For example, if I create a variable and initialize it in WinMain, is there any way to use it in my WindowProcedure? What I am doing is this. I have a class … | |
I need to make the program: [QUOTE]Write a program to ask for a string and a single character. Read in the string using getchar(). Read in the character using scanf(). Count and report the number of occurrences of the character in the string. Add a brief comment at the beginning … | |
hello, i want to know that how to pass parameter in crystal report in asp.net using vb.net 2003 i want to pass parameter through drop down list control plz help me out thanks in advance it';s hurrry | |
i've seen various threads about this same problem (at least i'm not the only one:D), but the most recent post is from 2006, so i wouldn't like to revive a long dead thread... :P i've installed Apache 2.2.4, and PHP 5.2.3 for Windows 32 i'm working on Windows XP... my … | |
HI I want to create an Instance of Class(Object) In Visual Basic.Using "Create Object " Syntax. please refer attached CPP & header File for the class COMOutput. How can i create an object for this COMOutput Class in Visual Basic. And I need to access the Functions Defined in The … | |
Hi everyone, I'm trying to implement a binary search tree but im having troubles with my Add function. The add function is supposed to take a pointer to a variable and add it to the tree. To begin with, the add function is called from Insert, which sends the new … | |
hi there my c++ programs are not running an error message is coming that tv.lib not found but i have checked that this lib file is there along with other file in the path that i have specified in directories path option ... can anyone help me..... | |
This post is copied from another member :[B]mohanavv[/B] ; with his prior permission. Hi! We have a network of about 55-60 computers (netware & NT) running XP and Win2000 workstations. We have about 5 network printers and copiers to which a computer can print. What I'd like to do is … | |
Hi. I was wondering if any one could help me with this program. I didn't get any error messages. It was excecuted but the output was incorrect. I got Unordered data: 7 3 66 3 -5 22 -77 2 After pass 1: 7 3 66 3 -5 22 -77 2 … | |
Apart from buying BoundsChecker or any of the other tools to track down memory leaks. Does anyone have any advice or tips from your years of programming experience to offer on how to track down the causes of memory leaks? I find that the big dump that happens at the … | |
i have this assignment to compute the factorial of an integer of any length. I have done it using array of char and then overloading the * operator accordingly. It works fine but i wanted to know if there were other efficient algorithms for counting factorials of any length. Give … |
The End.