132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for fishky

Hello guys, I'm selfstudying C++ and atm am reading about classes. I want to define ostream operator<< but compiler cant find ostream to be regular use. I'm using Visual Studio 2005 on XP SP2 and have MSDN installed. And another question - am I using proper initialisation for operator<< ? …

Software Development c++ visual-studio
Member Avatar for fishky
0
1K
Member Avatar for ejosiah

Hi everyone, anyone got a solution to this problem; some floating point arithmetic do not return the correct answers in Java one of such is subtracting 0.8 from 0.9; you would expect to get 0.1 but u get 0.09999999999999998. No one should tell me about trying bigDecimal because that does …

Software Development java
Member Avatar for javaAddict
0
169
Member Avatar for rainny

Does anybody know how to create the login page by using Java and MySQL? The login page is contains the username and password, then after check the database, if the username and password is match, then user can login to the main page. Anybody have any idea on it? Or …

Software Development java
Member Avatar for peter_budo
0
111
Member Avatar for piggysmile

Is there an algorithm in C++ to determine the digit located on a given place value of an integer? For example, 9 would be outputted as the tens value of 196. If none exists, is it possible to code it? If so, what are some of your ideas to do …

Software Development algorithm c++
Member Avatar for Denniz
0
394
Member Avatar for IrishUpstart

Hiya gang. I am currently in need of help (again! Bollocks!). Currently, i am unsure of where to start because, well, quite simply, I am not that smart. The problem is as follows: [I]Develop a program that will solve the transcendental equation x = cos(2x) to within +/- .0001 radians. …

Software Development c++
Member Avatar for VernonDozier
0
78
Member Avatar for Dontais

This has me a bit stumped but I must be doing something wrong here, if you don't mind checking this for me would be greatly appreciated. [CODE]int main () { int input; cout << "Enter a positive intiger to determin if it is odd or even (-1 to cancel): "; …

Software Development c++
Member Avatar for VernonDozier
0
80
Member Avatar for VernonDozier

Okay, suppose I have a class A and subclasses B, C, D, E, F, G. I have a function: [code] public void foo (A object) [/code] I have the default function handler which handles A objects which aren't subclassed, and the B, C, and D subclasses. Subclasses of type E, …

Software Development java
Member Avatar for VernonDozier
0
262
Member Avatar for jazzyangelz

Hi.... I'm a beginner at this programming thing and I need some help using nested for loops this is an assignment i have to do for my class, basically the output should be something like this.. the characters depends on what the user inputs and how many rows the user …

Software Development c++
Member Avatar for jazzyangelz
0
96
Member Avatar for radhika_kodam

i have assignment on java class. plz help me the assignment problem is:Create a class Rectangle with 9 methods: 2 constructors, 3 mutators, 3 accessors, and area. plz help me.

Software Development java
Member Avatar for stephen84s
0
141
Member Avatar for afg_91320

i have this code where i have to take user input of sales and display it as a chart. (see code/sample run below) my problem is if the user enters like $923.89, it should round down to $900 -but with the code i have, it moves it up to 1000. …

Software Development c++
Member Avatar for Ancient Dragon
0
73
Member Avatar for Kusno

Dear all, Does someone know how to connect to SQL Server by using Remote Method Invoke (RMI) ? I have project from my lecturer to create program as its connection to database uses RMI or socket. Thus far, I only know to connect to database by using OLEDB and ODBC. …

Software Development visual-basic
Member Avatar for Kusno
0
66
Member Avatar for FtKShadow

Alright I have been working on this game for like a week or 2 now, but I am having some trouble towards the end. Heres the code I have gotten so far: [code=c++]#include <iostream> #include <ctime> #include <cstdlib> using namespace std; char play; int guess; bool done; int noOfGuesses = …

Software Development c++
Member Avatar for FtKShadow
0
161
Member Avatar for rrreeefff

I am working on printing a loop statement. I worked on this to try the concept: [code=cplus] #include "stdafx.h" #include "stdio.h" int main() { int times,num; for (times=1; times<3; times++) { for (num=1; num<5; num++) { printf("%d",num); } printf("\n"); } return 0; } [/code] What I need is to print …

Software Development c
Member Avatar for Ancient Dragon
0
97
Member Avatar for shadwickman

Hello! I've run into a slight problem with my script. As I iterate through a list of strings, I need to print each string, but they all need to print on the same line, so I used this: [code=python] for item in myList: print item, [/code] The comma puts each …

Software Development python
Member Avatar for shadwickman
0
141
Member Avatar for NayNay33

I need help with a homework assignment. The assignment is to take a paragraph from an infile and change the words French into Freedom. Also when the phrase "an arbitrary end point" is seen I need to end the paragraph. And also if an integer if present the integer needs …

Software Development c++
Member Avatar for NayNay33
0
136
Member Avatar for chunalt787

I am trying to compile my program and I am getting alot of these errors: [CODE]Parser.cpp:9: error: stray ‘\200’ in program Parser.cpp:9: error: stray ‘\231’ in program Parser.cpp:9: error: stray ‘\342’ in program[/CODE] That sequence of three lines just keeps repeating and repeating. These are lines 8 and 9 from …

Software Development c++
Member Avatar for stilllearning
0
150
Member Avatar for dtaylor01

Can someone run my code template to see what's wrong? [code=cplusplus] #include "stdafx.h" #include <iostream> using namespace std; int _tmain(int argc, _TCHAR* argv[ ]) { int a = 40; //No. of hrs worked during week float b = 12.75; //Pay rate: dollars per hour float c = 510; //Weekly wages …

Software Development c++
Member Avatar for stilllearning
0
113
Member Avatar for san_sarangkar

Hello guies please help me how can I typecast string to char

Software Development c++
Member Avatar for stilllearning
0
169
Member Avatar for amerninja2

[COLOR="Red"]Im using the Dev-Cpp compiler. Im trying to create a program like the one below...[/COLOR] [CODE]#include <iostream> #include <windows.h> #include <stdio.h> #include <iomanip> #include <fstream> #include <stdlib.h> using namespace System; using namespace System::IO; using namespace std; int main() { string *com2; wchar_t com; char loop; loop = 'a'; while(loop = …

Software Development c++
Member Avatar for Ancient Dragon
0
132
Member Avatar for Grub

Hi I have a program that has a JTree that lists of all the directories on my computer. I also have a JList in and an add button. Now I am trying to select or highlight a directory in the JTree, click the add Button and then update the JList …

Software Development java
Member Avatar for brianlevine
0
328
Member Avatar for staufa

Can anyone tell me why I'm getting "number 1" as my output when i enter arguments 1, 2, 3. It seems like its always 1 and I don't know why. [CODE]int main(int argc, char *argv[]) { if (argv[1] = "1"){ printf("number 1"); }else if(argv[1] = "2"){ printf("number 2"); }else if(argv[1] …

Software Development c
Member Avatar for staufa
0
91
Member Avatar for serkan sendur

hi guys, i need to have an ide for assembly development on vista 64 bit operating system. i am a newbie for the assembly language. any helps will be appreciated. thanks

Software Development assembly ide operating-system
Member Avatar for Evenbit
0
139
Member Avatar for Phreak

Hi folks, Due to being unable to find a suitable app, i've decided to make a little app (with the help from my trusty DWeb chums) Currently i'm looking at a little app that will allow me to enter a username and password for... whatever purpose really, map drive, shared …

Software Development vbscript visual-basic
Member Avatar for Phreak
0
1K
Member Avatar for TheBeast32

Hi, I'm reading a bitmap manually to try and make a program that does steganography, but I can't read the file correctly. The headers I read come out completely messed up, and they fail the check to see if I'm reading a bitmap file or not (if (FileHeader.bfType != (int)"BM")). …

Software Development c++
Member Avatar for TheBeast32
0
153
Member Avatar for Tootlol

# If balance is private,[B][U] what is the upper bound on the number of lines of code [/U][/B]which must be examined to make the change to the Account class? \ What is the "upper bound on the number of lines of code" referring to?

Software Development java
Member Avatar for brianlevine
0
96
Member Avatar for Aric69

evaluate a given postfix expression containing some one-letter integer variables a-z (in lower case) whose values are given in a data file. the name of the data file will be : c:\\temp\\375_prog4_stack_data.txt and you can hard code this name in your program. there will not be more than 26 different …

Software Development algorithm c++ legal
Member Avatar for Lerner
0
160
Member Avatar for cam875

I think i am going to use mode 13h VGA graphics. But I have a few unanswered questions about it. 1) What does it mean by there are 4 planes, what are those planes, and why do they exist? 2) For an operating system, would the computer be turned into …

Software Development assembly operating-system
Member Avatar for cam875
0
115
Member Avatar for Entropy1024

I am trying to write a program to store booking info for TV feeds. Most of the program is working fine, it stores all the info I need. One field is duration of feed which I am at the moment adding manually but it would be much nicer if I …

Software Development legal visual-basic
Member Avatar for Entropy1024
0
149
Member Avatar for tatainti55

Alright, i hope someone can give me a straight answer. How do i export integers to another function? Because when i compile and run this code, i get an error telling me: "[code]12 D:\test.cpp `numberr' undeclared (first use this function) [/code] The code i used was kinda like this : …

Software Development c c# c++
Member Avatar for tatainti55
0
105
Member Avatar for pardeep3dec

Hi friends, I need a programme or procedure which is capable in generating IP or computer name of the system( on which programme is running). Thank you

Software Development visual-basic
Member Avatar for Phreak
0
151
Member Avatar for samuelo

Hi i did a shell script. This script is configuration for voip gw's. But i dont upload this output file ( example = ****.ini ) from gw with telnet and commands. how do i need ? This script must be telnet and put confguration mean must read my output file …

Software Development perl
Member Avatar for KevinADC
0
97
Member Avatar for nosa2008

i have this function f(x)= e^X-3X^2 I need to write a computer program that find all three roots by the use of newton raphson method and option of finding a root by use of fixed point iteration. this is all i came up with so far.. i need help... [code=cplusplus] …

Software Development c++
Member Avatar for Freaky_Chris
0
104
Member Avatar for cassie_sanford

I am a new student in the area with very little programming experience. We are working with arrays in our vb.Net class and I am coompletely lost. Our program has to look up part numbers in order to improve customer service. The user has to enter the part number and …

Software Development vb.net
Member Avatar for timothybard
0
157
Member Avatar for cherryduck

"Write a program in MIPS assembly language which reads two integers a, b, calculates a^3 + 3ab^2 + 3a^2b + b^3 and outputs the result." My question is, how do I calculate powers of things in MIPS? Also I think I probably need to simplify that equation first...does anyone know …

Software Development assembly
Member Avatar for cherryduck
0
126
Member Avatar for codered152

hi guys i like to open as many frames user wants to open, i mean they can keep clicking the button and i like new frame keep opening. so this is something i got, now i know i have to use int to keep track of how many frames are …

Software Development java
Member Avatar for brianlevine
0
96
Member Avatar for bharath_prasad

1.Write a class called Student. Data members: name: String; age: int; major: String. Methods: constructor with 3 arguments that initializes all data members; print(): prints all data to stdout in one line, align the printed items in colums, no newline at the end; println(): same as print() but with newline …

Software Development java
Member Avatar for Salem
0
108
Member Avatar for toucan

I'm writing a C++ project using OpenGL in Microsoft Visual Studio 2005. I already have code for importing a jpeg image, but I don't know how to place it on a plane in 3D so I can view it in either ortographic or perspective projection. Also, how do I set …

Software Development c++ opengl visual-studio
Member Avatar for skatamatic
0
111
Member Avatar for dapcigar

I have an assignment in Modular programming.. Have been able to make the program work... the lil problem am having now is that when i try to load the file i created, it keeps adding the memory location. Moe like it's adding an additional data insead of just loading the …

Software Development c++
Member Avatar for Salem
0
129
Member Avatar for Tyster

Hi there folks. I have an app that has several classes but for some reason one of these classes isn't giving me a return value. What I want to check is whether or not this code will return the expected string... [code] String seatLayout; public String showAllSeats(String flightNumber){ fn = …

Software Development java legal
Member Avatar for Tyster
0
207
Member Avatar for bigunn

i was wondering if anyone could direct me to a good beginners book for C# that is good for beginners (basically 0 programming exp) as well as free. I downloaded the free version of visual C# express edition and was hoping to find a very beginning guide of programming with …

Software Development c#
Member Avatar for rapture
0
86
Member Avatar for faisal_pedaw

somebody please help me.. can you tell me about struct in C++.. please give me example and explaination..

Software Development c++
Member Avatar for skatamatic
0
128
Member Avatar for kavithabhaskar

Hi folks I am new to C++ i tried to reverse the characters in an array [code=cplusplus] #include <iostream> using namespace std; int main() { char kavi[]={'s','w','o','r','d','\0'}; cout<<kavi<<endl; cout<<"now reversing the word"<<endl; int i; while(kavi[i] != '\0') { i++; } cout<<"Length is"<<i; int j; for(j=10;j>=0;j--) { cout<<kavi[i]; } } [/code] …

Software Development c++
Member Avatar for skatamatic
0
6K
Member Avatar for eswaran_mca

Hi all, I am working in windows based application. In this application, a form contains 11 panels as 11 rows. I mean 11 panel as one by one. Each panel consits 11 checkBoxes without text only checkBoxes. if I check any one of the checkBox in any row, i need …

Software Development vb.net
Member Avatar for hisheeraz
0
931
Member Avatar for elsa87

hi everyone..i need to crack a symmetric key by implementing a method called CrackSymmetricKey I must use the TEA encryption algorithm below: [CODE=c++] union myMsgType{ unsigned long textConverted[2]; char text[9]; }; class TEA_Algorithm { public: void CrackSymmetricKey(union myMsgType plaintext, union myMsgType ciphertext); void Decrypt(unsigned long k[], unsigned long ciphertext[], unsigned …

Software Development algorithm c++ encryption
Member Avatar for ArkM
0
112
Member Avatar for Gerbilkit

I am working on a project that requires the main system, EmployeeSystem to be able to open a file with JFileChooser, and then write to that file, run a payroll system on it, and search it for a particular employee using a directory system. I am struggling right now to …

Software Development file-stream file-system java java-swing
Member Avatar for ~s.o.s~
0
129
Member Avatar for mporter67

Hello, I am creating a program that will allow me to calculate taxes on a pay. Since the amounts deducted are not straight percentages, there are close to 5600 different options, based on the gross pay amount. I am wanting to make the program as versitile as possible, so I …

Software Development visual-basic
Member Avatar for jireh
0
123
Member Avatar for twram

I've just started learning c++ this week from the book, c++ from the beginning by jan skansholm, im working througth the exercises and have become stuck on this one: sin(x) = x - x^3/3! + x^5/5! - x^7/7! + .................. write a program to calculat sin(x), dont include terms in …

Software Development c++
Member Avatar for twram
0
104
Member Avatar for number87

can someone explain in simple terms how to actually use the following <ctime> functions? I have read thru a few C++ reference websites but the explainations given are very vague and complex. [B]difftime struct tm time_t mktime ctime[/B]

Software Development c++
Member Avatar for sidatra79
0
1K
Member Avatar for Liszt

I have a little problem to dock a grid with a panel. What i have done is to first dock a panel in the top of the form. What i then want to do is to dock a datagrid so it Fills the whole form but not so it will …

Software Development c++
Member Avatar for Liszt
0
156
Member Avatar for mississippi_mam

I am writing a vb program to print out fragrances for this auto center. my program is working fine, but i am having trouble writing a for/next loop to print out the interior and exterior lists. the printout has to contain the package name, the interior and exterior items included …

Software Development vb.net
Member Avatar for timothybard
0
164

The End.