132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Web_Sailor

Hi.. How do I check the data type in an input file ? Suppose my text file looks like this. Tab separated :- [CODE] 123 456 ABCD 789 890 EFGH 298 764 IUHJ [/CODE] Now I read the file like char or string in my while loop using getline. So …

Software Development c++ file-system
Member Avatar for Web_Sailor
0
142
Member Avatar for Web_Sailor

Hi I was trying to count rows and columns in a tab delimited flat file. Like here in example below i should be able to detect automatically the no of rows and columns. So I should get 5 columns and 6 rows. Something like that. [CODE]one two three four five …

Software Development c++
Member Avatar for Web_Sailor
0
139
Member Avatar for llemes4011

Hello! I'm writing a fractal generation application. I have the fractal part down, but I can't seem to get the coloring right. What I want to do is, as the number gets closer to infinity, the pixel it relates to's color should get darker (Black relating to infinity, The other …

Software Development java
Member Avatar for ithelp
0
170
Member Avatar for pspwxp fan

K, so i decided that i'm fed up of VC++. It was throwing me lots of stupid errors. Anyway, i'd heard that Code::blocks is much better, and a bargain for 30 MB. Installed it and stuff with ease, and decided to test it with a helloworld program. Thing is, when …

Software Development c++
Member Avatar for pspwxp fan
0
231
Member Avatar for jrosh

In my application an error massage comes when the required data fields are not filled. I did it as, [CODE] if(component.getSelectedItem().equals("")|description.getText().toString().equals("")){ JOptionPane.showMessageDialog(null,"Please insert required details \n ","Error",JOptionPane.ERROR_MESSAGE); } [/CODE] the problem: When I click "OK" when this massage pops up, it closes the entire window. How can I avoid it. …

Software Development java
Member Avatar for jrosh
0
153
Member Avatar for aumi

Hi, i need some help. i have an assignment on "Airline Ticket Reservations System". i have to submit it on 10th August, 2008. I tried but can't solve it. please help me. The question is given below : 1. Consider a new airline agency “BEST AIR” that launches recently in …

Software Development c
Member Avatar for ithelp
0
322
Member Avatar for newwin

When button is pressed from Forms of MS-Access, a file open dialogue box is displayed. I need the VB code.

Software Development visual-basic
Member Avatar for ntuthuzelojames
0
171
Member Avatar for themafia_69

Hey guys, I have started java for a uni class. I am now using object oriented programming. I have taken vb so i know what functions/methods are. however i am having a hard time coding some programs for an assignment. I will try to make this thread as descriptive as …

Software Development java
Member Avatar for javaAddict
0
177
Member Avatar for badbloodyeyez

Hi, I would like to know how can I stop windows from logging off, restart or shutdown. I want to automatically pause these operations and then send a signal to USB port and then resume the shutdown, log off or restart operation. Is it possible you can help me write …

Software Development visual-basic
Member Avatar for Satishsr
0
122
Member Avatar for Mongz

Hi guys, i created database backup, but now i want it to backup every time when the time is 00:00. Any help will be highly appreciated.

Software Development
Member Avatar for shankarkotagiri
0
110
Member Avatar for No1unoin98

Ok i need some help with this JSP page that has some java in it. My assignment is to create a fictional webpage that requires a login or registration and that checks with the database to make sure that it will verify that no user with the proposed user id …

Member Avatar for masijade
0
214
Member Avatar for NinjaLink

I am creating a diamond but I am having problem. Right now, my output prints out 2 triangles underneath each other (is not displaying in the post correctly). I want to flip the 2nd triangle around to create a diamond shape. However, when I try to mess up with counters …

Software Development c++
Member Avatar for VernonDozier
0
96
Member Avatar for ewelinac

Hello. Is there a way to import data (numbers) in to a Java program which will do analysis on the data? Thanks! Evelina

Software Development java
Member Avatar for Jocamps
0
77
Member Avatar for Megabyte89

Every time I try to save data to my contacts database I get an error. The script runs fine, but when it come to clicking save I get this error. Traceback (most recent call last): File "C:\Users\Panic\Desktop\EminentGeekTechnology\Looking For Who\addnew.py", line 71, in OnSave self.database.execute('INSERT INTO contacts (fname) VALUES (null,?),' [fname]) …

Software Development python
Member Avatar for Stefano Mtangoo
0
486
Member Avatar for calypso&noname

Thanks ahead of time for reading, and any help you give. Basically I have a integer "numExs" that is initialized by user input. Then, I use a [B]for[/B] loop to output the appropriate number of X's, as dictated by the "numExs" integer. However, I get a C4700 warning that "numExs" …

Software Development c++
Member Avatar for calypso&noname
0
265
Member Avatar for skylar

ok so i was recently playing a game called ZORK a lot of older people will know what that is if you dont its a text based rpg that is realy addicting and amuseing so i wanted to attempt to figure out how they could have done something like this, …

Software Development python
Member Avatar for lllllIllIlllI
0
101
Member Avatar for Ghost34

Private Sub cmdgo_Click() //txtsearch.text is where you going to input student number and the StudentNo is database field name or should i say it is table name the one that contains student number If txtsearch.Text = StudentNo Then Data1.Recordset.OpenRecordset //hmm... i made this cause it looks like its going to …

Software Development visual-basic
Member Avatar for picawho
0
123
Member Avatar for valkerye

I'm having an issue with a program that prompts a user for a date and then validates it. It requires a switch statement to validate the day and at least 2 Boolean variables. My problem is with either of those or possibly both. I'm honestly guessing both since I'm still …

Software Development c++
Member Avatar for valkerye
0
103
Member Avatar for jhanthem

hello, I have to write a program that takes floating point numbers from another file and prints out the average. The problem is the other file submits three columns so I don't know how to do the average for the three separate columns. This code is terrible and I can't …

Software Development c++ file-system
Member Avatar for csurfer
0
148
Member Avatar for hkBattousai

I have two buttons in my main window frame, named btStart and btStop. btStop is initially disabled. I want to write down such a code that , -when user clicks btStart, btStart will be disabled and btStop will be enabled, -when user clicks btStop, btStop will be disabled and btStart …

Software Development
Member Avatar for suganyavasudev
0
838
Member Avatar for shahab03

so i have this following code which does this simple thing in mips mult $t0, $t1 $t0 = -763 $t1 = 29 when I move the values from hi and lo registers to $t2 and $t3 i get following values for each $t2 = -1 and $t3 = -22127 is …

Software Development assembly
Member Avatar for wildgoose
0
66
Member Avatar for D-P

Hi, I need this program to print ascii code that I entered to al. The problem is that it is always print the char of the value ; i.e If I type a, al=61. How I print just the '61' and not the 'a' ? Here is my code : …

Software Development assembly
Member Avatar for NotNull
0
1K
Member Avatar for assembly101

I am trying to find out if the Auxiliary carry flag only turns on when the 4th bit carries out from the 3rd bit or if it will turn on for the 7th to 8th bit aswell. This is what I did already: mov ax, 0Fh ; this is the …

Software Development assembly
Member Avatar for wildgoose
0
207
Member Avatar for haven_u

iam trying to extract a individual character. for example, during run time the user enters 110111 as input. can any 1 help me with the code to extract these input and store them in an array as individual elements.

Software Development c++
Member Avatar for haven_u
0
157
Member Avatar for Artamos

First my skill levels: I was over the moon when a friend donated his Trash80 to me, complete with manuals, oh so many years ago.. I got a glimpse into the PC world and later embraced DOS programming..:) As windows came into the picture I left behind my 'boyhood' knowledge …

Software Development java
Member Avatar for Artamos
0
114
Member Avatar for Dewey1040

What i have to do is read a string into a vector, then cop that vector into an array of character pointers, then for each element in the vector i have to allocate a new character array andcopy the data from the vector element into that character array. Then finally …

Software Development c++
Member Avatar for Zjarek
0
130
Member Avatar for lancevo3

Hey guys I am writing code that uses a dynamic casts then prints out some objects. What I am having trouble with is my code test as null when it isn't suppose to. Here is what I got and the dynamic cast code looks dead on to me. Maybe not …

Software Development c++
Member Avatar for JasonHippy
0
100
Member Avatar for abchigley

I need a macro that will search an excel spreadsheet for a specific text. If the text is found than I need it to store a value from a neighboring cell then procede to search the rest of the sheet and in the end sum all the values found and …

Software Development visual-basic
Member Avatar for cguan_77
0
69
Member Avatar for scrace89

I'm stuck trying to figure out how to find out which number in a range entered for a hailstone sequence has the longest length of numbers total including the starting number itself. This is what I have so far: elif choice is apart of a menu getValidInt() is a function …

Software Development python
Member Avatar for scrace89
0
299
Member Avatar for marshall31415

Hi, There is a lot of code - so I have attached the entire thing as a zip file. This is for a function plotter. Basically, I need to track the changes in the root window size so I can resize the canvas and redraw all the plots. I'm very …

Software Development engineering python tkinter
Member Avatar for marshall31415
0
3K
Member Avatar for tnccjavaMatt

As discussed on this forum, I'm not looking for a quick answer, just an explanation on why what I have written is not working and a point in the right direction that will make this program work. Problem: Purpose of this program is to create a GUI that presents to …

Software Development gui java java-swing
Member Avatar for Jocamps
0
284
Member Avatar for Tvirusx1

Hello I am new to DaniWeb and this is my first Thread. I am currently trying to develop a bot for the Game DarkOrbit. I used WPE Pro and I found out that I could controll the Spaceship by sending specific Packets (I have some Packet codes already). Well heres …

Software Development c c# c++ client-server socket-programming
Member Avatar for Tvirusx1
0
171
Member Avatar for realchamp

Hello! I was wondering if it were possible for me to have a PHP script which would send a line of charactors to my C++ program. The C++ program needs to run all the time to recieve the inputs from PHP. Both the C++ program and my webserver is on …

Software Development c++ php
Member Avatar for realchamp
0
224
Member Avatar for neithan

[CODE] unsigned longitud; cin >> longitud; vector<char> palabra(longitud); for (unsigned i = 0; i < palabra.size(); i++, letra += 1) { palabra[i].push_back ('a') << " "; }[/CODE] The error i get: [CODE]error: request for member `push_back' in `(&palabra)->std::vector<_Tp, _Alloc>::operator[] [with _Tp = char, _Alloc = std::allocator<char>](i)', which is of non-class …

Software Development c++
Member Avatar for neithan
0
143
Member Avatar for FallenPaladin

Hi there, please can some help with this very simple regex. I am coming from c# and trying to get up to speed quickly, so have been trying to create samples for my refrence, however can not get this to work [code] String aString = "0123"; Pattern intPattern = Pattern.compile("^[0-9]{3}"); …

Software Development java regex
Member Avatar for quuba
0
104
Member Avatar for lipun4u

I was trying to implement operator overloading in c-string in the following code [CODE=cpp]#include <cstring> #include <iostream> using namespace std; class string { char *st; int len; public: string():st(NULL), len(0) {} string(const char *s); string(const string & s); ~string(); friend string operator+(const string &s1, const string & s2); friend int …

Software Development c++
Member Avatar for mrnutty
0
136
Member Avatar for DeadJustice

I'm having a small problem. I've created a binary tree that represents an n-ary tree using the left-child and right sibling syntax. I know that preorder on the binary tree gives you the same result as if the tree weren't binary. But, how do you change postorder and levelorder so …

Software Development c++
Member Avatar for DeadJustice
0
184
Member Avatar for miasuhyla

Write a class called Person.java that has instance variables matric number, name, date of birth, and gender. Use appropriate data types for these instance variables. Include constructor and set and get methods for all instance variables. [CODE]public class Q1L6{ class Person { String name; int DOB; int MatricNum; char gender; …

Software Development java
Member Avatar for Qzmo
0
146
Member Avatar for countrygirl1970

Hello everyone, I am having a slight problem in my function "startGame". My code works on Bloodshed and the code does compile. I am trying to refine the part on making sure that only a number gets input and not a letter or any other key gets input. I have …

Software Development c++
Member Avatar for countrygirl1970
0
188
Member Avatar for hla3mi

suppose that each of the four edges of a thin metal plate is maintained at a constant temperature and that we wish to detrmine the steady state temperature at each interior point . to do this we divide the plate to squares the corners of which are called nodes. and …

Software Development c++
Member Avatar for hla3mi
0
141
Member Avatar for EGutierrez91

[code] import java.util.Scanner; public class LazyDays { public static void main (String[] args) { Scanner scan = new Scanner(); int temp; System.out.println ("What is the current temperature?"); temp = scan.nextInt(); if (temp < 20) { if (temp > 95) { System.out.println("Go visit our shops!"); } } if (temp >= 80) …

Software Development java
Member Avatar for Grn Xtrm
0
136
Member Avatar for VernonDozier

I've googled this and it looks to me like what I am trying to do is impossible. I'm trying to write a [ICODE]Display[/ICODE]function that can take different parameters and call the appropriate function based on those parameters (i.e. function overloading). I've read that C doesn't allow this, but I figured …

Software Development c
Member Avatar for VernonDozier
0
111
Member Avatar for slaywee

Develop an Employee Database System. The database of Employee should keep the information of Employees in the file with flowing components, a. Employee ID b. Designation c. Employee Name d. Grad e. Date of Employment f. Basic Pay g. Allowances Include in your project add_new_Employee, add_allowance, make_deduction and show_employee_detail functions

Software Development c++
Member Avatar for Phil++
0
100
Member Avatar for Dlsqueak

I have this example code of a program I am writing at the place I work as a 'time clock' of sorts. I want to come in, run the program and clock in. When I clock in, I want to write this to a csv file so I can send …

Software Development python
Member Avatar for Dlsqueak
0
81
Member Avatar for gmauger

Hi All, I'd like to declare a static array in a header file. Is this possible? I assume there is a fairly simple solution to this, but I have not been able to find documentation on the correct syntax for this. Just to be abundantly clear, I'd like to do …

Software Development c c# c++
Member Avatar for gmauger
0
15K
Member Avatar for aejr

Please help me, The question is: "Write a program to accomadate 10 integers. Print the variables at position 3,5 and 2 respectively." thank you!

Software Development c++
Member Avatar for ShawnCplus
0
90
Member Avatar for horakova

This is actually a CGI issue I am having but Perl seems to be the closest forum here. I am having a very simple (hence very frustrating) problem with a CGI/Perl script. For some reason if I pas things from a checkbox they all get passed fine but the last …

Software Development first-post html-css perl
0
126
Member Avatar for Tussles

As part of an assignment I have been asked to create a SortedLinkedList class. We have been told that we must use the java.util.LinkedList<E> in order to dervie this class. I understand that I must in some way overwrite the .add(Object) method. I realise that I must in some way …

Software Development java linked-list
Member Avatar for ejosiah
0
138
Member Avatar for lipun4u

Look at the following code... [CODE=cpp]#include <iostream> #include <cstring> using namespace std; class string { char *p; int len; public: string(char *); void show() { cout<<p<<endl; } }; string :: string(char *p) { len = strlen(p); this.p = new char[len+1]; strcpy(this.p, p); } int main() { string s1, s2; char …

Software Development apple c++
Member Avatar for lipun4u
0
97
Member Avatar for Phil++

Hey, I'm confused... Are Static references the same as Static variables? Thanks

Software Development c++
Member Avatar for Phil++
0
72

The End.