132,726 Archived Topics
Remove Filter ![]() | |
Hi to all, I have just started programing with C++ but I am having some problems with linked lists I have this easy homework that I cant compile correctly. [B]We have this structure:[/B] [CODE]struct rekord { char key[10]; int nr; rekord next; };[/CODE] [B]Write a program that reads the elements … Software Development c++ linked-list | |
I am trying to learn some oop in java. What I am trying to do is building a binary tree to convert an ekspresion in reverse police notation to infix notation. The problem is that I have three classes, one abstract called [b]ArithmeticNode[/b] which represents a general node, a class … | |
Hi From using java and BlueJ i have found it quite easy to make your own api using inbuilt things in BlueJ. So i was wondering if there was anything in python that would take a python program and find all of the definitions and make an API from that, … | |
Hello all, I've written a piece of code that lets me generate or read a grid where all cells have a value. The grid stands for a simple 2d visualisation of an area where types of housing are to be build. The values of a cell stand for some different … | |
Hi (first post :) ), I have a coursework where we have to read in 50 lines from a file (bubble.txt), sort them into length order and then print them out (its not the whole coursework, just a part). I thought that the only way of holding lines of text … Software Development c | |
hey again i've fixed my code a little and need a little help. I've got the flush and one pair determinations to work but the three of a kind, straight, straight flush and royal straight flush are giving me a little trouble. If anyone has any suggestions, i would really … Software Development java | |
I am kinda new in C# so i just create a simple aplication using a database.......you know insert Update..delete.......but what other thing can I try ??? any idea........please remenber I am a rookie >_< Software Development | |
hi, i am doing a project using C#. in my project, i stroed the database information into the dataset. i do't know how to collect the data from dataset using query. i know collect data from dataset using datarow method, but task is collect data from dataset by using query. … Software Development dataset | |
Hi there, I know I should not be doing this. But I really some readymade java codes on currency converter working on eclipse program. It is a part of my assignment. But my java really cannot make it, so is there any kind soul to help me? Please. Anyway, I … Software Development java | |
hi, i want to display one table in a access database using datagrid. i tried to do like this. [COLOR="Red"]con.open constring set rs=con.execute("command to select the table") set datagrid.DataSource=rs[/COLOR] but it shows an runtime error like this: [B]RunTime Error '7004' The rowset in not bookmarkable[/B] wats' the reason... pls post … Software Development display visual-basic | |
Hello, I have a text-based program (non-GUI) that would run solely inside the workspace terminal. Within this program there are hundreds of "print statements" showing really long texts. e.g. print "This is a really really really really really really really really really really really really really really really really really … | |
Is there any way to shift the position of underline downward? e-g in [U]This is game[/U] underline passes through g. I want to move it a bit below so that it does not cut through words Software Development visual-basic | |
My C++ is basic but improving and I am trying to use a C++-based development kit (SDK) for some image processing software. The documentation and support for the SDK is limited. The SDK provides a linked list class and I am keen to utilise this. The class allows me to … Software Development c++ linked-list | |
Dear fiends, Am Posting a Lot Nowadays.. Sorry if i had Disturbed you all...Hera my XML file..i Have to append a node below this..can some give me any idea how to do it..When i try..it is over writing the file i need to append <TaskName> <name>abc</name> <Value>3454</Value> </TaskName> following to … | |
hi . i have read a line from a text file & stored it in a string using fgets(). the file contains the following line: C:\Windows\ [CODE]char myline[20]; fgets(myline,20,fp);[/CODE] now i want to append '' in the string so that when i print [B]myline [/B]output is C:\\Windows\\ Any idea or … Software Development c | |
Could some please explain why this code is outputting 1 when it should be 1.5; [code=C++] #include <iostream> using namespace std; int main() { double a = 3/2; cout << a; } [/code] thanks Software Development c++ | |
Greetings: My name is David and I am a beginner in c++ and I am looking to join a Project Team of c++ programmers of various skill levels to increase my knowledge in c++. I would like to know if anyone knows where I can go to join such a … Software Development c++ | |
We can convert any kind of numbers to binary string. For example 20501487 can be converted into binary String format as 1001110001101001111101111. However I cannot reconvert this binary String into any number format, even long or float numbers due to NumberFormatException, where the numbers are very big to convert. I … Software Development java | |
Hello. This is my first problem post on Daniweb so feel free to overload me with info even outside the scope of this overloading problem. I have a class Point where I have overloaded the + operator and I'm trying to overload "operator=" so that I can right something like: … Software Development c++ | |
Hi, What I'm attempting to do is send data from one class, to another and then store it in that second class as an array. E.g. file class1.cpp [CODE=c++]class1{ Class2 c; c.methodAdd(Variable1, id); cout << c.methodGet(2); }[/CODE] file class2.h [CODE=c++]class2{ typedef string StringArrayPtr; StringArrayPtr *array = new StringArrayPtr[3]; //create the … | |
Hi, its me again, How would I go about reading in the same file twice?? What I need to do is read it in the first time, and count how many lines there are between two words (in the middle of the file somewhere - see example below), create and … | |
Hello again. Once again another problem... Well i made a very good string class, only problem is, i don't know how to use an operator= for assignment. I have operator='s programed in but i don't know how to make it an assignment operator. for instance: [code] String str1 = "Hello"; … Software Development c++ | |
please can anyone help me in writing code for the below question in c++ as am weak in c++ a. Write and test a function for the vertex-insertion algorithm (insert a new vertex, given a specification of all vertices adjacent to it) | |
Hello, This is the problem: I get the right function call only from the 3rd derivated class, when the other twos are called are not. Source : [code] #include<iostream.h> #include<conio.h> #include<string.h> class IV{ char *loc; public: IV(){loc=NULL;} IV(char *_loc){ loc=new char [strlen(_loc)+1]; strcpy(loc,_loc); } ~IV(){ if(loc) delete [] loc; loc=NULL; … Software Development c++ | |
Visual Basic 2005 Express Edition: This works, but, I need to get the .wav file from Resources: My.Computer.Audio.Play("C:\Documents and Settings\Owner\My Documents\Visual Studio 2005\Projects\OrthoLabRx\OrthoLabRx\Resources\PodVwBy.wav") I placed the .wav file in Resources, but, I can't seem to access it from there. This does not work: My.Computer.Audio.Play(My.Resources.PodVwBy) It says "value of type 'System.IO.UnmangedMemoryStream' … Software Development audio vb.net visual-basic visual-studio | |
Using Dev-cpp, a small program compiles but the resultant .exe file does not run. From the DOS command, it runs. When I try from the windows run command , it flashes but immediately goes away. Software Development c++ | |
hello how r u doing .. i have been looking on the internet but i cant find much info .. does anyone know where i can find information about making a database in java? (i expect it is has information about arrays, arraylist, iterators and inheritance) ... i want to … Software Development java | |
I have a problem about updating access database. there are 3 columns in my database : ID, searchkeyword, count in the form there are button n textbox if user enter a new search keyword, the database updated all if the keyword already exist, just update count column +1 this is … Software Development | |
i have just one question: can a function return array? Software Development c++ | |
public class Date { private int _day; private int _month; private int _year; boolean checkDate=true; public Date(int day,int month,int year) { if ((day>31)||(day<1)) { System.out.println("You entered a wrong day"); checkDate=false;} else if ((month>12)||(month<1)) { system.out.println("You entered a wrong month"); checkDate=false;} if (checkDate=true) { _day=day; _month=month; _year=year; } } public Date() … Software Development java | |
Hi, does anyone know where to find perl module Parse::RecDescent [email]cvv3@yahoo.com[/email] thx Software Development perl | |
I've been writing a script that will check google for pages that meet certain criteria at my web site. For example, excel spreadsheets that contain data that should not be on the web. So far, so good. When we find something and take it down, it can take a while … Software Development python | |
Hi, Can I check a two-dimensional array like this ? The content of the arrays are of type [I]char[/I] [code=c++] matrix[0][0] == matrix[1][1] == matrix[2][2] [/code] Software Development c++ | |
I'm almost finished my lottery program but having trouble with the validation. In the program the user enters their own numbers, these numbers are then stored in the array user. I want the program to validate these numbers to ensure each number is between 0 and 49. I have tried … Software Development pascal user-interface | |
Hey, I am creating a project that writes to a file. The problem is that I don't want it to write to a file on my computer but to a file on my server. I am using this [CODE]ofstream myfile ("www.myurl.com/test.txt");[/CODE] What I want to do is open that file … Software Development c++ file-system | |
Ok, I am writing a program to find the root of f(x)= x - cos(x) using Newton-Raphson method. I implemented a loop and have calculated the root with no problems. However I want to break the loop when the difference between iterations = 10^-8. how exactly can I do this. … Software Development python | |
[B]helllllllo friends please can u help me???? i have project about creating currency converter using jGRASP i made the enterface using jframebuilder but i dont know how to complete it...i really need ur help friends :'( [/B] Software Development java | |
I'm new to datasets, and trying to update a SQL Server database with one. I'm having trouble understanding how to correctly write the dataset info to the server db and preserve the relationship keys. When I write to the main table in the server database, it will assign the new … | |
I know there is [i]a lot[/i] of threads about books but i didn't find what i was looking for:) so here goes. how is the book ^^ made? does it explain the commands? becaus im a bit fed up with tutorials that just say "write this and write that" when … Software Development c++ | |
my view about this topic inheritance mean everything from parent class comes down in child class that is instance data,method,final data except thing declared private while in case of interface only final data and signature comes down from parent to child class that is instance data,method, doesnt comes down by … Software Development java | |
Hi all, I have a file which have ip's of three servers say servers.txt. I am opening the file for every request. Instead I want to load the file for the first request and from the next time onwards. I have to avoid file I/O. How can I achieve this … Software Development file-system python | |
Hi, I am wanting to get some data from an Excel spreadsheet. My problem is the data in the cell has been formatted. i.e. This is [B]sample[/B] text. I want to be able to know which bits are made bold and create a string similar to: This is <b>sample<\b> text. … Software Development visual-basic | |
calling C/C++ function from perl from : [email]cvv3@yahoo.com[/email] Hi, how do I call a compiled C/C++ function from perl ? Let say I have a C/C++ function: [code] *char func(char *ptr, int len) { ... return str;} [/code] Now i wonna call it from perl | |
Hi, Is there an easy way to loop through an array of controls (user specified, not every control on the form) and disable them? At the moment I'm just disable/enabling them one by one e.g. ctrl1.enabled := false; ctrl2.enabled := false; .... ctrl22.enabled := false; etc. Is there a way … | |
Dynamic reports means depending on the inputs the reports will be generated. For example if we want to show the details of particular day means the particular date is the input and show that days reports. If you know the answer means please give me the solution. Software Development visual-basic | |
before anything else, i have a question. How can you have a multiple stack in one vector using node/linked list? i don't get the concept of linked list yet. Anyways, this is my problem: [B]Create a Java class definition of a multiple-stack in one dimensional vector. Implement the basic operations … Software Development java java-swing linked-list | |
hi I have two forms, form 1 has list1 and form 2 has list 2. I need to use one context menu (cmenu)which is work in form 1 and it must be in work form 2 too the same context menu.. but there is a problem with Print Preview which … Software Development vb.net | |
hi all.... this is another thread on datareports... i need to know how to work if i have an sql and i wish to give it in my front end and run the report from the front end... please help!! thanking in advance!! Software Development sql visual-basic | |
Hello All, i have an aplication to make that converts a rtf text into html and then the html code must be shown into a web browser. What can't I do is to convert the HTML Code into a html website. To make myself more clear, what i want from … Software Development vb.net web-browser | |
Good Morning I am using vb.net & access ,I have a office.mdb file ,now i want that when i click on a button that automatically must have that .mdb file & than must display a savedialogbox & where user give the location for saving that .mdb file that must be … Software Development vb.net |
The End.