132,726 Archived Topics
Remove Filter ![]() | |
Hi, I have difficulty declaring a hash_set. I would like a hash set where the key is a structure Point3d (typedef Point3D {short x,y,z}) and the value in the set associated with the key an int. I don't quite understand how to declare it ... something like hash_set< const Point3D, … Software Development c visual-studio | |
Hi all , I'm a Java newbie ..... Currently , I'm having a Java project on programming to send and receive data between two computers with the support of USB dongles ... But I really dont know where to start ... Do you guys have any advices or sample codes … Software Development java | |
Hi, I'm a newbie with ANT. I have a ANT build.xml file in which I'm attempting to separate certain packages from different requirements of the built. As an example, if I have a software which consists of packages A,B,C,D and E. I have customer whom are purchasing the software, but … | |
So I'm writing a program (MFC) that connects to a server w/ windows sockets (YUCK I know). I left it running as part of an endurance test the other day, and my PC ran out of virtual memory. Odd eh? So I ran it again using task manager and noted … Software Development c windows-server | |
I'm new to Boa constructor (not to Python) and seem to have a litle problem. It looks to me as Boa creates the focus order in the same order as you create visualy your form. If that is the case, what do you do when you forgot a control and … Software Development python | |
i need to finish this program by friday at 8:00am i know im new but i have a lot of work done so pretty much here is what i have. requirements programmer defined function for into - check user must input element statistics into element_t im pretty sure i made … Software Development data-structure pdf | |
Dear all, I am in the process of writting a hospital/doctor prog. I have the majority working. BUT the program will only work ONCE. when I run the prog and input patient details (No.1), the details are inputed correctly. when I choose (No.5) I am able to correctly input the … Software Development c++ | |
hi every please i need your expriment to help to complete this code my problem is with three functions i think so there is no errors the funcions are display account...>does not work just display name transection...>it count jyst one time standing order...>i do not know how to compare the … | |
I have written a program that performs a simple version of Run-Length coding compression on a file. I thought everything worked, but after a closer look at the output from the program, letters after a space are counted 1 too many times. I.e, if the letter 'p' appeared 6 times … | |
Hey guys, the following code is part of a program I am working on and as a newbie to c++ I have come across a problem. As you can see when the case is J the int J is increased by 1 but how do I go about doing this … Software Development c++ file-system | |
i copied the code as is discussed by my professor and written in my course book but i am not getting the correct output. my logic is very clear but not getting the right output, its a bunch of positive n negative values. pls check . the code is compiling … Software Development c++ | |
Hola, Just like to say hi to everyone, i just joined the forums. Ok, I have been playing with C++ now for about 3 or 4 months and have now hit a brick wall and need your help. I am trying to write a program that will read in data … Software Development c++ | |
Little, by little my calculator is getting a look I want. However, I find that using Tkinter is not very intuitive, and i cannot find detail documentation. have a look at this [code] # menu-example-2.py #from Tkinter import * #root = Tk() #def hello(): #print "hello!" ## create a toplevel … | |
Hi: I had a question on how to use: int Read(char *buffer, int size, OpenFileId id); void Write(char *buffer, int size, OpenFileId id); This is for a client that is connected to a network host server and it is for a chatting program. If someone could direct me to a … Software Development c client-server | |
How's it going: How do you use fopen() to establish a stream to console I/O (keyboard)? What I needed to do is read in data from the console I/O and then send it elsewhere using fputs. I just don't know what the first argument for fopen("here", r) would be. Oh, … Software Development c | |
I have small code to read datas from "dat" type of file. It's read fine just when last line is done it's kick-off with error message [I][B]Exception in thread "main" java.lang.NullPointerException at CW2.main<CW2.java:26>[/B][/I] [CODE] import java.io.*; import java.util.*; class CW2 { public static void main( String[] args) { try { … Software Development java | |
| |
What two parts combine to make up the serialization of application objects in Visual C++? Is it the DECLARE_SERIAL and IMPLEMENT_SERIAL macros? What are the (2) categories of ANDs and ORs and how can they be described? I am having trouble understanding these questions and need some clarification please. Thank … Software Development c++ | |
Hello Can someone tell me what this sort algorithm is called.? And if possible a little bit of information about it... [CODE]void record_search(struct CdRecords cdDB[]) { system("CLS"); int i; char name[20]; printf("Enter Name:"); scanf("%s", name); for(i = 0;i<datasize;i++) { if((strcmp(name,cdDB[i].Artist))==0) { ENTER DATA TO BE DISPLAYED } } printf("Press Enter … | |
I'm getting a parse error before '<' on line 26. What's going on that I don't seem to be seeing here? [code] #include <iostream> using std::cin; using std::cout; using std::endl; int main() { int num1, num2, num3, num4; int avg; cout << "Enter four numbers to be averaged." << endl; … Software Development c++ | |
Hello, I get the following seg fault error when I try to delete the last node of the list. Does anyone know why? My delete function and high level function are included below: The seg fault only occurs when the if value in BeginQuizFirstTry detecting that CheckAnswer is not true … Software Development c data-structure display linked-list | |
Hi, I am not much of a programmer, so I was wondering if someone could help me write a VBA function that will go through all the cells of an excel sheet, and if a function exists in that cell, output that function to a text file? After having the … Software Development visual-basic | |
Dear all; i have a problem with functios. i have a program to write using struct in functions with arrays also. i have the program written in structes with array but not using the functions and i don't no who the do it with functions. if anybody acn help i … Software Development c | |
i got the quicksort coding correct ,, the problem is that the data is still not sorting below is the complete program to the database. The data is to be sorted by genre like i have stated i have checked over and over again but cant find nething wrong... The … Software Development c data-structure user-interface | |
What I am trying to do is to scan a text file word by word and find all words of 4 character or less then output these words to a file, but the problem is I don't know a unix command that can scan the file this way. The Grep … Software Development file-system shell-scripting unix | |
I am trying to build a constructor capable of using the current time from the time function as declared in the C++ standard library ( <ctime> ). This constructor should initialize an object of the Time class. Is what I have below going to work? I guess I need to … Software Development c++ | |
I'm really new to C++, but not to programming, and don't really know what I'm doing. I had a bunch of programs working OK. Then I was messing with a window application and all my window programs would no longer compile. I get the following error (same for all projects) … Software Development api c++ google google-api microsoft visual-studio | |
Hello im practicing C language and i ran into this code and i can't figure out the outputs :( can u help me please ? I'm confused in operator precedence. and What does [I]short circuit evaluation[/I] means in c? when i run this code the output is: 000 and 001 … Software Development c | |
Can any help me with this code, im trying to get the program to return to a function. I have no idea how this is done. Give a lil explanation so I know for next time. Thanks here the code : // The "Calculator" class. import java.awt.*; import hsa.Console; public … Software Development java | |
Hey guys I'm playing with structs and trying to get one to include the other: [code] #include <iostream> #include <string> using namespace std; typedef struct data { string dat; } DATA; typedef struct name { string na; string age; NAME * DATA; }NAME; int main() { return 0; } [/code] … Software Development c++ | |
Does anybody know of any sites that give a good tutorial on how to implement a chat client (console client(allows you to type in messages on the command line) and network proxy client(allows programs to connect via network sockets)) for interactions with a blackboard. Like sockets, fgets, filedescriptors...etc. The blackboard … Software Development c | |
Hello all, When calculating sin(M_PI) the computer outputs ~-3e-7. Unfortunately, in my program the error grows (it is multiplied by a number on the order of 1e10) into around -208. My question: is there a way to round a float/double to only 3 digits after the decimal point (I do … Software Development c | |
Hi i am new guy in programing and i need ur help in this program if u can. my problem is that we have to write a program to read a file usinag a struct array and a function and the assigment is Print all of the input data ; … Software Development c | |
I am doing a perl project for school in which I am using CGI.pm. I am a complete perl novice. With the following: [code] use CGI; $query = new CGI; print $query->startform({-action => "foo.cgi", -method => "post"}); print $query->p($query->textfield({-name => "bar"})); print $query->submit({-name => "action", -value => "submit"}); print $query->endform(); … Software Development first-post html-css perl | |
Hey after spending a few hours trying to understand why my quick sort is not owrking, i've tried calling the q_sort() and quick_sort() but with no luck...... below is how i had it from the start for less confusion,, can someone tell me why it isnt working... i've checked the … Software Development algorithm c data-structure user-interface | |
If any body knows it, Pls. post me reply to this Software Development c++ first-post | |
Hi, I runned that program with int variables and was OK but when I changed the type of pay_calc(),*emp_rate,pay from integer to float I failed ..Please Help main() { int *emp_no,*emp_works; int pay_calc(),*emp_rate,pay; char *emp_unit,ans,another(); system("cls"); do { input(&emp_no,&emp_works,&emp_rate,&emp_unit); pay=pay_calc(emp_works,emp_rate,emp_unit); pay_slip(emp_no,emp_works,emp_rate,emp_unit); cash(pay); } while (another()=='y'); return 0; } char another() … Software Development c | |
I am trying to open a mp3 to read the ID3 tag information, when the mp3 is opened in an ASCII editor I can see all the information I want, including spaces. But... When I try running the following chunk of code on that same mp3, I get the same … Software Development c++ file-stream | |
Plz answer to my C doubts:- 1) Why do prototypes of some predefined functions in ctype.h(ex- tolower(ch)) has 'int' as the data type for formal arguments? How will it matter if the formal arguments r of type 'char'? 2) Is there any command in DOS for viewing the non printable … Software Development c++ file-stream unix | |
1) Plz explain these complex declarations(from K&R).-- [CODE] char(* (*f())[]) () // f : a function returning pointer to array[] of pointer to function returning char. char(* (*x[3])()) [5] // x: array[3] of pointer to function returning pointer to array[3] of char. [/CODE] The one line explanations which r given … Software Development c++ | |
I got everything working, a couple of probls with file write. But ill work it out. I just need help on getting the quick sort working here...i got it written and even in my switch statement but for some reason it dont work....ne one know y...?? [CODE]//(Database Management System(DBMS), user … Software Development c data-structure user-interface | |
I'm trying to create a graph class that is implemented as an array of pointers. This array is dynamically allocated which is where i'm having my trouble. I'm getting an error message from my equal signs saying that the operator doesn't exist [CODE]GraphClass::~GraphClass() { Node *temp; temp = array; Node … Software Development c microsoft visual-studio | |
Hi there, I am not the bet in Access, I will admit. But need a function to open up a MS Outlook template (.oft file) within Access. Anyone help with quick steps on how to do this, It would be greatly apprciated. Software Development visual-basic | |
Hi All, Currently I am doing one project related to unicode file reading & writing. I got my result using CFile & using WcharToMultibyte,MultiByteToWchar conversion functions. But I have a doubt whether those functions work fine if the unichar is more than 2 bytes. Now I want to read the … Software Development c++ | |
Does anyone have an opinion on which of these sorts would work best on a small array: quick sort, insertion sort, or selection sort? Software Development java | |
I just had a pretty basic question regarding graphics in C++ using the header graphics.h. How would you take a shape or just regular text and randomly move it around the screen like you would see in a screen saver? Just looping it to randomly display it in different areas … ![]() | |
Hi all, I am trying to list out a bus as individual names. For instance - When I come across a section in a file that lists a bus like this: <busname>[0:2] I would like to print out this: <busname>[0] <busname>[1] <busname>[2] Here is what I have - It goes … Software Development perl | |
Dear all, I have a prog working and printing to screen. But as my program has grown i.e class/method definitions I need to tidy up my main(); my problem is with printing my results to the screen. [COLOR=Red]///this will print out to screen perfectly. note i left out the class/method … Software Development c++ |
The End.