132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for spankyg

Can someone please explain to me just exactly this try/catch is doing? It doesn't seem to make any sense to me. Thank you in advance. case '\r': if (Choice==(CancelIndex+1))return; try{(*Action[Choice-1])();} catch(...){} system("cls"); Choice = 1; break; case char(27): if ((CancelIndex+1)==ItemCount)return; try{(*Action[ItemCount-1])();} catch(...){} Choice = 1; break;

Software Development c++
Member Avatar for spankyg
0
124
Member Avatar for kdelorme2005

Hi I was wondering if someone could help me write JAVA for a mad lib. Thanks

Software Development java
Member Avatar for masijade
0
68
Member Avatar for Kattalyst

A College offers a course that prepares students for the state licensing exam for real estate brokers. Last Year, several of the students who completed this course took the licensing examination. Naturally, the college wants to know how well its students did on the exam. You have been asked to …

Software Development c++
Member Avatar for Kattalyst
0
94
Member Avatar for kahaj

I'm writing to a file. There are only ten items able to be written to the file (game scores, test results, whatever). I'm using a drop-down selection list on the form to tell which number is being submitted. Is there any way to have it checked as the page loads …

Software Development file-system perl
Member Avatar for kahaj
0
107
Member Avatar for thanaras

Hello. I have a grayscale image that i want to process. I take the raster and then i want to scan the pixels and once i find a non-black pixel, i want to make an operetion(which doesn't matter right now). When i have an ARGB image i do this int[] …

Software Development image java
Member Avatar for Ezzaral
0
126
Member Avatar for rickster11

I'm having all sorts of problems getting this program to work. I think I know what's wrong with it, but I don't know how to fix the problem. The program is supposed to read a text file that contains information like below.... 1 99 2 88 3 77 4 66 …

Software Development java
Member Avatar for Ezzaral
0
142
Member Avatar for mr.lemarc

Hi Stumbled on this forum last year while I was in c++. Unfortunately, I am now completely surrendering myself to your guys input, because I am truly out of breath and energy to push through any further with my lab project. Here is my class' project objective: --Design and implement …

Software Development assembly objective-c printer
Member Avatar for Colin Mac
0
175
Member Avatar for guitarrick

I posted this one earlier, but no go......I'm getting an error for the constructor definition StudentRecord::StudentRecord() that it cannot return a value. This was running until I did some rearranging to try to get my function that calculates the total grade average in main to work.(So i commented that all …

Software Development c++
Member Avatar for guitarrick
0
94
Member Avatar for r5ingh

Hello. I, the C++ noob is back again... This time requiring some help with some visual CPP. This is the first time im working with this, and its only @ a basic level. Yes, this is somehting im doing at university, but i dont ask for help unless im stuck …

Software Development c++ visual-basic
Member Avatar for r5ingh
0
238
Member Avatar for Kiba Ookami

I'm an AP level computer science student, and I learned VB last year before touching in basic C++ techniques. Now, I was wondering as I (kinda) learn Java (I'm crap at it) what the overall net worth of having VB skills are? I mean, Java seems to be THE language …

Software Development visual-basic
Member Avatar for VIeditorlover
0
181
Member Avatar for kv79

Hi to all ,just a small question. When i read in the book for Win32 API tur. in c++, this: " cbSize The size of the structure. " I asked my self ,what sturcture? I tought we useing class.

Software Development api c++
Member Avatar for kv79
0
115
Member Avatar for Noliving

Hello everyone, my problem that I'm have is that I have to get the volume and the surface area of a sphere using a class. I believe I was able to do that part of the problem correctly. The issue I'm having is getting that information to print from the …

Software Development python
Member Avatar for imamyth
0
113
Member Avatar for tmonaghan

I have a Linux web server that will have a flash form to process user information. This creates a text file in a directory outside of the public area using the date and time for the filename. What I need is this, whenever a file is created in that directory …

Software Development flash shell-scripting web-server
Member Avatar for tmonaghan
0
95
Member Avatar for hsanjakd

Hi All! I have a programming assignment that ive been trying to work on. Recently, ive successfully wrote it in java, but im trying to use that as psuedocode so that i can transcribe it into mips - but i dont understand this stuff! ive been reading this book but …

Software Development assembly
Member Avatar for ithelp
0
89
Member Avatar for gatzos_barca

Hello All, I just want to ask what this programme does. Actually i know what it does, i just wanna know the exact operation of it. [code=c] char *u ; //declare the string char k; unsigned int x; // declare integer int i; u = " University " ; k …

Software Development c
Member Avatar for ithelp
0
133
Member Avatar for ssriram

Hi all, I'm working on a GPS/GSM based project and I want to convert the RMC parameters to BINARY format. Actual RMC Sentence looks like this: $GPRMC,171004.031,A, 3658.4246,N,12201.3362,W,23.44,255.42, 060206 Interpretation as follows: 171004.031 = UTC of position fix (hours, mins, secs, decimal secs) A = GPS Status, Valid (V = …

Software Development c
Member Avatar for Belrog
0
211
Member Avatar for partyanimal

Hello All I have created a form which as two group boxes, in each of these group boxes I have 8 radio buttons in each labeled 1 to 8 and the group boxes are named Up for the first box and Down for the second box. and I also have …

Software Development c#
Member Avatar for partyanimal
0
169
Member Avatar for JCD

Hello, i have been working on a VB Assignment which needs to be completed. However i have been experiencing some difficulties. I am not particularly experienced with VB, and so forgive me if these problems seem nooby.. Basically so far, i have a form where Data of a Customer and …

Software Development visual-basic
Member Avatar for ardsuggy
0
227
Member Avatar for Oxiegen

Hi! Sorry about my bad grammer and/or spelling. English is not my native language. I don't know if this already have been asked and answered, however... I'm currently developing a program in which it will be possible to select table fields from a database and set various criteria using dropdown-lists. …

Software Development vb.net
Member Avatar for Oxiegen
0
236
Member Avatar for finalheavenx

Hello I'm a newbie java student, I would like to ask how can I get this kind of program output by using java: [B]10 10 10 10 10 10 10 10 10 10 9 9 9 9 9 9 9 9 9 8 8 8 8 8 8 8 8 …

Software Development java
Member Avatar for sameerrathore
0
64
Member Avatar for eranga262154

Hi all, I have a string(not a CString), actually a file path. As an example, [CODE]c:\Test\MyProject\G00062_002_01.srf[/CODE] Then in following way get some data. [CODE] string FullPath = c:\Test\MyProject\G00062_002_01.srf string filePath = FullPath.GetFileTitle(); string groupID; string sessionId; string partID; groupID = filePath.substr(1, 5); sessionId = filePath.substr(7, 3); partID = filePath.substr(11, 2); …

Software Development c++
Member Avatar for Duoas
0
115
Member Avatar for Tsjelle

Hi there, My name is Tsjelle, I'm a Bachelor in the Informatics. I'm writing a program in vb.net that get's an xml-file as input and somewhere in the xml-file there is an attribute that's in fact an HTML-page. And it's that page I need to get printed. I'm at the …

Software Development html-css vb.net xml
Member Avatar for Oxiegen
0
206
Member Avatar for vonzul

This program should traverse a directory and save the file names into an array so I can manipulate data within the files. The problem is that the program prints the name of the files in the first loop, but it only saves the last file name in the array. Below …

Software Development c
Member Avatar for vonzul
0
3K
Member Avatar for arjayes

I need a shell script to simultaneously run multiple instances of a compiled c code can some one please help i'm using BASH

Software Development shell-scripting
Member Avatar for arjayes
0
77
Member Avatar for danbellinger1

I am working on a project using 2D arrays ( I have never really understood the use, I know how they work, just have always had problems implementing) that holds a 4x4 "magic square." Magic squares contain unique numbers whose rows, columns, and major diagonals add up to the magical …

Software Development c++
Member Avatar for Lerner
0
171
Member Avatar for jmasta

I'm getting a whole bunch of null pointer exceptions when I run my program. Here's the info: My program takes a text file (myIn.txt), will keep individual totals of all the characters, then put them into an ordered linked list. Now I need to build a pseudo-Huffman binary tree, with …

Software Development java linked-list printer
0
93
Member Avatar for 3nCrypti0n

Im making this program. But im having trouble calling certain functions. Im having trouble calling ShellExecute, RemoveDirectory, CreateDirectory, FindFirstFile, & DeleteFile. I get the following errors when trying to compile... [CODE] c:\documents and settings\george\my documents\visual studio 2005\projects\mmpc v1.0\mmpc v1.0\prog.cpp(42) : error C2664: 'ShellExecuteW' : cannot convert parameter 2 from 'const …

Software Development c++ microsoft visual-studio
Member Avatar for Duoas
0
231
Member Avatar for alcoheca

Hi, Despite triple checking my code for duplication and checking that the headers include #ifndef I still can't trace what is causing this error message: drawscr.o(.bss+0x0):drawscr.cpp: multiple definition of `massage' main.o(.bss+0x0):main.cpp: first defined here Ideally I'd create the pointer at struct definition time via a declarator. [CODE=C]// drawscr.cpp #include <iostream> …

Software Development c++
Member Avatar for Duoas
0
288
Member Avatar for 1pal4u

Just starting to program, 1st assignment was to create lottery interface for randomize numbers 1- 54. displays 6 lottery numbers separate label control, Print button printing w/o command buttons showing, and an exit button. So far this is what I've done for coding what am I missing or doing wrong? …

Software Development vb.net
0
148
Member Avatar for guitarrick

Hello again everyone. This one is a project to help with understanding another project (aren't they all?)... At any rate, this was running up through main where I was attempting to call and get my grade computation function (which you'll see a bunch of stuff commented out). I fooled around …

Software Development c++
Member Avatar for guitarrick
0
114
Member Avatar for locsin

Greetings! Im using this format to use and open database Set ac = New ADODB.Connection Set ar = New ADODB.Recordset strconek = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\record.mdb;Persist Security Info=False" i want to use variable value in my data source. my database is record.mdb. i want to make syntax for …

Software Development open-source visual-basic
Member Avatar for thekickers2006
0
184
Member Avatar for finalheavenx

help me make this shorter.. i think this is too long.. i'm a newbie student.. #include <iostream.h> #include <conio.h> int main() { int x, n=0; clrscr(); for(x=1;x<=5;x++) cout << " " << x; if(++n==5) { cout << " " << endl; } n=0; for(x=2;x<=5;x++) cout << " " << x; …

Software Development c++
Member Avatar for WaltP
0
125
Member Avatar for kittycat07us

Hi. I was wondering if someone could help me with this program.. the purpose of this program is to play tic tac toe, and I'm having difficulty getting it to compile. I have gone through it several times. I would most appericate it if anyone could look at it and …

Software Development c++
Member Avatar for Ancient Dragon
0
89
Member Avatar for kv79

Hi to all, just a small question? This is typed in the book. hInstance is used for things like loading resources and any other task which is performed on a per-module basis. What is pre-module basis. Google won't help.

Software Development c++
Member Avatar for kv79
0
93
Member Avatar for squidd

I have one form that is doing a security check. if the serial number or whatever is found, then a button will appear to open the actual program. Welp, that isnt working out so well. How do I have a Tbutton open another form and close the first form? This …

Software Development pascal
Member Avatar for squidd
0
467
Member Avatar for kidjl

i need a little help with the function, i created 9 buttons in VB6 at runtime. I set them to swap colors when each time the button is clicked. However, i want all the buttons to stop swaping colors when all 9 buttons are in the same color. so i …

Software Development vb.net
Member Avatar for jbennet
0
103
Member Avatar for lacy1104

I am working on a project in which i have to use Classes and do multiple things with different sorts of data. The basic question i have though is this: what am i doing wrong here in terms of this class declaration etc...i get ton of errors and cant seem …

Software Development c++
Member Avatar for Ancient Dragon
0
292
Member Avatar for delphinew

Please...i ask helping from..all .... i want to write sound value from dinamic array,,to save in .wav type... i tried to write header .wav and result it i think is true... but i still confused how way to write sound value.. i put sound value in array, name is hasil_wav,,, …

Software Development delphi pascal
Member Avatar for Duoas
0
227
Member Avatar for ferhatkuskaya

Hi, I want to learn whether any components such as coloured bars whose heights are automatically changing in the two values which comes from one editbox. If I write 50 to editbox, The colour bar will be half of its height automatically. If I write 75 to editbox, The colour …

Software Development pascal
Member Avatar for Duoas
0
123
Member Avatar for Underdog67

I'm having a lot of difficulty trying to figure out how to label headings in a 2D array using enum type. Here is the basic for-loops to read in and out the values of an array. (This is a 5x5 array). [CODE] #include <iostream> #include <fstream> #include <iomanip> #include <cstring> …

Software Development c++
Member Avatar for Duoas
0
2K
Member Avatar for ferrari77

#include<string> #include<iostream> #include<fstream> using namespace std; class fileHandleString { private: ifstream infile; ofstream outfile; public: fileHandleString() { infile.open("input.txt", ios::in); outfile.open("output.txt", ios::in); } ~fileHandleString() { infile.close(); } string getFromFile() { string str; getline (outfile, str); return (str); } }; The above code is what I am using but I keep getting …

Software Development c++ ios
Member Avatar for Duoas
0
516
Member Avatar for claudiu_is

I`m creating a desktop application which need s to store some data. I would probably store no more than 100rows with 10-15cells. Question is, should I use csv or an sql database; which one is accessed faster ?

Software Development java
Member Avatar for Ezzaral
0
154
Member Avatar for ENG ISE student

I am getting an error i dont recognize and dont know what to do to fix it and input would be great. The error is: [CODE]prog4.cpp:23: error: no matching function for call to 'std::basic_istream<char, std::char_traits<char> >::get(char [500])'[/CODE] [CODE] #include <iostream> #include <ctype.h> #include <cstring> using namespace std; void encrypt(char ch, …

Software Development c++
Member Avatar for Ancient Dragon
0
100
Member Avatar for raj1

I am using a for loop to calculate the distance between the vertices of a polygon using for (i=0; i<N, i++) { j= (i-1) result = sqrt (sqr(X-X[j])+sqr(y-y[j])); } return result; This work fine however it doesn't and I cant calculate the distance between the last and first vertice e.g …

Software Development c++
Member Avatar for raj1
0
112
Member Avatar for tiffy1012

I am having a hard time getting this program (my homework assignment) to compile. I have looked it over a million times. The program is supose to read an inventory of an art gallery from "art.dat" into a struct (the Type and Place have to be enum types), and then …

Software Development c++
Member Avatar for vmanes
0
122
Member Avatar for yuzhang

Hello All: I have been thinking to learn develop a GUI using C++. Any suggestions on where to start? (Using which development kits and etc) Thank you

Software Development c c# c++ gui
Member Avatar for maddog39
0
87
Member Avatar for balla4eva33

I have this code: [code] void ShapeArr::publishStats() { double ap = 0.0; for (int i=0; i < currCount; i++) { Shape *s = arr[i]; ap += s->getAPRatio(); } cout << "Max APRatio = " << [COLOR="Red"][B]???[/B][/COLOR] << " Average APRatio = " << ap/currCount << endl; } [/code] What do …

Software Development c++
Member Avatar for balla4eva33
0
118
Member Avatar for edouard89

Hello All, well this is my first post after a while of inactivity. I have run into a problem. I have an assignment for school, but when I debug my program using Dev C++(BloodShed) it give me a segmentation fault. I am reading from a file that looks like this: …

Software Development c
Member Avatar for edouard89
0
154
Member Avatar for mauro21pl

Hi I just started to learn Java and I woulkd like to make my life a little bit easier. I am looking for a good java compiler, something that works as good as Dev-c++ for c++. The application taht collor specific text of code and do the indentation. Thanks

Software Development java
Member Avatar for jwenting
0
196
Member Avatar for devilofangel

i am new at programming basic.. i got this problem at school... i want to seek help from you!..its all about inserting and deleting arrays in c language!.. for example: given this output: Menu Operations: [1]Insert at beginning [2]Insert at middle [3]Insert at End [4]Show array elements [5]Delete array elements …

Software Development c
Member Avatar for jwenting
0
85

The End.