132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for cw1184

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 …

Software Development c++ ios
Member Avatar for cw1184
0
210
Member Avatar for JQuinn88

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
Member Avatar for kjduke
0
142
Member Avatar for nor_d83

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
Member Avatar for nor_d83
0
183
Member Avatar for paferlini

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
Member Avatar for jice
0
92
Member Avatar for Briz

Hey everyone, I have a project in which I need to program a Khepera robot too navigate through a maze and find a beacon on the first run. *On the second run it must go to the bacon via the shortest path. *The grid is a 4*3 (so i have …

Software Development python
Member Avatar for Freaky_Chris
0
194
Member Avatar for meddlepal

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 …

Software Development algorithm c++
Member Avatar for ArkM
0
236
Member Avatar for chanthung

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
Member Avatar for chanthung
0
212
Member Avatar for gregorynoob

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++
Member Avatar for ArkM
0
181
Member Avatar for sgame144

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++
Member Avatar for sgame144
0
90
Member Avatar for laghaterohan

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
Member Avatar for laghaterohan
0
171
Member Avatar for Shanti C

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
Member Avatar for Shanti C
0
102
Member Avatar for 2o2

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
Member Avatar for VernonDozier
0
3K
Member Avatar for iNeedHelpPlease

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" …

Software Development c++ perl
Member Avatar for dougy83
0
269
Member Avatar for Jaoqua

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
Member Avatar for eggi
0
86
Member Avatar for mehtaneha84

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
Member Avatar for Sci@phy
0
181
Member Avatar for DanDaMan

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++
Member Avatar for DanDaMan
0
144
Member Avatar for geemicah

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++
Member Avatar for ArkM
0
146
Member Avatar for cam875

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 …

Software Development c++ ios
Member Avatar for cam875
0
62
Member Avatar for andyT

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
Member Avatar for andyT
0
227
Member Avatar for peter_budo

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
Member Avatar for peter_budo
0
227
Member Avatar for FumarMata

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++
Member Avatar for FumarMata
0
171
Member Avatar for MNR

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 …

Software Development java queue
Member Avatar for MNR
0
171
Member Avatar for Kplusplus

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++
Member Avatar for VernonDozier
0
933
Member Avatar for launic

Can someone please explain how to create a makefile? I'm somewhat confused by what I've read on the web thanks

Software Development c++
Member Avatar for stilllearning
0
97
Member Avatar for aoi

[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
Member Avatar for ahamed101
0
109
Member Avatar for annie_singh

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
Member Avatar for Salem
0
181
Member Avatar for nealpcarpenter

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
Member Avatar for Freaky_Chris
0
219
Member Avatar for psyman_86

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
Member Avatar for Salem
0
156
Member Avatar for Bigboy06

[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++
Member Avatar for Salem
0
144
Member Avatar for launic

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++
Member Avatar for launic
0
158
Member Avatar for Stefano Mtangoo

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 …

Software Development c++ python
Member Avatar for William Hemsworth
0
123
Member Avatar for pradeepkk2008

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
Member Avatar for LizR
0
94
Member Avatar for Stefano Mtangoo

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
Member Avatar for Stefano Mtangoo
0
3K
Member Avatar for lordx78

[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.

Software Development ide java
Member Avatar for lordx78
0
118
Member Avatar for Tekito

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
Member Avatar for Tekito
0
115
Member Avatar for Gerbilkit

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
Member Avatar for Gerbilkit
0
108
Member Avatar for cplusplusgeek

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 …

Software Development app-store c++ ios video
Member Avatar for Ancient Dragon
0
133
Member Avatar for Tank50

HI I got an error once I i run below coding,it give me error messages as No row at index 0.Pls help me slove this probelm.I think there is no row is datatable,So i want to know how to add row before it populate from data. DataTable data = new …

Software Development dataset
Member Avatar for LizR
0
129
Member Avatar for nizbit

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++
Member Avatar for grumpier
0
102
Member Avatar for davidjonas

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 …

Software Development api audio java video
Member Avatar for davidjonas
0
178
Member Avatar for opposition

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++
Member Avatar for iamthwee
0
124
Member Avatar for redflame777

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
Member Avatar for redflame777
0
106
Member Avatar for Bigboy06

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++
Member Avatar for ArkM
0
337
Member Avatar for cproud21

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
Member Avatar for javaAddict
0
131
Member Avatar for launic

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++
Member Avatar for sidatra79
0
197
Member Avatar for liquoriser21

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
Member Avatar for liquoriser21
0
161
Member Avatar for blindkilla

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
Member Avatar for LizR
0
86
Member Avatar for abu taher

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
Member Avatar for Teme64
0
201
Member Avatar for Birdie010

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 …

Member Avatar for Teme64
0
122
Member Avatar for slayman89

[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++
Member Avatar for slayman89
0
250

The End.