132,726 Archived Topics
Remove Filter ![]() | |
[B]Here's my problem: [/B] The user needs to enter a char/string for a .dat file with a max of 15 characters. I've tried to use both a char and a string to make sure the user enters 15 or less characters. If I use char, and if the user inputs … Software Development c++ file-system | |
hi, i think i have overwritten ActionListener from my compiler( dont know if it is possible). i accidentally saved a file as ActionListener.java and now anything i try to compile that need ActionListener doesnt work. is there a way i can get it back? i already uninstalled and reinstalled my … Software Development java | |
Greetings, And an advanced "thank you very much" if you can help me :) I just played with the great tutorial from Dave Sinkula [url]http://www.daniweb.com/code/snippet151.html[/url] but I'm having trouble altering it. I want it to read the file, and each one of the lines, and output something like this: [QUOTE] … Software Development c file-system | |
I am interested in learning if it is indeed possible to sort a Python dict. What I have researched tonight points to that it is [B]not[/B] possible, although snippets were posted inferring that you can sort a dict; I tried some of this code and it did not seem to … Software Development python | |
Hallo! New in Java, and asking a very stupid question: Can i change the icon "?" in showInputDialog? `cause in JOptionPane.X i can do it, like JOptionPane.ERROR_MESSAGE, or JOptionPane.WARNING_MESSAGE. :mrgreen: Software Development java | |
Hello everyone This is my problem- I am a C# student and I wrote a program for a address phone book. So when my teacher offered extra credit- I accepted- but the catch is he's not going to help at all. He said we can use any source but him. … Software Development database-design dataset email microsoft-access open-source | |
I would post this in my other thread, but I marked that as solved so I think less people would look at it. I want to say this: [code]if list1 is empty: do this elif list1 has any value in it: do this[/code] How do I word that in python? Software Development first-post python | |
I have this little problem.... I have a dynamic array.... I have to creat a function to give me the max and min values of that array... I can't think of a way to send data to a function without knowing the number variables.... can anyone give me a nudge … Software Development c++ | |
Hi I need help in programming with strings....I started a code, but I'm not sure how to do it....Please help [LIST=1] [*]read in one string which consists of two words Ex. "Computer Science" [*]call a function [B]makewords()[/B] which receives three parameters: a string which holds the original phrase and two … Software Development c++ | |
Is there some sort of wildcard search function in C? Detailed explanation. [code]Phrase: <blah="*" uid="ekdopakek"> So let's just say we've got this 48764546545blah<blah="whatever" uid="ekdopakek">blahblahblah I'm looking for a function that will return the whatever, and just the whatever (nothing else). Thanks![/code] Software Development c++ | |
Hello everyone. I was writing somthing in C++ today and a little "issue" occured to me. How can you avoid the possibility of a buffer overrun when reading from STDIN into a character array? In this simple example [code]#include <iostream> using namespace std; int main () { char *some_text = … Software Development c++ | |
hi, i'm trying to figure out how to mirror a given a value. for example: FF0A, i'd like to make it A0FF. i thought of a code like shifting it left 8x but i find it brute forceish. is there a better way? thanks Software Development assembly | |
hi everyone; i am doing a project for my sis in unversity, and it says that i have to find [B]the first 100 prime numbers and store them in an array.[/B] i managed to find the prime numbers but when i try to store it in an array a bunch … Software Development pascal | |
hi. this is harisha, newbie. how to compare two strings in java.:confused: . String id,t; if (id.compareTo(t) > 2) {....} is this correct.while i compile it shows error. reply me soon.. Software Development java | |
hi guys, I have an assignment that is due on december first and i cant seem to get a wrap around it and was wondering if someone could help. I have been given a Robot module with 17 testboards and some predefined functions such as sensor, move, currentPosition, boardSize and … | |
Hi, I tried to run following script of drawing a sin/cos curve using python 2.4 , there is error: [B][COLOR=red]Traceback (most recent call last): File "", line 6, in ? File "C:\Python24\Lib\lib-tk\Tkinter.py", line 1564, in __init__ baseName = os.path.basename(sys.argv[0]) AttributeError: 'module' object has no attribute 'argv'[/COLOR][/B] [B][COLOR=blue]Can anybody tell me … | |
My task is this, and I'm having trouble finishing up the code: [LIST=1] [*][QUOTE] Write a function named deleteS that accepts one character pointer as a parameter and returns no value. The parameter is a C string. This function must remove all of the upper and lower case 's' letters … Software Development c | |
I am having problems trying to create arrays from text files. The text files created from the program I am working on is like this: Name Test1 Test2 Test3 Avg Grade =================================== Student 999 999 999 999 X The first two lines in this are headings that are added into … Software Development vb.net | |
Hey whoever was good enough to take a look at this thread I have to stress I am a complete noob! I picked up "Java programming for the complete beginner" five days ago and here I am with 50% less hair and stuck on a challenge at the end of … Software Development java | |
Hi, I am running a webapp in Tomcat 5.0 with Axis 1.4 My web app loads on startup. When I make a SOAP call to the webapp (which is a servlet) it takes a new instance of the servlet instead of the original servlet that is already running. The wsdd … Software Development first-post java | |
Hi Could someone please help me do this final yer project please, your help is greatfully apperiated. Here it is: The form should be white and in the centre of the screen. There is a vertical black line down the entire form, dividing it into approximately two halves. All the … Software Development vb.net | |
I have recently began programming in the windows api rather than the command prompt\ms-dos environment. I am still using windows 98 and bloodshed dev-cpp 4.9.9.2. I need to know how to disable the START MENU, TASK BAR, and the little boxes in the top right hand corner of the application … Software Development api c++ windows-api | |
It's the newb again. I have a lousy professor who won't even show us how to get started on importing a file (call it 'independent study'). Can anyone help me? I need to import the following data to produce a bar graph. Here's the data. Can anyone help me to … Software Development c++ | |
Hey guys. Please bare with me since I'm only learning asm for about 48 hours or so.. I've learned enough to open files, read from/write to them... I know how to use the WIN API from within ASM and ..honestly, it's much simpler than C++ (IMHO)... So..I've written this basic … Software Development api assembly file-system windows-api | |
[code]#include<iostream.h> int rek(int i) { double s=0.9; if (i) s+= rek (i/10)+i%10; return int (s+0.5); } int main () { cout << rek (1234); }[/code] We have test. This is one of the question from last year. My question is: From where is solution/result: [B]15[/B]?? I'm beginning, where main () … Software Development c++ | |
Dear ALL, Iam a PHP programmer and I have one year experience in php programming. Now I would like to study PERL and its features. can any PERL prorammer let me know the good tutorial or URL for studying PERL. Really its helpful for me..... Thanks in advance.... Software Development perl | |
I've did a program using vb6 to connect to oracle9i, i can establish the connection, the problem is when i execute the query in oracle sql*plus, it can execute successfully, but when run in vb application, the records affected return 0, it do nothing for this query, any setting need … Software Development email open-source oracle sql visual-basic | |
Can someone point me to one, because our high-school library is way too old. And it wont work with Dev-C++(we using in it in CS class). Thank you. [code=c]/* Lawrenceville Press Random Library */ /* October 1997 */ /* The following code works correctly under BOTH */ /* Borland and … | |
Please any one know :- ------------------------ 1- How to change the size font in c++? 2- How to get one char without press "Enter" ? Software Development c++ | |
When coding in Tkinter, you can make a button, then when the button is pressed, it refers to something that you defined, or whatever its called when you use the def statement. What I'm wondering, is if there is a way to do this in non Tkinter programing. I am … | |
Hey everyone new to the board and in a bit of bother. I've got this assignment thats been plaging me for two weeks but i can't do this one bit as i just don't get it. I've got to write a programme that takes data in from a file and … Software Development c | |
I am new in VB.NET/ASP.NET, I want a user to logon to the aspx page using access level, If Access level is Administrator or User Or Manager different links or page be display or if Access level is User all the link relevent to admin should be disabled visa vesa. … | |
For a program I'm making the user needs to enter a string and then it will be checked to see if it is a palindrome. So far I've managed to reverse the ordering of the string entered so that I have the original string and the reverse version of it. … Software Development assembly | |
hye guys Hi plz help me i need to run following java commands but in console [B][COLOR=blue]CLEAR CPU // printall CPU Registers ( GENERAL purpose Registers , Speical Purpose Registers, Program Counter & flag) [/COLOR][/B] [B][COLOR=blue]KILL // Kill process Id [/COLOR][/B] [B][COLOR=blue]Load // Load a process and suspend it untill … Software Development java operating-system | |
Does anyone know what is the best function to use if you want to read user input and not have the return key carry over? Everytime I write something that reads in two things, the second read in always ends up being '\n' because the return key carries over to … Software Development c | |
Hello: I am trying to use the Python Sleep Function via [I]import time;[/I] I get results but not the results I am looking for. What I am trying to do is rather simple and only for visual effect in a Python GUI: [B]Display GIF --> Sleep (pause) 5-seconds --> Display … | |
Hello , i have in a director c:\files_t several files t1 t2 t3...t300 i need to analize each on-the analize operation is not importent how can i [B][U]open each file in a loop[/U][/B] and analize them?-in [U][B]C[/B][/U]code thanks ahead Software Development c | |
Last night I took the advice of a DaniWeb member and looked at some posted Python code; this code was based around a card-type game and involved creating a GIF deck, shuffling, then displaying it. My original question had to do with using a Python dict for my GIF images. … Software Development file-system open-source python tkinter | |
plz reply soon ! Software Development c++ | |
I need help in writing a fuction call delete_repeats that has a partially filled array of chararcters as a formal parameter and that delets all repeted letters from the array. It should also have two formal parameters: an array parameter and a formal parameter of type int that gives the … Software Development c++ | |
I wrote code for an assignment that will output 4 triangles, 1 next to the other. It uses the While and nested For loops. The problem is the output is ok for the 1st and 4th triangle but the 2nd and 3rd need to be mirror images of what the … Software Development java | |
First of I am not engllish speaker so if something its off forgive me please. Now on the topic, I have not touch VB in 4 or years and now changing from VB6 to VB 2005 Now I used to work with dataset on VB6 but the teacher is really.... … Software Development dataset open-source vb.net | |
Hi, I am new to shell scripting.So someone please do help me out.I have stored two dates in the given format below. cur_time=`date '+ %b%e%T'` time=`ls -lu f1 | cut -d "" -f6` I hope both these will show the dates in this format. for eg. Dec 23 10:10 Now … Software Development shell-scripting | |
when I selected my *.mdb files, it shows"unrecognized database format", I use VB6.0 and ACCESS2003/2007, who can tell me why? thank you ! Software Development visual-basic | |
How do I read data such as song titles from a file and store them in an array? I have: [code] const int SIZE = 50; int main() { char theFile[SIZE]; cout << "Please enter a file name: " << endl; cin.getline(theFile, SIZE); ifstream theFile(" "); ... [/code] Software Development c++ | |
Hi, you guys helped me on a program about a month ago and it really helped me get through the program. Therefore I really appreciate what you all do and thank you for the help last time I am having trouble finishing this program on classes the assignment is this: … Software Development c++ | |
Is there a method that VB uses to get the drive letter of the directory where the program files reside witout specifying it explicitly? :rolleyes: Software Development visual-basic | |
I have a code, and this is another problem, that's not working; Given: an int variable k , an int array currentMembers that has been declared and initialized, an int variable nMembers that contains the number of elements in the array, an int variable memberID that has been initialized, and … Software Development c | |
I've read my book, and there's some topics where I feel weak about: - inline functions - static members - this pointer - copy constructor I've read some tutorials online, but they use some complicated code, and I'm a beginner programmer, so I can't understand their explanations. Just wondering, if … Software Development c++ |
The End.