132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for bsridhar

Dear sir, This function converts a string to a numeric value. Provide two versions of this function overloading to return either a long or double value Here is the pseudo code for the FNVAL processing Validate the input string value If it contains any non numeric characters, then throw a …

Software Development java
Member Avatar for gusano79
0
162
Member Avatar for Fili

I have a very important question (for me) How do i use <alloc.h>/<malloc.h>/<stdlib.h> for memory allocation? i'm talking about: malloc(),calloc(),halloc(),realloc(),alloca(),heapwalk(),free() etc? i'm having a lot of trouble with these! thank you!! :confused:

Software Development c
Member Avatar for Fili
0
224
Member Avatar for lawsstreet

can anyone help me with the code for a vending machine in java please im begging you guys i need in less than 24 hrs

Software Development java
Member Avatar for big_k105
0
144
Member Avatar for JeffSyd

Hi all, I need to maintain a text file which contains only 10 lines. As a new line is added to the top - a line is removed from the bottom. So although the file is automatically updated regularly it will always contain only 10 lines. I know how to …

Software Development file-system java
Member Avatar for red_evolve
0
116
Member Avatar for gandiva_skg

dear sir Hi, In text field I want to restrict No of character entered should be only 3 if fourth character entering in same TextFiled it should not allow. How to solve it ? Warm regards sunil

Software Development java
Member Avatar for szukalski
0
97
Member Avatar for matika

i'm working on a project and i really want to know if c++ provides to print out colored text or not. thx

Software Development c++
Member Avatar for Fili
0
436
Member Avatar for atrustman

What is the word 2003 visual basic code for converting a selected text to a number, and a number to text?

Software Development visual-basic
Member Avatar for big_k105
0
1K
Member Avatar for MaxC

[FONT=Verdana]Hello fellow members, it's me again with the silly questions. I was give a scenario to write a program for and I finished it (I think). Although is pretty simple (first program) I had a hard time trying to assemble it. It’s exactly as the scenario I was given ( …

Software Development c++ display
Member Avatar for BinaryMayhem
0
159
Member Avatar for hanoy

[COLOR=Gray]undefined[/COLOR] Hello, I am using a webservice which has many objects and methods. Before being able to access any method, a method called authenticateuser is needed to be executed. Taking ws as the webservice object, and after successfully executing the ws.authenticateuser(successfull result is shown with the boolean return value set …

Software Development session vb.net
Member Avatar for Tekmaven
0
136
Member Avatar for fasteddie19793

I am struggling to derive answers for this problem. I need detail explanation. I understand the problem has to do with manipulating and trying values to derive what is n but don't understand :D :rolleyes: Considering the following nested loops, for(j = 5; j<=n; j++) { j =n; while(k > …

Software Development algorithm c
Member Avatar for fasteddie19793
0
170
Member Avatar for dooda man

I asked before for a time delay function which is like system ("pause") but depend on time instead of keys , to elaborate i want the program instead if writing " press any key to contiue " i want it to freeze for example for 2 or 3 sec then …

Software Development c++
Member Avatar for Bleek
0
188
Member Avatar for tlee

Hi all, What should I write for function signature in order to return this 6X6 array without compiler error? I tried to use `int* getGraph()`, but it did not work. Thanks for your help. int[6][6] getGraph() { int graph[6][6] = { {0, 5, 10, -1, -1, -1}, {-1, 0, -1, …

Software Development c
Member Avatar for tlee
0
175
Member Avatar for Paulbisch

Conveyor belt slideshow script- I am adding lots of images and linking them to the matching pages. Question: 1.Is there a way to set an anchor code so the slide show continues at the last clicked picture and does not start from the beginning ? 2. Opening the link in …

Software Development email java
Member Avatar for Paulbisch
0
178
Member Avatar for Dani

How can I read a string in from the user? For example, I am writing a console-based java application which prompt the user to enter a string and then reads that string in. What is the opposite of System.out.println? ;) System.in.readln? I can't get it to work and I'm a …

Software Development java
Member Avatar for gusano79
0
264
Member Avatar for wolfstrike

hello. thanks to all of you for taking time to answer questions. i just started learning c++ and i'm confused as to how graphics are added to a program. does c++ have graphical capabilities on it's own or does it need another program like Direct-x? the graphics i make are …

Software Development c++
Member Avatar for FireNet
0
107
Member Avatar for SeijuroHiko

First off I'd like to say hailz to you all! I'm your newest newbie trying to get a good grasp of programming C/C++/C#. Unfortunetly, I've got a loooong ways to go. With your help, I know I can make it. My first question is rather tricky.... well... for me... :sad: …

Software Development c++ os-x
Member Avatar for SeijuroHiko
0
302
Member Avatar for TJW

Can someone help in explaining the advantage/use of the C++ SAFEARRAY as I am not finding much useful material out there. This may be my answer to returning a large multidimensional array from a class memberfunction. That is some how converting such an array to a SAFEARRAY is probably what …

Software Development c++
Member Avatar for FireNet
0
164
Member Avatar for ineedhelp2004

I am needing help on a problem I began a few days ago. It regards a temperature prblem and I am required to write a program to display and print the degrees in farenheit and centigrade. I performed the program numerous times and got these results: conversion.cpp:11: parse error before …

Software Development c++ display
Member Avatar for FireNet
0
318
Member Avatar for MaxC

Hello guys, is there a way to declare global variables as [B]float[/B] and then convert them to [B]int[/B] to be used in a function? i.e. [CODE] float num1, num2, result; float Mod(){ num1%num2=result; //Wrong, (%) requires [B]int[/B] type) } [/CODE]

Software Development c++
Member Avatar for ivosetyadi
0
218
Member Avatar for kalachylde

Hello, I need help with me homework. It's probably something simple. My program is supposed: 1) read lines from a file (rain.txt) 2) find the shortest and longest lines (I used strlen()) 3) return the line number of shortest and longest and well as their length 4) show the avg …

Software Development c++
Member Avatar for kalachylde
0
186
Member Avatar for dooda man

hi , i am doing a project with c++ visual studio 6 and i really want this facility, which is .. the user will enter a single character or a an integer ,so the compiler will take the input he entered (int or char) without waiting from him to press …

Software Development c++ visual-studio
Member Avatar for Bleek
0
4K
Member Avatar for Killer_Typo

Well as of late the only coding that i know is HTML coding, and thats because it is fairly straight forward and easy to do. Ive tried some C programming before i even had the big sams teach yourself book, but it didnt help much, it was too long and …

Software Development c++
Member Avatar for FireNet
0
115
Member Avatar for BlackDice

Polymorphism is what makes using inheritance so powerful ( in my opinion). Here's a quick example of it using objects. This example uses 3 classes: CCar, and CSportsCar and CLuxuryCar which are derived from CCar. [code]class CCar { //constructors and other stuff... virtual CString GetType() { return "Car";) } ; …

Software Development c first-post
Member Avatar for Dani
0
113
Member Avatar for dooda man

hi , i am using simple console application and i am asking about the way to make the program depend on time insead of dependng on pressing keys for example, i want siplay the word "Hello.." and after 5 seconds it changes to "World" , to elaborate .. i want …

Software Development c
Member Avatar for FireNet
0
153
Member Avatar for JCD

Hello, I have a dilema. Currently if i want to save a file / read from a file i assign a string variable to a directory for example C:/Files/Blah.txt . However, i am currently working on a program which will be distributed between some close friends and having a fixed …

Software Development file-system visual-basic
Member Avatar for Paladine
0
114
Member Avatar for Vandalf

Good day to you all! :) First, as a new user on this forum, I just have to say that this must be the most useful and informative forum I've ever visited! I'm impressed! Keep up! But, to my thing... I've been learning c++ for a while now, by reading …

Software Development c++ microsoft
Member Avatar for meabed
0
184
Member Avatar for TJW

Can similar code be written for 3 dimensions: [CODE] #include <exception> #include <iostream> using std::cin; using std::cout; using std::endl; void display(long double **); void de_allocate(long double **); int m = 3; // ROWS. int n = 5; // COLUMNS. int main(void) { long double **data; try { // EXCEPTIONS. data …

Software Development c++ display
Member Avatar for TJW
0
316
Member Avatar for samaru

This is a great IDE for C++ (Windows). Great for academic programs. It comes with a C++ compiler and a slew of popular c++ libraries already for use. Very simple and intuitive to use if you don't want to use Visual C++, Turbo C++, or DJGPP. Check out the screenshot. …

Software Development c++ ide
Member Avatar for FireNet
0
471
Member Avatar for Natso

I head about a qbasic program that could make files undeletable... it only worked on ME or something though. Anybody here happen to have that code:?:

Software Development qbasic
Member Avatar for Natso
0
88
Member Avatar for Amir Ali

Deal All, Will somebody guide me how I can handle Windows scroll. Means, it should be in my hand when I allow scrolling or not. Also, Scroll should be visible and enabled always. Is it possible. Amir Ali.

Software Development vb.net
Member Avatar for Tekmaven
0
142
Member Avatar for TJW

Hello: (I am using Borland C++ Builder 6 Professional) Before you jump all over me I've already read the post Returing Arrays C/C++ and completely understand. For some reason I am still having difficulty implementing in my project. Very brief Project Explanation: I am collecting data from a laser sensor …

Software Development c++ display first-post image
Member Avatar for Natso
0
182
Member Avatar for Natso

Was wondering if there are any tutorials for beginners to C++... specifically for DevC++, I can't find any tutorials for it. I'm semi-experience with C++, but only when programming for DOS output, I'm not at all used to the visual output that is offerend by Dev-C++.

Software Development c++
Member Avatar for FireNet
0
136
Member Avatar for Saleh

Is there any reference or step-by-step tutorial available on-line showing how to control CD-Drive tray? thanx in advance.

Software Development c
Member Avatar for Yzk
0
113
Member Avatar for hotlantas69

I need to write the code for a script to count and display # of files and directories and then dispaly the # of each as well as the script name as output. I also have to sow a command to execut the script which I know already

Software Development display shell-scripting
Member Avatar for liliafan
0
584
Member Avatar for elna

[font=Times New Roman]Can anybody tell me if there is a better way to code the following problem than what I’ve included below? The problem that I can see with my code is if you had to add 20 shapes to the list then you would have to add 20 if …

Software Development c++
Member Avatar for elna
0
192
Member Avatar for crazy_girl292

Hi... I'm just a beginner in Excel and i have problem concerning building macros... would anyone be willing to give me few tips on how to create and a simple example of a syntax in a macro. Any help will be appreciated... :D

Software Development visual-basic
Member Avatar for Buff
0
4K
Member Avatar for gerizzel

#include <iostream.h> #include <fstream.h> #include <string.h> #include <iomanip.h> //for logfile struct log { long number; char date[9]; char time[9]; char gate[2]; }; //for customers struct customer { long number; char initial[2]; char lname[20]; char snumber[7]; char sname[17]; char stype[17]; char suburb[17]; char state[4]; char postcode[5]; }; //constants for array sizes …

Software Development c++ display file-stream ios
Member Avatar for FireNet
0
157
Member Avatar for WEATHER CHANNEL

Ada95 is a very capable, full featured language & is not just limited to DoD work.Any thoughts?Anyone ever used it? We need a AdA forum, you know some real stuff not just limited to simple things in life like C(ect) :lol:

Software Development shell-scripting
Member Avatar for Ludootje
0
235
Member Avatar for hotlantas69

This is not hwork. Trying to teach myself. I have to write a script that counts number of text, data, and html and C files in my home directory. I have to use case and loop. I have to display the total number for each file-type and also a count …

Software Development display shell-scripting
Member Avatar for Ludootje
0
201
Member Avatar for bryj3

Thank for all the help you guys have helped me with.. Can someone tell me, how do I ? 1. Declare an array. Call it values with size 25; 2. Initialize this array with any random number 3. Prompt the user to enter any number 4. Search the array for …

Software Development c++ display
Member Avatar for meabed
0
131
Member Avatar for HiTleR83

Im new to java programming. I want to establish a connection to my MS-sql database using java. How do i do it?

Software Development java sql
Member Avatar for Paladine
0
85
Member Avatar for redelao

I am pretty fresh in the java environment but i am working hard to learn. I wrote the code for a calculator, however I am having problems in making the memory buttons function properly. I have to create 4 memory buttons that function in the following way: When the memory …

Software Development display gui java java-swing
Member Avatar for gusano79
0
201
Member Avatar for Radahl

I'm currently working on a program that's like target practice. You literally hit...targets! However, the constant blinking that occurs when the repaint method is called has become quite annoying! :mad: I have a Timer method coupled with the ActionListener to update the screen. The need for the update is because …

Software Development java
Member Avatar for gusano79
0
406
Member Avatar for tubularowl

I'm trying to delete a single record from a rnd file using a delete button. On click the code below the problem seems to be with the keep statement. I keep getting a compile error:invalid qualifier on selectedbook even though the value matches the position of the record in the …

Software Development file-system visual-basic
Member Avatar for tubularowl
0
122
Member Avatar for meabed

I tried to desigen program that format partition from the HDD. like D:... then i right this code [CODE]#include<process.h> int main() { system("d:"); system("format d: /q"); system("y"); return 0; }[/CODE] but it comes to ( " all data on non_removalbe disk driver d:will be lost ! proceed with format (Y/N)? …

Software Development c
Member Avatar for meabed
0
184
Member Avatar for Radahl

Hi, this is my first post and I need help with a project. I'm trying to create a target with a recognizable boundary so when you click anywhere inside the circle, a point is added to the top-left corner of the applet. I've succeeded in being able to click inside …

Software Development algorithm first-post java java-swing
Member Avatar for gusano79
0
194
Member Avatar for i686-linux

5 REM Happy Birthday to BASIC 10 PRINT "http://apnews.excite.com/article/20040429/D82885100.html" 20 END

Software Development
Member Avatar for Buff
0
131
Member Avatar for AliSham

Can i do something international using which side of vb.net whether it is ado.net, webservices which one please guide me

Software Development vb.net
Member Avatar for Paladine
0
189
Member Avatar for prabhu_kar

How am i supposed to write a code in c which compiles in c but not in c++ plz do let me know

Software Development c++
Member Avatar for prabhu_kar
0
541
Member Avatar for bones

hi people i was wondering how you create a test plan im new to this and just created my 1st c game... need some help as im not sure how to create a test plan preferably in a table. [CODE] /*In order to play the game of craps. each player …

Software Development c c# c++
Member Avatar for infamous
0
209

The End.