132,726 Archived Topics
Remove Filter ![]() | |
the last record is getting displayed twice.i hv rechecked everything and cudnt find the error. here is the add n display function. [code=c++] void add() { example abc; int n; ofstream file1("EXAMPLE.dat", ios::binary|ios::app); cout<<"Enter Number Of Records To Add "; cin>>n; cout<<endl; for ( int i = 0; i < … Software Development c++ display file-system ios | |
Hello Im new to C programming, im trying to learn how to create a textfile with whatever name the user of the program wants. something like this, please ignore that this code wont work, its just so you might understand how i am thinking: [code] FILE *file; printf("name of the … Software Development c | |
Help! I need to total up values which are monetary ie VAR1=123.20 ( £123.20p) VAR2=2000 ( £2000 ) can i do this using expr, i can total them up, but lose the .20p Any help would be much appreciated Software Development shell-scripting | |
I want to read MS-Excel file using EVC++ 4.0.The file contain strings.How this could be done?Thanks in Advance. Regards, priyank Software Development c++ | |
OK Hi peeps new to daniweb. I have a script missing for one of my classes because I missed due to work :( It's a very simple4 script (I think) It need to eccept the input of ten numbers compair them and output the highest number. This simpler the better … Software Development shell-scripting | |
I am trying to figure out when I enter the data instead of asking for person #1: everytime I can get it to ask person #1: then on the next line person #2: and so on. Here is my code so far: [CODE]#include "stdafx.h" using namespace std; int _tmain(int argc, … Software Development c++ | |
Hey guys, I'm new to this board and C++ and was looking for a little help or guidance on this program my professor assigned. She assigned the class to create a BMI Calculator, and I have all the nessesary input given for it to work perfect but im not sure … Software Development c++ | |
I have to be able to have the program output invalid input if the number is not 1,2,3,4. When I run this program it automatically puts invalid for everything. [CODE]#include "stdafx.h" using namespace std; int _tmain(int argc, _TCHAR* argv[]) { const int People = 5; int i, PeopleTypes[People]; cout << … Software Development c++ | |
Hi there I'm now using Microsoft Access and i have a column called VT. I stored it into a variable called vibrotactile. [INLINECODE]vibrotactile = ds.Tables("maskingSimulator").Rows(s).Item("VT")[/INLINECODE] The problem is the column contains checkboxes. If my VT column is not checked, it will carry out Case 1. Else, if my VT column … Software Development microsoft-access vb.net | |
Hello. I would like to show a multiline caption on a button, but with the second line in bold. Can somebody do it? Currently I have a multiline caption, but don't know how to draw text in different font styles (color, style, size, etc.) within one button. (Delphi 2006) Thanks … | |
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() { … Software Development c | |
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 … Software Development c++ | |
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 … Software Development sql visual-basic | |
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 = … Software Development java | |
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 … Software Development visual-basic | |
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> … Software Development html-css java java-jsp javascript session | |
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 … Software Development java | |
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 … Software Development c++ file-system | |
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. Software Development shell-scripting | |
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 … Software Development c++ visual-studio | |
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 = … Software Development c++ | |
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 … Software Development visual-basic | |
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 … Software Development c | |
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 … Software Development c++ | |
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 … Software Development algorithm c encryption | |
// 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? Software Development visual-basic | |
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? Software Development java | |
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 Software Development perl | |
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 … Software Development c++ | |
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 … Software Development c++ | |
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 … Software Development c++ | |
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, … Software Development c | |
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 … Software Development c++ | |
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 … Software Development xml | |
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 … Software Development c++ | |
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 … Software Development c++ | |
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 … | |
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 … Software Development visual-basic | |
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 … Software Development c++ | |
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..... Software Development c++ | |
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 … Software Development c | |
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 … Software Development c++ | |
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 … | |
i have this problem my file Computer.java is in desktop but not work :$ [CODE]public class Computer { public static void main (String []argv){ System.out.println("BllaBllaBllaBlla"); } }[/CODE] here is the screenshot [URL="http://aycu40.webshots.com/image/30159/2002091781242929104_rs.jpg"]http://aycu40.webshots.com/image/30159/2002091781242929104_rs.jpg[/URL] Software Development java | |
Hi i am developing an application in C# which is going to put the system in sleep states like s1,s2,s3,s4 depending on the specification. [CODE]i need to get what are the sleep states supported by currently running system[/CODE] and also [CODE]how to know whether the system went into the sleep … Software Development c# |
The End.