132,726 Archived Topics
Remove Filter ![]() | |
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++ | |
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++ | |
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 | |
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[] … | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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# | |
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 | |
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 | |
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 | |
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++ | |
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 … | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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++ | |
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 | |
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++ | |
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 | |
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++ | |
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++ | |
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 | |
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 | |
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++ | |
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,,, … | |
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 | |
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++ | |
#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 … | |
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 | |
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++ | |
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++ | |
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++ | |
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++ | |
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 | |
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 |
The End.