43,549 Solved Topics
Remove Filter ![]() | |
[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++ | |
hello guyz, do you know best sites to recommend about "JOPtionPane"?? i need to have more tutorials with this due to our next project..i hope you could help me guyz...thank you ahead.. Software Development java | |
I want to create a class for I/O operations. This class take filename as parameter and then provides functions to write and read from file. I had to include two different fstream objects,one for input and one for output ,so I designed such an implementation.If you can see a better … Software Development c++ | |
Hi I have fiddled around with other GUI's such as pygame and wxPython but i wanted to use something a little more powerful when it came to 3D objects and i saw what PyOpenGl can do. But i spent ages looking for any help but i couldn't find any place … | |
When I run this I get an error saying that the sql syntax is wrong. [U]Field types are:[/U] [B]Time:[/B] Text [B]Date:[/B] Text [B]SalespersonID:[/B] Integer [code=vb.net] Dim sqlWrite As String = "INSERT INTO Audit (Time, Date, SalespersonID) VALUES('" & CType(lblTime.Text, String) & "','" & CType(lblDate.Text, String) & "','" & SalespersonID & … Software Development vb.net | |
I've made a program that generates a Character's details(Game details, like level, name, HP, etc, based on a few parameters). I've added another .cpp file to it [without a main() function], but when I try to compile the whole project in Dev-Cpp, it just shows an error. My code is: … | |
I have got stuck with a very basic prb in Linked lists, i m familiar with array, as in array to compare two elements of the array u can simply use their position in the array since they are all positioned in a consecutive manner in memory like: if(arr[2]<arr[3]) //do … Software Development c++ linked-list | |
I have an application that will run fine for about 15 minutes then will just randomly stop and give me a 'Run time error 5' message. this is very annoying because this program is supposed to run for extended pieriods of time. Software Development visual-basic | |
Helloi I want to do a program.This program will about that.I want to download a file from ftp mirrors.But ı want to select best(fastest) ftp mirror.How can i do that.I want to give mirror list via a file to program.And this program have to ask that mirror with mirror bandwith.and … Software Development | |
hey there, i'm new at delphi, at my first prog actually. Been doing c/c++ for a while. The prog is supposed to be simple game, and i need a level counter. I've strayed a bit from the tutorial i'm using and now when i run it the number in the … | |
Hello, I am trying to get my cost, salestax, totalamount to come out in the output dialogbox to have only two decimals places. I know how to do on the printf but not on the dialogbox. Please help. Here in my complete code. [code] // Displaying multiple strings import javax.swing.*; … Software Development java java-swing | |
Hi, I've just started a course in C++ about 3 weeks ago. Unfortunately, I'm pretty lost at the moment with this problem and my teacher said I'm on my own now. (I'm guessing he doesn't want to answer my questions anymore because I ask too many, but I really don't … | |
I am using StreamReader to read a File. With the code below I am able to read a whole line. What I wonder is how it is possible to read a comma delimited file like these lines. How will I put the delimiter ',' and also assign the values to … Software Development c++ | |
I created this function and I need help turning this into a recursive function [code=c] #include "stdafx.h" #include "stdio.h" int fact (int n); // function prototype// int main (void) { int n,result; printf("please enter a positive integer"); scanf("%d", &n); result = fact(n); printf("The answer is %d\n", result); return 0; } … | |
Hi I'm currently using data binding, combo boxes, grids... I need to filter the data in a DataGridview depending on a value selected in a combo box. The combo is bound to a table, displaying data from a particular column, while the datagrid needs to "query" a second table "...WHERE … Software Development vb.net | |
hello friends i start learning c++ and still at basics and was trying to solve a exercise in second chapter. this exercise asked to print a square using asterisks. i am able to create a asterisks solid square and colde is as follows. [CODE]# include<iostream> using namespace std; int main() … Software Development c++ | |
i have two classes one is MyForm and the other one is MySwingWorker, i get a null exception which is related to line 36, i'm not sure what i have to pass to MySwingWorker class. please help!!!! [CODE=java]public class MyForm extends JFrame { public static void main(String[] args) { new … Software Development java java-swing | |
I am writing a program that uses two arrays, one holds int and one holds String. I am using an interface and building a class that implements it. The method in the interface uses a method written like [code] public void add(E element) throws OverFlowException; [/code] This method is to … Software Development java | |
K so I am learning how to program in python and had a question about Jargon. Simply What is it? Software Development python | |
Okay, sorry, I just posted a different thread here a couple days ago, I know. But I have another question and I've googled it and can't find the answer. let's say I have a list num=[1,2,3,4,5,6] and I want to add all of the items together for one big number. … Software Development python | |
The program I am working on deals with nested linked lists. I have a Olympics class that uses a linked list for events. Events have their own class with a linked list of contestants of a contestant class for each event. I don't understand why I'm getting these compile errors: … Software Development c++ linked-list | |
Hi My problem today is i have opened up the wxPython Demo and copied one of the pieces of code across to IDLE so i can have a fiddle with it. My problem is that at the start it goes [icode]from Main import opj[/icode]. Thats what stuffs it up. The … Software Development python | |
Hello, I am trying to do a recursive function using fiboncci. I have been working on this and it is not working. #include "stdafx.h" #include "stdio.h" int fib (int n); // function prototype// int main (void) { int num, result; printf ("Please enter a positive integer\n"); scanf ("%d", &num); result= … Software Development c | |
Anyway, sometime back, I wrote a little and simple GUI application (using wPython) which I call the Jumbled Words game. This was my first step into wxPython. Not a serious project at all, but hey, a nice project for a Python newbie like me at that time. :) You can … | |
I've been experimenting around with the [ICODE]const[/ICODE] modifier, trying to make sure I understand it and clearly I do not. I wrote this program. Note line 28, where I am changing the value of the parameter passed to a copy constructor, and the word [ICODE]const[/ICODE] on line 40: [code=cplusplus] #include … Software Development c++ | |
Hey guys, I have a couple of quick questions, Iv searched the forums and the internet and found a not very much on removing an array element. If you could guide me to a website or a book with information on char arrays it would be helpful. My second question … Software Development c++ | |
> Write a method that converts its String parameter so that letters are written in > blocks five letters long. For example, consider the following two versions of the > same sentence: > > Plain: This is how we would ordinarily write a sentence. > Blocked : Thisi showw ewoul … Software Development java | |
I compiled a very basic C# program (not pointers or memory related) inside my c drive using the command prompt. I just wish to know if this is a bad move? Is it better to save all programs to the desktop and run them through the command prompt from there? … Software Development c# | |
Hey guys I finally got my word unscrambler working the other day, now I fire it up with same code same everything and for some reason getting double output from a list that shouldn't be. So if someone could either look this over and find a problem or maybe do … Software Development python | |
I have a recursive method that traverses a linked list for a first name or last name then deletes the node from the list. This is what I have: [CODE=cplusplus] void game::DeleteR(string first_name, string last_name, ListNode* &node) //throw (ContestantException) { /* See if we are at end of list. */ … Software Development c++ linked-list | |
i have a prb here, i have been asked to make a procedure which recieve an array of integers,its lenght, and two integers X and Y as parameters. now the procedure needs to find X in the array and put Y ahead of it ( Y is not in the … Software Development c++ | |
i would like to know what digits of ipaddress define. suppose ipaddress of 192.168.0.59 what these numbers 192 ,168 , 0 ,59 defines. does they have any value?? Software Development java | |
hello evryone, im new in C++ programing. currently i working on my final year project. at the first place, im study in INFO COMM. ,more specific in network management area but since my project is assigned by my lecturer and the project itself involved some programming skill, i gt to … Software Development c c# c++ open-source socket-programming storage xml | |
Okay, so I've been working on a program that converts ascii values to text. The way that I have the code is functional, yet not convenient. Let me post the code and then explain.- [ICODE]letters=[' enter ','',' ',0,1,2,3,4,5,6,7,8,9,'A','B','C','D','E','F','G','H','I','J','K','L','M','N',\ 'O','P','Q','R','S','T','U','V','W','X','Y','Z','a','b','c','d','e',\ 'f','g','h','i','j','k','l','m','n','o','p','q',\ 'r','s','t','u','v','w','x','y','z'] numbers=[10,13,32,48,49,50,51,52,53,54,55,56,57,65,66,67,\ 68,69,70,71,72,73,74,75,76,77,78,79,80,81,\ 82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,\ 106,107,108,109,110,111,112,113,114,115,116,\ 117,118,119,120,121,122] # Ascii values in … Software Development python | |
ok, when i try and compile my unfinished program at the bottom: it gives me these two errors c:\documents and settings\owner\desktop\programming stuff\programming practice (pascal)\unitconverter.pas:6: warning: missing string capacity - assuming 255 c:\documents and settings\owner\desktop\programming stuff\programming practice (pascal)\unitconverter.pas:7: parse error before `In' and i'm new to programming so i dont know … Software Development pascal | |
The declaration of the type is: [code]type TMediaLibrary = record Title:string[30]; TrackNo:integer; Artist:string[30]; Album:string[30]; Year:string[4]; Genre:string[30]; Comment:String[30]; Directory:string; end; var SongInfo: TMediaLibrary;[/code] and the file implementation of it is here: [code]procedure TForm1.Button1Click(Sender: TObject); var SongFile:string; MediaLibrary: file of TMediaLibrary; <<<Error is here begin . . . . AssignFile(MediaLibrary, 'C:\Program Files\toMedia … Software Development file-system pascal | |
What is wrong with this code? All I want to do is display photos for a slide show, with about 5 seconds pause between photos. It will only show the last photo. The photo directory and file names are contained in the ComboBox. (I thought I posted this wrong, so … Software Development vb.net | |
I'm trying to get character "2936" printed out ( it is the arrow on your big Enter of the keyboard) as seen in Unicode charts [URL="http://unicode.org/charts/PDF/U2900.pdf"]Supplemental Arrows B[/URL]. However it does show as question mark. Suggestions? [code=Java] public class PrintCharacters { public static void main(String[] args) { String[] one = … | |
Is it posibble to have a count-down timer while I'm doing something else in the console? it's a simple game wherein a specified time is allowed for the player..if possible, how? I created a timer but it waits until it finishes before proceding to the game..tnx in advance Software Development c++ | |
Ok, I'm working on this code where I read in two lines from a text document, then store them in an array, write a binary code for each to indicate what words are in what array, and then compare the two arrays in a variety of ways. I got most … Software Development c++ | |
First off here is my code: [CODE=csharp] using System; using System.Collections.Generic; using System.Text; namespace example_1 { class Program { static void Main(string[] args) { decimal d = 24; string input; Console.WriteLine("Enter A number"); input = Console.ReadLine(); decimal total = Convert.ToDecimal(input), result = (d * total); Console.WriteLine(result); Console.WriteLine(); Console.WriteLine(); Console.WriteLine("Would you … Software Development | |
what is module and class module. I want to learn about it . anybody help me clearly. Software Development visual-basic | |
Hey, I'm having trouble with this piece of code. Basically, it's meant to look at a map file (which basically is a bunch of URLs paired to an ID) and then go through another file and replace each URL with it's corresponding ID. The code seems to work fine, but … Software Development app-store c++ file-stream ios | |
i am trying to mod my input but i got an error : invalid operands of types 'double' and 'int' to binary 'operator%' i would also like to noe top/60 how do i not show the remainder. i am using dev c++ this is my code : [CODE]int main() { … Software Development c++ | |
I am writing a simple application in VB.NET to view JPG files. I have a slide show option, and can only get my PictureBox1 to display the last photo. ComboBox1 contains the directory and file information for each file. Here is my code. Thanks for your help! Private Sub cmdSlideShow_Click(ByVal … | |
Hi, In a function of my program, I open and close the file once every recursion...and the recursion is very large....I've made sure im not writing when its closed or not opening when its open or any of those trivial issues.Will this be a problem with the operating system?...because I'm … Software Development c++ operating-system | |
Hi I have this code and a problem that i don't understand. In [I]image_matrix[/I], a PixelArray object where there is a image. I want to separate this image in frames then I capture pixel by pixel in a double [I]for[/I] with the dimensions of frame. The variable [I]h[/I] represents each … Software Development python | |
I need it in descending order and also the ability to use decimals I tried to put double in everything but it wouldn't work it says that the array doesn't match with int. Help PLEASE!!! [code] #include <iostream.h> void selectionSort(int *array,int length)//selection sort function { int i,j,min,minat; for(i=0;i<(length-1);i++) { minat=i; … Software Development c++ | |
Hi ... [ Need ur suggestion NOT code .... ] This is one part of my assignment .. I need your help on how to do this . Below is my short description of my problem ... I have two classes Named Passenger class and container class . Passenger class … Software Development java | |
help. I do everything in C++ with STL but I have to utilitize legacy C functions within my member functions (methods). The legacy C function signature is... extern int UF_DRF_create_label( int num_lines_text, [B]char text_string[ ][132+1][/B] , double origin_3d[3], UF_DRF_leader_attach_type_t leader_attach_type, UF_DRF_object_p_t object, double model_pos_3d[ 3 ], tag_t * label_tag); My … |
The End.