132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for jadedman

hello there! im creating a program with both stdio.h and iostream.h in the include header. Can the program run with them both? or others?

Software Development c++
Member Avatar for Jawahar prabhu
0
1K
Member Avatar for priti_s

which are the legal methods in a stateless session bean class? thanks in advance! :-)

Software Development java legal session
Member Avatar for masijade
0
76
Member Avatar for VirusTalker

import java.io.*; import java.util.StringTokenizer; public class Proj21110 { private static int MAX_UNKNOWNS = 10; public static void main (String[] args) { headerMessage(); // print header BufferedReader in = null; if(args.length > 0) { in = getReader(args[0]); // open file System.out.println("Opened file: " + args[0]); } else { in = getReader("guess.data"); …

Software Development java
Member Avatar for kalyan_au_cse
0
144
Member Avatar for francisprite

I already know C and I have to learn Java. Can anybody recommend an ebook I can read?

Software Development java
Member Avatar for kalyan_au_cse
0
125
Member Avatar for meabed

[font=VERDANA, ARIAL, HELVETICA, SANS-SERIF][size=1]How do you make a class accessible from a dynamic link library? It is a commonly asked question with a solution that is surprisingly simple. In this article I will show you how to do it in Visual C++. [/size][/font] [font=VERDANA, ARIAL, HELVETICA, SANS-SERIF][size=1]First, you need to …

Software Development c++ open-source
Member Avatar for ArkM
0
851
Member Avatar for yair7190

hello everyone, i have a script in which i enter a log file into an array and then i go line by line to search for a line containing "free disk space". once the line is found i want to check if the value is greater than 75. the line …

Software Development perl
Member Avatar for yair7190
0
103
Member Avatar for helixneu

Hi I want to read a two huge integer input from user & wanted to display output on the screen can any one help me ? eg : int a=8132123781237; int b=1237829789; result = a *b ; print(result); ????

Software Development c c++
Member Avatar for iamthwee
0
92
Member Avatar for F_Rock

Hi all, whaz up poeple i have a little problem! if anybody could help me, i would be grateful i have made an application in borland c++ about credit cards there are 2 fields, and between them are 2 buttons (import and status) when i press the import button, i …

Software Development c++
Member Avatar for jencas
0
104
Member Avatar for phintastic

I'm not quite sure what is wrong, and I am VERY new to programming but heres teh problem: Scanner scanner; scanner = new Scanner(); This is what I have, and this is the error message: cannot find symbol symbol: constructor Scanner() location: class.java.util.Scanner And also, there is a problem with …

Software Development java
Member Avatar for Alex Edwards
0
1K
Member Avatar for efarook

Hello, I am new in the world of snmp++. Recently I have downloaded the latest version of snmp++ for Linux and tried to compile the sample (specifically Qt example). While I try to "make" the sample, at one stage it shows the following message and exit the make utility: /usr/bin/ld: …

Software Development c++ qt
Member Avatar for efarook
0
111
Member Avatar for Gerbilkit

I say urgent because I have to finish it pretty much tonight or maybe very early tomorrow morning. But I am moving along decently on the project, so it's not like nothing is getting done. Basically I have a problem with a class I am in the process of completing, …

Software Development java
Member Avatar for stema08
0
243
Member Avatar for kashifbhatti

Hi all, I want to have a MDI application with OpenGL enabled on child forms. additionally each form can have controls than OpenGL. I have tried Nehe's lessons but all of them have used an infinite loop to call glDraw function which can not be done in MDI application as …

Software Development opengl
Member Avatar for LizR
0
123
Member Avatar for podapunnaku

Hi Folks Iam trying to insert values into my access table using c# and iam at my wits end My Access table has the following fields Country State Curr VAT and Exchange I have made them all as text for ease of use in the access database this is my …

Software Development c# microsoft-access open-source
Member Avatar for LizR
0
104
Member Avatar for NinjaLink

I have a couple of easy questions, but I'm not that good at C++ yet, so I need your assistance... I'm using an array to store for: 1) Test grades 2) Project grades 3) Lab grades I want it to print out like this: Test Scores: 92 73 81 My …

Software Development c++
Member Avatar for vmanes
0
92
Member Avatar for ingza

Hey there! I was wondering if someone here could help me out a bit. I'm a beginner in Java and I'm struggling a bit with understanding if it is me who is doing something wrong or if something is just missing from my software to run the thing I'm trying …

Software Development java java-swing mac-software
Member Avatar for ingza
0
116
Member Avatar for JackDurden

My output looks like this "T h i s m y o u t p u t" and I want it to look like this "This is my output". Any suggestions? I guess what Im asking is how do you take words from a file and put it into an …

Software Development c++ file-system
Member Avatar for Alex Edwards
0
188
Member Avatar for Clockowl

Howdy folks, Does anyone know if GCC is capable of creating a fixed length 1D array of an N-Dimensional array for reasons of speed? I've heard it matters quite a lot if one works constantly with N-Dimensional (with N != 1) compared to 1D arrays in terms of speed, but …

Software Development c
Member Avatar for grumpier
0
90
Member Avatar for brent.lozano001

im trying to learn how to make a if/then statement that will take a number, possibly with a decimal and round it to the nearest integer. Like so.. if 3.4 is the number, then the final would be 3 not 3.4 how would i do so?

Software Development c++
Member Avatar for ArkM
0
248
Member Avatar for AlSal

I've been trying to find a complete list of the c/c++ libraries and all of their functions, but everywhere I look, I only find a part, never the whole thing. Is there a website where I can find such detailed list?

Software Development c c# c++
Member Avatar for BeyondTheEye
0
94
Member Avatar for melicaster

I have the mainmenu.vb and event.vb. I want event.vb appear when I click button (cmdRun), and mainmenu hide. How to write it's code? I use below code but was not as VB 2005. [CODE]hide.mainmenu show.event[/CODE] Any ideas? Thanks in advanced.

Software Development vb.net
Member Avatar for toko
0
78
Member Avatar for kogues

Ok, I'm taking a intro to programming with java class, and for the most part I've been able to keep up with the assignments. I'm in the process of writing a statement that will output the cube root of a number, I've come up with the below as what I …

Software Development java
Member Avatar for Ezzaral
0
74
Member Avatar for bruceraymond

I'm trying to display a large amount of data in a grid (~26,000 cells) under C#/VS2005. I'm looking for a fast display vehicle. I had been using SourceGrid. However, the basic grid was too slow. I switched to SourceGrid/ArrayGrid which is fast. However, I can't figure out how to write …

Software Development
Member Avatar for bruceraymond
0
123
Member Avatar for Duvva

Hi can anyone helpme out in writing a batch file to delete archived log files. The batch file should delete the files in those folders that meet the criteria(files older than 3 months)and if all the files in the folder are deleted then the folder itself should be deleted.

Software Development shell-scripting
Member Avatar for masijade
0
60
Member Avatar for zhinokin

HI... would anyone give me some ideas in converting decimal to binary...?...i have some ideas but its hard for me to implement it...i just came up with the wrong code...i'm using a86 assembly language... .

Software Development assembly
Member Avatar for zhinokin
0
154
Member Avatar for zhinokin

i need help in comparing a string... the program goes ... ask to input 2 string then compare it, if it is same or not... my problem is that even it is not equal it will print equal... i think the problem is in the compare section. could someone share …

Software Development assembly
Member Avatar for zhinokin
0
107
Member Avatar for Cindy_

Hello! First of all, sorry if my english sucks, it's not my first language >_< I want some help of you guys. I got a vector of dates named ListDate[i], and I want to do a search on it, to find the last days the user defines, for example: The …

Software Development c++
Member Avatar for Cindy_
0
197
Member Avatar for Extreme

I need to make a program to check if the entered number is palindrome or not i.e. if u take a number and reverse it it will be the same old number for example if u take 121..then if u reverse the number it will be 121 and so 121 …

Software Development c++
Member Avatar for Ancient Dragon
0
186
Member Avatar for SubProf

Hello everyone, I have a html file (that is displayed in a webbrowser) which contains an onclick function that calls an external function in c# code. I have this part working and after the external function is finished the webbrowser navigates to a new file. The html file contains frames …

Software Development c# file-system html-css
Member Avatar for SubProf
0
115
Member Avatar for nizbit

I have a class named SString, which is a user defined c style string class. The constructor for SString dynamically allocates a char array. Then I have a CD class which contains data about a specific CD, like artist, title, year, etc. They are defined as SString instances. I want …

Software Development c++
Member Avatar for dougy83
0
139
Member Avatar for sirbriggs

This is a stripped down version of an error I'm getting in a different program, but this is simpler. The problem comes from if I try to set something that isn't an int in MyClass [code=c++]#include <iostream> using namespace std; template <typename T> class MyClass { private: T data; public: …

Software Development c++
Member Avatar for sirbriggs
0
165
Member Avatar for brent.lozano001

I am trying to develop a code that will take a number similar to 8.23 or any number with a decimal and convert it to a whole number like 8. I would like to do this in an if/then statement but i dont know which process to call it from.

Software Development c++
Member Avatar for dougy83
0
101
Member Avatar for Jennifer84

I think I have a convertingproblem when using stringstream. I multiply 0.995 * 19.99 wich is: 19.89005 The first messageBox do show because 19.89 < 19.89005. Then I convert Total to string and back to double again and do the same check if: 19.89 < NewNumber But here the MessageBox …

Software Development c++
Member Avatar for Jennifer84
0
95
Member Avatar for unbeatable0

Hey there, I'm trying to use the SetSuspendState() function to hibernate the computer, but I have no idea what parameters I should send to it. The prototype is "BOOLEAN WINAPI SetSuspendState(BOOLEAN, BOOLEAN, BOOLEAN);" Since I'm a somewhat beginner in c++ programming, I don't really have an idea what BOOLEAN means …

Software Development c++
Member Avatar for dougy83
0
567
Member Avatar for qaz1134

hello, guys i have a really stupid problem about characters and string; i dont know which to use. wacko.gif iam bubble sorting for example a name::'( :?: input: [B]dreamincode[/B] output: [B]a c d d e e i m n o[/B] why does my code in error? my compiler saids the …

Software Development java
Member Avatar for Ezzaral
0
133
Member Avatar for kux

This may sound silly. I have a class that contains a vector of pointers to instantiated objects. I want to return a refrence to that vector, but I don't want to be able to modify the vector through that refrence. Now, if i return a const reference, the vector is …

Software Development c++
Member Avatar for dougy83
0
113
Member Avatar for rainny

Hi, I have an aaplication which can play the .wav file. However, I want to get the timing of each word spoken by the person. For example, when the person speak the first word, the time will being recorded in the text area and also the word spoken. the process …

Software Development java
Member Avatar for Ezzaral
0
103
Member Avatar for kazek

I've been struggling with this program for few several days now.. It's an implementation of Data structures. I'm trying to use Linked Lists, Sorting and Searching concepts. [CODE=cplusplus]#include<iostream> #include <iomanip> #include <fstream> #include <cstdlib> using namespace std; class videoShopSystem{ public: bool empty() const; void displayMainMenu(); void menuChoice(int key); void addNewRecord(); …

Software Development c++ linked-list video
Member Avatar for miepmuts
0
177
Member Avatar for zoner7

So I am using Dev C++ to compile this program; however, whenever I attempt to compile, I recieve a linker error that states, "[Linker error] undefined reference to '_cpu_features_init' ld returned 1 exit status" I googled the question, and people suggested that it may have something to do with the …

Software Development c++
Member Avatar for dougy83
0
86
Member Avatar for ruby.n

Hi Im new to VB. I am looking to write a basic code to do the following: when a button is clicked, a valve has to close, after 5 seconds it has to open. This should be done 5 time, for every click. Please help! Thanks...

Software Development visual-basic
Member Avatar for ruby.n
0
87
Member Avatar for dinilkarun

Hi friends.... I am using SS Tab in my form. There are 4 tabs in total. The user needs to enter a text provided on tab1 and then go to tab2. If the user clicks on tab2 without entering text in the textbox, a message box should be shown to …

Software Development visual-basic
Member Avatar for dinilkarun
0
146
Member Avatar for coveredinflies

Hello, my understanding is 'this' is a pointer to the current class you are working in. Is this right? For example in my textbook it has [code] class ThreeD { int x,y,z; public: ThreeD() {x=y=z=0;} ThreeD(int i, int j, int k) {x=i; this ->y =j; z=k;} ThreeD operator+(ThreeD op2); ThreeD …

Software Development c++
Member Avatar for vijayan121
0
192
Member Avatar for Emerald214

Excuse me, could someone help me? This code from an ebook and it isn’t wrong but it gives an error while being compiled. I don’t understand what error it is. error C2653: 'vector<int,class std::allocator<int> >' : is not a class or namespace name [code] #include<vector> using std::vector; int main() { …

Software Development c++
Member Avatar for Emerald214
0
158
Member Avatar for blacknight03

Hello, I am trying to get back into programming I took it way back in high school and I am to say the least I am a little rusty. I can’t find the type of program that I want so I thought that I would make it and it has …

Software Development visual-basic
Member Avatar for venkatramasamy
0
101
Member Avatar for emk4

Hi, i've a problem about load and parse a large array block on my dictionary-like app. My app will load mytext.db to its array. App users entered specific text to txtIn, press cmdSearch and get the translated ones. The main issue is scanning speed, load array speed and match input …

Software Development algorithm visual-basic
Member Avatar for emk4
0
158
Member Avatar for grisha83

Hello, I am trying to solve an assignment in a book. It is asking me to write a program that takes a positive number with fractional part, which would round it to two decimal places. For example, 3.4256 to 3.43. Now, the thing that confuses me is that this past …

Software Development c++
Member Avatar for vijayan121
0
105
Member Avatar for pardeep3dec

Hi friends, I am unable to declaring variable which can used from any form in a particular project.

Software Development visual-basic
Member Avatar for venkatramasamy
0
79
Member Avatar for iamthwee

OK I was wondering what is the easiest way to do this? Let's say I have some arguments int main(int argc, char* argv[]) and argv[1] equals a c-style string. I want to change this to a std::string because I want to do stuff with it and I prefer working with …

Software Development c++
Member Avatar for vijayan121
0
92
Member Avatar for jits_aps90

Some numbers like 1,2,3,4,.... are provided from the command line. Considering them to be roots of a polynomial of that degree< equal to number of roots > , i was trying to find the coefficients of the constructed polynomial, i was using the concept of multiplication of two single degree …

Software Development c
Member Avatar for jits_aps90
0
98
Member Avatar for bprabhumdu

Hi friends, in my vb project , hindi font doesn't set . i download the mangal font from internet and paste it in a c:windows/font folder........but it resemble like a unknown symbol... any help will be appreciated .... waititng for ur reply

Software Development visual-basic
Member Avatar for Drycola
0
108
Member Avatar for afolli

Hello, I have to base64 encode a large quantity of data and include it in the XML response of the webservice.The WSDL define the XML element in the following way: [CODE]<xs:complexType name="MessagePart"> <xs:simpleContent> <xs:extension base="xs:base64Binary"> <xs:attribute name="contentType" type="xs:string" default="text/plain" use="optional"/> <xs:attribute name="length" type="xs:int" default="0" use="optional"/> <xs:attribute name="offset" type="xs:int" default="0" use="optional"/> …

Software Development apache java xml
Member Avatar for afolli
0
177

The End.