132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for akila

This may be trivial for most of you, but I've been scratching my head as to how to convert real numbers (ie 5.375) to binary. Actually, I'm trying to convert the real number to 32-bit IEEE binary format, but I'm just working with trying to convert it to binary for …

Software Development c
Member Avatar for Dave Sinkula
0
203
Member Avatar for dallin

In C++ visual studio .net, I'm dividing two integer variables and trying to put the answer in a double variable. How do I get two integers to divide and give me a double data variable answer? Thanks doub_a = inta / intb .75 = 9/12

Software Development c++ visual-studio
Member Avatar for dallin
0
162
Member Avatar for crq

hey folks, i have a template created that holds an array of type T elements. my problem is this ... i am converting this code from a souped up Array class that takes ints as it's elements to this template Array<T> class that will hold T elements. in the original …

Software Development c++
Member Avatar for Narue
0
223
Member Avatar for ysong00

I created this 2d array consisting of morsecodes: char m[57][6] = {".-..-.", "", "", "", "", ".----.", "-.--.-", "-.--.-", "", "", "--..--", "-....-", ".-.-.-", "-..-.", "-----", ".----", "..---", "...--", "....-", ".....", "-....", "--...", "---..", "----.", "---...", "", "", "", "", "..--..", "", ".-", "-...", "-.-.", "-..", ".", "..-.", "--.", "....", …

Software Development c unix
Member Avatar for vegaseat
0
96
Member Avatar for letmec

I love graphics programming through C & C++, I have worked a lot, but i am still very far away from bmp files, Can any one tell me how i can access bmp file through C, C++. Thanks in advance :rolleyes:

Software Development c++
Member Avatar for dalaharp
0
609
Member Avatar for garlam

I wrote this shell script: #!/bin/sh PATH=/sbin:/usr/bin:/usr/sbin; export PATH echo "Content-type: text/html" echo "" ROOT=/app/webchecker/controller FILEIN=$ROOT/log/servcheckerstat.txt FILEDOWN=$ROOT/bin/down_ FILEOUT=/tmp/wcHtmlStat.$$ $ROOT/bin/servckhtmlstat W $FILEIN $FILEDOWN $FILEOUT $QUERY_STRING cat $FILEOUT rm -f $FILEOUT exit 0 servckhtmlstat is a C program which do all the job and write the file. The problem is: the shell …

Software Development shell-scripting
Member Avatar for Comatose
0
109
Member Avatar for Index

Hello everybody, I have a problem with libpng library, I am trying to use my own memory allocation routines. So, as stays in doc, I define PNG_USER_MEM_SUPPORTED and want to use png_create_read_struct_2() instead of png_create_read_struct(). png_create_read_struct_2 takes following parameters: [CODE]png_structp png_ptr = png_create_read_struct_2 (PNG_LIBPNG_VER_STRING, (png_voidp)user_error_ptr, user_error_fn, user_warning_fn, (png_voidp) user_mem_ptr, user_malloc_fn, …

Software Development c
Member Avatar for Index
0
177
Member Avatar for evil_dude_01

Hello, Can someone please tell me how to display an autonumber in a text box. I am using the ado control to connect to my database. I am doing a small project for college in which i have to create a customer record and blah blah etc. When i press …

Software Development display visual-basic
Member Avatar for evil_dude_01
0
160
Member Avatar for kendallniall

could someone please help me out im looking for an example application that will search windows for a signature e.g a program that will find a keyword when i type it in and search the windows system! if anyone could help it would be great..

Software Development java
Member Avatar for Phaelax
0
139
Member Avatar for nicki7823

I did most of this program, but it has a couple of problems. Every time I get to the end of the program the Highest numerator is always five regardless of what I entered. The next problem is the Highest denominator entered does not show up. Instead a lot of …

Software Development c++ display
Member Avatar for Dark_Omen
0
147
Member Avatar for kloony

I have the following list-processing interface which I save as .h file. I don't see anything wrong with it but everytime I compile, it says that the declaration in line 2 is missing ";"..........can anyone please help? my code is: typedef struct node *link; struct node{ itemType item; link next; …

Software Development c
Member Avatar for Narue
0
120
Member Avatar for mad_cow01

Hi i'm new here and tommorrow i'll be doing some project in computer science so i need a template/outline of a triangle.h file, thanks in advance ; )

Software Development c
Member Avatar for 1o0oBhP
0
129
Member Avatar for trixiestrat

I got this assignment for school. I figured out most of it, but one part is really stumping me. The assignment tells you to have the user enter in a dollar amount between $0 and $100, and to give an error message if it's out of the range. I figured …

Software Development c++
Member Avatar for Narue
0
143
Member Avatar for Robson85

Hi Iv'e almost completed this programme built for calculating a pilots fuel consumption on various flight distances. I have done most of it at college and now tried to execute it at home and there is an error. I am unsure whether it is just that my compiler is a …

Software Development c++
Member Avatar for Dark_Omen
0
189
Member Avatar for Kate

hi there. I've been battling with this for a while now, and really need some help!! I have five files full of 100 numbers each, they are labelled 1.txt, 2.txt up to 5.txt. I want to read these files in and put them all in an array: `files[5][100]` so I …

Software Development c
Member Avatar for Chainsaw
0
323
Member Avatar for compeat

hi! I have a problem about "[B]range of data types[/B] ".I work on program that require long digits .in "boland c++ 5.2 's help" range of long is [B]4294967295[/B] . but why this sample program doesn't work??!! [CODE] int main(){ long a=4294967295,b; b=a; return 0; }[/CODE] CAN YOU HELP ME? …

Software Development c++
Member Avatar for Dave Sinkula
0
564
Member Avatar for BrownSuga

I have the code done for the rest of my program but I can not get the asterisks in my histogram to print can you help?? Thanks In Advance!! Here is a copy of my code (driver and class). public class diceSimulation { public static void main(String[] args) { char …

Software Development java
Member Avatar for jwenting
0
801
Member Avatar for xxraveteddyxx

I need some free-ware compiler information..i just need a c++ compiler thats decent..anyone that can help please let me know...thanks. :eek:

Software Development c++
Member Avatar for eastgate
0
84
Member Avatar for mr_mooz

Hi I have an array of float and i need to mask the values. I want to be able to get arr[x] and arr[x+1] and then mask them and recombine them results in a radom order (im doing an evolutionary algorithm!) But i cant get the masking to work, it …

Software Development algorithm c
Member Avatar for Dave Sinkula
0
212
Member Avatar for gidgetcracks

[COLOR=Indigo]I am making a Game called HangMan. :cheesy: I notice someone else has also but mine is due this Monday Comeing. I am having trouble with my Arrays. I keep getting am error :mad: saying "Index was outside the bounds of the array". I have been trying to fix it …

Software Development image vb.net
Member Avatar for Comatose
0
163
Member Avatar for eddiesvoicebox

Hi all, Firstly please accept my apologies if i am breaking some kind of forum rule by posting this question here. But i am hoping that the same principle will apply for VB as for VBA on this one. I have a small issue with a date format in my …

Software Development visual-basic
Member Avatar for mnemtsas
0
147
Member Avatar for Asif_NSU

I have written this program to convert a decimal number to a number of any base. The resulting number has been put into an array and so can be of any size. But the decimal number that i take as input is limited by the range of int. What i …

Software Development c++
Member Avatar for Asif_NSU
0
187
Member Avatar for nico

hi everyone am trying to write a very small interactive program that 'thinks' of a number in the range of 0 to 99 and asks the user to guess it , problem is when i compile it (using devc++) I get errors (six to be exact) I don't know what …

Software Development c++
Member Avatar for arifilipe
0
3K
Member Avatar for BIT_SAIKAPIAN

Hi everyone, I have done BIT, but in other words I completed it just to have degree not as a career. But now I am very much interested in it to take it as career. I have set a goal of 6 months to do best learning c++ and java …

Software Development c++ career
Member Avatar for jwenting
0
116
Member Avatar for crq

in working on this pgm, i have made notes to myself ... questions that keep popping up. if anyone wants to clarify some of these concepts for me .... 1. are TRUE and FALSE keywords? if a method says return (TRUE); will it work? 2. const on END of method …

Software Development c c# c++
Member Avatar for 1o0oBhP
0
157
Member Avatar for inderjeet singh

HI, I m using VC++ editor for C programming and i want to move cursor one row up in my terminal window. I have tried interrupt using Inline assembly but when i execute the programm Error comes "access voilation " . I m using Windows XP OS. What should should …

Software Development assembly c++ windows-xp
Member Avatar for 1o0oBhP
0
134
Member Avatar for koteeswara

hi all ! please let me know how to extrapolate a 2D image to expand it. thanking you in advance.

Software Development c image
Member Avatar for 1o0oBhP
0
229
Member Avatar for isundby

Good day to all. First off, let me say that if this is the WRONG place to post such a thread, please let me know, and I will ensure that I get things right from this point on. A bit of background .... I am an archaic (20yrs +) Mainframe …

Member Avatar for isundby
0
154
Member Avatar for matt_5104

How do I code an IF loop to perform the following?: if a > X b = //a value// else b = //another value// Thanks!!

Software Development java
Member Avatar for pajac
0
161
Member Avatar for AQWst

I created a program, which I will include the source below with a problem. It appears to compile fine, but I get an error when I try to run it. The error is: "Exception in thread "main" java.lang.NoSuchMethodError: main." What does this error mean? [CODE]/* This program will allow the …

Software Development java
Member Avatar for AQWst
0
239
Member Avatar for Acidburn

Hello, Can anyone point me the direction of getting a linux verision that comes with a .cpp compiler? so you enter gcpp filename.cpp which compiles the code and runs it in a konsole? I've got mandrake and Suse siting here.... Cheers

Software Development c++ mandrake suse
Member Avatar for kc0arf
0
188
Member Avatar for nanosani

I am doing my final year project in j2ee. I am making an online health management system ... it'll be like [URL=http://www.curemd.com]this[/URL] Nowadays I am documenting the project .... The question is that are there some useful documentations over the net or you people have ? I want some professional …

Software Development java
Member Avatar for nanosani
0
157
Member Avatar for seeplusplus

Hello, i have to write a program using C++ that will store 3 characters into 3 variables, and using pointers i have to rearrange the order in a function. so if c1, c2, c3 have the value 2,4,6....using pointers i have to switch the values of c1, c2, and c3 …

Software Development c c# c++
Member Avatar for Chainsaw
0
143
Member Avatar for crq

ok, here's the scenario (and maybe i will finally get this assignment finished) ... i have a class IntArray. at the moment i have it all in a .C file. i have a little main section that has minimal testing in it (will do something more formal later). my prof. …

Software Development c++
Member Avatar for crq
0
814
Member Avatar for dazednconfused

I am trying to teach myself C# and I have run into a problem with one of the chapter assignments. The problem is as follows: Create a class named City. Objects will be instantiated from this class. Include fields that hold the City's name, its state, and its population. Include …

Software Development display
Member Avatar for dazednconfused
0
141
Member Avatar for dazednconfused

I am trying to teach myself C# and I have run into a problem with one of the chapter assignments. The problem is as follows: Create a class named *City*. Objects will be instantiated from this class. Include fields that hold the *City's* name, its state, and its population. Include …

Software Development c++ display
Member Avatar for dazednconfused
0
158
Member Avatar for crq

can anyone help me with this one? i am getting a syntax error that reads like this: lab2aa.C: In member function `bool IntArray::operator==(const IntArray&) const': lab2aa.C:80: syntax error before `}' token my size() method works (tested it before i put in these operator things) ... and self is *this in …

Software Development c
Member Avatar for Narue
0
154
Member Avatar for crq

i have been working on this all DAY LONG. i am new to C++ and Unix and need to write this little tiny code in both. i am tripping all over myself with references and dereferences and operator overloads .... if anyone could help me decipher what my problem(s) are, …

Software Development c++ unix
Member Avatar for Narue
0
156
Member Avatar for cutenature

I am trying to free a memory in the main which has been allocated in a sub-function. Is this possible and am i doing this in the right fashion. The code sample is: char* SubFunction() { char *ptr= NULL; char **values; ptr= (char *)calloc( 100, sizeof( char ) ); if(ptr== …

Software Development c
Member Avatar for Chainsaw
0
102
Member Avatar for oldroad

I need to extract the middle numeric number. It works for two order of numbers, for example: when I enter the numbers in this order 12, 14,6 it works...when I enter in this order 12, 6, 14 it works as well, but when I enter in this order 14, 12, …

Software Development c++
Member Avatar for oldroad
0
1K
Member Avatar for oldroad

How do I extract the highest number of 3 user inputs in C++? thanks oldroad :)

Software Development c++
Member Avatar for oldroad
0
58
Member Avatar for JoBe

Hello ladies and gents, I'm trying to write this little program in wich I have to enter by keyboard a certain amount of numbers (int) not floating points, and the program must count how many [U]different [/U] numbers I have entered, when the amount is equal to ten, it must …

Software Development c++
Member Avatar for JoBe
0
858
Member Avatar for Tester2

I am seeking to learn C++. I am using the complex base class as source for this learning, by trying to adapt it to a template class. I am calling this class "plexmath". My effort follows ,but does not compile. I would like to retain the "protected" status of the …

Software Development c++
Member Avatar for Narue
0
284
Member Avatar for jeanatkin

Hi again. I'm here to [I]wreck[/I] your world. Just kidding. How's your new year, all of you? Going on swell? Eid Mubarak to all Muslims. Bypassing the small talk, I'm here to query you on a doubt I have in dynamic initialization. As I have learnt in school (correct me …

Software Development c++ linked-list windows-xp
Member Avatar for Narue
0
112
Member Avatar for server_crash

Is it possible to update your programs information from other websites? I mean if you have like a stock program or currency program, the data changes everyday. So can you recieve updates from websites, and change this info? If so could you point me to a site that explains how, …

Software Development api java
Member Avatar for server_crash
0
76
Member Avatar for grifflyn

Hi i Have written some code at Uni for two programs this is my first one // filename: ArrayClient.java // Author: // Last Updated :Jan 2005 // // Program to demonstrate how to provide a class // of array utilities // public class ArrayClient [code] { public static void main …

Software Development java
Member Avatar for grifflyn
0
207
Member Avatar for knight81

:) good day to all... pls i have a report about a certain header file, the alloc.h, but :o i cant see any definition on the web! :?: i only want to know what is the use of <alloc.h>, & what is the advantage using it! please, i really need …

Software Development c
Member Avatar for knight81
0
151
Member Avatar for jollygreen

How do i print int num1; a 5 digit number like `1 2 3 4 5` ive been working this daxm problem for like 1-2 hours and cant get it to print i dont want an answer i want a hint on what to do i want to work it …

Software Development display java
Member Avatar for jwenting
0
900
Member Avatar for mcclth

Hi everyone I've been working on developing a web browser in VB6 similar in capability to IE and I would like to set it as the default browser. I have been unsuccessful in finding any way to A) change the default browser to mine with the program itself [the way …

Software Development visual-basic web-browser
Member Avatar for Comatose
0
163
Member Avatar for koa1aboi

can somebody help me with this... i need a javacript code to print multiple documents when a print button is pressed. I posted 20 documents on my site and i just wanted to have a print button underneath the links of all the documents so the viewers can just print …

Software Development java
Member Avatar for koa1aboi
0
127

The End.