132,726 Archived Topics
Remove Filter ![]() | |
Hey all, i'm a freshmen in college who is taking Intro to Computer Science with C++ and i'm just a beginner when it comes to programming so i have a problem. This is our assignment: [B]You are to write a program which inputs a Celsius temperature from the user, converts … | |
Hey I am trying to created a dice game that roll the dice twice and then ask the user if he/she thinks the next two rolls will be more than or less than the first two. After the third roll the program is then suppose to ask the user if … Software Development java | |
Hello, I'm a beginner VB 6.0 user, and I would like to know something about it. Is there any difference in coding (for the same purpose) between a database oriented VB projects using the Data Control and ADO? How much are the differences, if you plz could explain it briefly. … Software Development visual-basic | |
Hey all! i need to write a tuple into a file.. it was to work something like this: ---- [ICODE]c.execute('select * from valores') for row in c: file1.write(row)[/ICODE] ----- i already tried to do str(row) and everything, but nothing seems to work... Software Development python | |
I am having a lot of trouble with a Divide and Conquer algorithm to count the number of white cells and white cell blocks in a grid of black and white cells. Here is my grid file "cells.txt": w = white cell b = black cell [CODE] bbbbbbbbbb bwwwwwbwwb bbbbbwbwwb … | |
Hi, Badly need help again. I have completed one project and have tried making a setup file using Microsoft Visual Studio Package and Deployment Wizard. It showed no error. I ran the setup file but could not as I saw a message(Error?) and after completing the setup I tried running … Software Development visual-basic visual-studio | |
every time i make my own rounding routine with precision, i see my compiler suggesting a function long double round(long double x, int precision); so i was wondering if someone knows what library it comes from, i surely wasn't able to find it... thanks Software Development c++ | |
![]() | I am trying to write this program that requires the following for C++: Write a c++ program to simulate the roll of a die. In principle, each of six possible outcomes is equally likely. -The program will prompt the usesr to enter the # of times the die is to … Software Development c++ ![]() |
pl.help me out on this : i need to calculate balance amount....however...i am not able to calculate it. C i have coursefees then when i click on installment 1 and enter the amount my balance amount textbox should reflect the coursefees- installment1 total similarly when i click on installment 2 … Software Development vb.net | |
Hello Friends... I am completely newbie to XML..And I am a php developer... I heard that XML can be used in the replacement of our databases...Is it right??? What is the purpose of XML to be used in our project....What are the advantages and disadavantages of XML...And How to use … Software Development xml | |
here is my calculator. it works fine, but for the love of god i cant figure out how to get the screen at the top, centered while the rest of the buttons follow the gridlayout pattern. any way? [ICODE] package Calculator1; import javax.swing.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.*; public … Software Development java java-swing | |
Hello, Here's the details: User inputs sentence Program checks sentence for 3 magic words ("chicken", "egg", "rooster") Program keeps count of every magic word found and displays results Here's my code: [code=c++]#include<iostream> #include<string> using namespace std; const string chicken( "chicken" ); const string egg( "egg" ); const string rooster( "rooster" … | |
I am trying to dynamically create some shell script and run it (but don't know how!). I want to read in a string from a file (e.g. '[icode]echo $myvar[/icode]') then run that string (and, yes, myvar IS an existing variable). Can it be done? I have thought about writing it … Software Development shell-scripting | |
I am working with fifo module...I actually found the basic code on DaniWeb, just made a few changes to it... There are 2 main sources...first one is called fifoqueue which consists of basic fifo functions i.e. qu, dequ, isEmpty and a couple more...the second one is called packetstructure which is … Software Development c++ queue visual-basic visual-studio | |
All right so I'm learning C++ via library books and the information isn't too helpful, but it's the best I can find. Most of the books at my library are older than I am - copyright 1993 - some even earlier. So it's kind of ironic how the [seemingly] simplest … Software Development c++ | |
this program is running, but the problem is., the function that I called didnt give me the accurate answer.. if you looki into my source.. what was the problem?? is the formula?? or the wrong way of calling functon?? or the whole source of my program.? this program should able … Software Development c++ | |
I compiled this code in dev c++ and i got 0 warnings and 0 errors, so it was a clean compile and whenever i run the exe i get this error which says assembler.exe has encountered a problem and needs to close. And gives me the error report thingy for … | |
Hi, This is my first post, this site has been very helpful in the past. I am wondering if it is possible to assign a dynamic array to a vector? If so, how? The following code is not working for me (with Visual Studio .NET 2003): [code] int *current; current … Software Development c++ visual-studio | |
I'm working on an application that simulated process of writing text message on mobile phone. On the canvas I first draw already typed message. If any and on button pressed I retrieve correct set of characters. Here I'm able to loop through them and highlight currently active/selected character. However I … Software Development java | |
Hello I have written my program and right now I am stuck in something that I thought that was going to be easy. I have the [B]char buffer[/B], which receives from the serial port some letters and 2 numbers at position 3, lenght 2. I want to extract those numbers … Software Development c++ | |
Hey guys, the program has to wait until send button in jframe clicked then to get the text and put it in to queue and then send it to server using doInBackground method, also in line 65 i get a compile error which says that ther is nothin to override … | |
Okay, so im new to this website/forum. I am in programming 12, and as my final project in C++ I have decided to create an address book application. It will be "simple" and I was hoping to be able to get it to be able to: 1) Create new entry. … Software Development c++ | |
[code] t=malloc(sizeof(NODE)); t->lname[i]=ln[i]; t->fname[i]=fn[i]; t->add[i]=ad[i]; t->telno[i]=tn[i]; t->next=NULL; i++; if(*h==NULL){ printf("\nCreating record..."); *h=t; } else{ p=*h; if(p->next!=NULL) { while(p->next!=NULL){ if(strcmp(p->lname[i],ln[i])>=0){ p->prev->next=t; t->next=p; } p->prev=p; } } else { if(strcmp(p->lname[i],ln[i])>=0) { p->next=t; t->prev=p; t->next=NULL; } else { p->prev=t; t->next=p; } *h=p; } } [/code] could help me with my code? i can't … Software Development c | |
Hello, I am new to perl, but I would like write a perl script that can convert xyz cordinates from a pdb file to distances using the formula: distance = SQRT[(X1-X2)^2 + (Y1-Y2)^2 + (Z1-Z2)^2] eg: line 1 xyz to line2 xyz line 1 xyz to line3 xyz line 1 … Software Development perl | |
Is this hard? I am introducing Python to my students and want to make a simple, interactive program that will, while it's running, 'listen' for any keyboard events. That is, I don't want to include an 'input' statement - that would pause execution till someone answered. I just want it … Software Development python | |
Hi, I have a structure in a library that defines various parameters for wireless transmission. I want to create an array of these structures, which each element in the array containing the required parameters for a particular wireless channel. The structure: [CODE]typedef struct S_RF_RXTXPAIR_SETTINGS { byte modem0; // Baudrate, xosc_freq, … Software Development c | |
[code=cplusplus] #include <iostream> using namespace std; class Month { public: Month (char char1, char char2, char char3); // Precondition: The parameters contain the first three characters // in the name of the month - all lowercase. // Postcondition: The member variable month has been set to // the integer value … Software Development c++ | |
Anyone know how to pass an entire hashmap to a function?? The hashmap is hash_map<string, wordStruct> hashofwords; wordStruct contains information about each word in the hashmap. Software Development c++ | |
Hello All, I now learn Python and would slowly want to learn C++. I got little brushing on C++ very long ago and was very introduction and I know C++ is harder than Python. Can somebody point some good tutorials, IDEs and free books around the Net? Very newbie worried … | |
Hi, this is my first job in UK, so need bit of help. The problem goes like this. I have an existing SQL database where there are 2 user tables. One contains only field.U_Id(int) not null and other is user_details table where there are fields like user_id(int), username and so … Software Development | |
Can somebody tell me how to do bolding and Italicizing plus underlining I have just started getting serious after long time "milk drinking", now I want to eat solid food. Thanks all, Steve [ICODE] import wx ID_EXIT =100 ID_BOLD = 101 ID_ITALIC = 102 ID_UNDERLINE = 103 ID_TEXT = 104 … Software Development python | |
[B]Eclipse IDE for Java Developers[/B] (85 MB) [B][COLOR="Red"]Vs[/COLOR][/B] [B]Eclipse Classic 3.4.1[/B] (151 MB) Just wanted to know. Please advise. | |
I have a routine that, at one step, calls a form and shows it modal. When the user closes the form the routine continues. However, upon closing the form I want to know if it performed its assigned function- if it failed then I need to stop the routine. However, … Software Development visual-basic | |
I've been working on a homework assignment for a while now for my class, and right now I'm stuck on what should be a very simple problem. I have two files, EmployeeSystem.java and FullTimeEmployee.java. EmployeeSystem is the main, and is the file currently failing to compile. Basically in the method … Software Development java | |
I am developing an application for a video store, can someone guide me on different fragments of it.I need some help here. Here is what i have come up so far: [code=cplusplus] #include <iostream.h>// #include <string.h> #include <fstream.h>//Library fro File I/O using std::string; class Video { private: //Data Members string … | |
Say I have a class named Contestant, could I declare an instance of the Contestant class as: [CODE] Contestant *c = new Contestant; [/CODE] Software Development c++ | |
Hi! Just signed up and can't help to notice what a good forum you got going here!! congratulations! I am working on a project of educational software concerning sound editing and audio-video synchronization. I am researching the Java Sound API and it's been working pretty well but now I got … | |
Hey, Im just wondering if there is a fuction that already exists which finds a character in a string and then ignores everything after it. Its reading in a whole line from a text file and then suppose to seperate it. [QUOTE] char myString[500]; indata.getline(myString, 500, '\n'); [/QUOTE] the text … Software Development c++ ![]() | |
I can't figure out why I am recieving error messages from the compiler that tells me that I have an illegal start of the expression for the code that is in red. I have also put the product class that goes with the main class; I'm not sure if the … Software Development java | |
i need help with this code it compiles and runs fine but it is not giving me the results i expect the problem is i think on the switch statemen. Here is where the problem is and then there is the rest of the code [CODE=cplusplus] void Month:: Output(ostream& outs)// … Software Development c++ | |
I have the following program to write: given the TimeAT class: The time class uses two integers, one to store the hours and one to store the minutes of a given point in time. Write a Clock class which uses TimeAT class objects to store the current time and an … Software Development java | |
Can someone please give me an example of how to use .find() with a hashmap? This is what I have: (wordData is a struct with info about each word, and hashFunc is the name of the hash function) typedef hash_map<string,wordData,hashFunc> wordHash; wordHash hashofwords; (after passing in a string s to … Software Development c++ | |
Hi everyone! How do I format the layout of the datagridview to display header titles the way I want? and how do I format the layout to display the rows in multiple color mode. Any type of help wil be appreciated Lets do what we do best! Software Development vb.net | |
Here is my situation. Im trying to learn how to take full advantage of multithreading but am at a rump. I have one listbox of usernames and it checks them on a website to see if they exist or not. If they exist it puts the username into listbox2. Now … Software Development multithreading os-x | |
I want to change the format of Dt Picker. I write in format property dd/mm/yyyy. But it show 30/00/2008. why the month didn't show. any body help me to change the format of Dt Picker. Software Development visual-basic | |
Can someone please help me with why I'm receiving this error message for a ALineIn.Split Delimiter. Thanks! Error Message: Error 1 Overload resolution failed because no accessible 'Split' can be called without a narrowing conversion: 'Public Function Split(separator() As Char, options As System.StringSplitOptions) As String()': Argument matching parameter 'separator' narrows … Software Development microsoft-access open-source vb.net visual-studio | |
[code] int main() { vector<double> list; bool more = true; while (more) { double x; int yes; cout << "Do you have numbers? yes=1 or no=2" "\n"; cin >> yes; if(yes == 1) { cout << "Enter number""\n"; cin >> x; list.push_back(x); yes = 0; } if (yes == 2) … Software Development c++ |
The End.