132,726 Archived Topics
Remove Filter ![]() | |
i need to know the code for insert in middle, and this is what i wrote, i dont get any errors so theres some logic error in it, so please help me by giving me the correct code. [icode] void List::insertATMiddle(const string x) { Node* p = new Node; p->setData(x); … Software Development c++ linked-list | |
Hi All, Me again..;) I have a general question of performing the Statistical operations on a given list of data elements. Like standard deviation , Mean, Median. Are there any dlls or APIS to do that. I have been using dotnetCHARTING.dll in which there are certain inbuilt functions which used … Software Development c# | |
Hi, I'm trying to declare a pointers value inside of a function, and then manipulate that data the pointer points to. This is the test program I compiled and like the original it gives the error "undeclared identifier". At both occurrences of [icode] *somevar [/icode] in the build function. Thank … Software Development c++ | |
hi everyone, I am having issues with an assignment for university. I know that you are not here to do my work for me but I could really use a little help. My assignment involves a parse file that the uni tutors have written for us and we have to … Software Development python | |
struct Fast_Food_Business { string name; Fast_Food_Business* head; Fast_Food_business* tail; }; struct cash_registers{ Fast_Food_Business * regist; cash_registers * r; } struct Customer { int n; Customer * h ; // head Customer *t; // tail Fast_Food_Business*next; }; bool menu (const char& number) { return number== '1' || number== '2'; } bool … Software Development c++ linked-list queue | |
Hi Everyone, retrying c++ after a 10 year hiatus. F/C scientific programmer here :) So I have this really really long data file. It has a header and I want to locate the heading just before the data rows begin. The heading size may change from different sources, but the … Software Development c++ file-stream | |
I just bought an inexpensive used Dell notebook that has Ubuntu/Linux as an operating system. Compared to Vista this is sweet. It came with Python25 installed, but it was easy to use the Add/Remove application feature to get open source software from the Ubuntu site. I downloaded/installed Stani's Python Editor … Software Development gui ide open-source operating-system python ubuntu | |
hello, iam very beginer in c++ and i have home work in matrices i want to know a method to make matrices and collect them by using array & pointer note i want to make a matrix code which make me type any matrices with any number of row or … Software Development c++ | |
Can anyone tell me what are these two ** in front of Adj_matrix? Software Development c++ | |
Hi, I tried to present a 2D mathematic matrix with C++ vector and expand it by repeating the first and last row and column. An example for intuition, I initialized a 2D C++ vector vec_2d to be as following: 1, 2, 3, 4 5, 6, 7, 8 9,10,11,12 13,14,15,16, and … | |
if (iStream.close() I am stuck on how to use iStream to print [code] import java.io.*; import java.util.*; public class BucketSort { public static void main(String[] args) { Scanner sc = new Scanner(System.in); // This is a scanner for the keyboard System.out.print("Enter a filename: "); String fname=sc.nextLine(); // This is the … Software Development java | |
I am printing out the R,G,B values of an image and get results like this: (30, 0, 0) (29, 0, 0) (28, 0, 0) (27, 0, 0) (26, 0, 0) (25, 0, 0) (24, 0, 6) (23, 0, 0) (22, 0, 0) (21, 0, 0) That is just a partial … Software Development python | |
I need to do paint a graphics into a nested panel. I am able to paint in a frame but when I add the class for painting into another JPanel, I see nothing. I know how to create nested panels but when I do it with a panel containing my … Software Development java | |
hello there, i have a network project for the school that i should give it in about a month from now. well basically we want to make a game with a chat window connected to the network without using internet (by lan). i want to make x/o game with a … Software Development visual-basic | |
Hi I'm making a program for a game of Hangman. I have to put a limit to the number of guesses. I have an array to show the current status of the word. So in this array (GuessStatusArray) each cell is either '*', ' ' or a letter guessed correctly … Software Development pascal | |
Hi, I have no1 to no30 product prices. I want to calculate combination for 30 product prices Suppose I have 30 different numbers.. I want to calculate their sum by using combination. But combination should not repleted i.e. E.g for 4 numbers... [ 10 20 30 40] I want to … | |
Dear Sir, Can I add the background colour or music to my following program? Program millionaire;//Student_millionaire; {$APPTYPE CONSOLE} uses SysUtils, OurCrt; Type gameShow_record=record firstname:string[12]; lastname:string[12]; phone: string[12]; End; Var User_Choice:Integer; //this is your first program integrated in the main Procedure Student_Millionaire; //I not tested,you said it work Var gameShow_file:file of … Software Development pascal | |
I'm having an issue on a vast scale with WPF Expanders. I have an expander, which contains a stack panel, which contains labels and comboboxes. However, when I run my application, clicking the expander button does nothing :( I click, the direction of the button changes, but nothing displays. What … Software Development | |
i have a online logging of data through com port. the c program captures the online data every 1 minute, calculates ten minute average, standard deviation and then writes it to a file. the file is created with getdate function. when the day changes, i have to create the new … Software Development c | |
Hello everybody! I have such problem: I'm going to make a little application, which will interact with MSSQL databse, located on remote server. Server is my and I can administrate it remotely. There is MSSQL 2005 there. I created a database there, but can not connect using code from my … Software Development dataset mssql open-source windows-server | |
Hello! I want to add a "press .. " in my program. ( console ) I'm using Linux so I cant use windows.h or conio.h thanx Software Development c++ | |
Hello, I am working on a program, part of which is opening a file. As I expect the program to check if the (text) file contain certain data. That's why it would be useful if program users could enter the file to check. I've tried to do it by combining … Software Development c++ file-system | |
i want to make a quiz game in java so tht the question come randomly and the answer get validated whn the user select the option...plz help me.... Software Development java | |
I am having some trouble with an assignment I have. Is there anyone out there that can help me? I have been struggling with the class all semester and my professor isn't much help. This is the assignment, I already have data file: Instead of storing the diver data in … Software Development java | |
This program is very tricky... First off it's an ATM I coded and every time you as for money back or put money in or ANYTHING it the name and account number gets re-entered. Here's the code: [icode] #include <cstdlib> #include <iostream> #include <iomanip> using namespace std; float opening_bal = … Software Development c++ | |
Hey people... My problem is: - - Heaviest Word Find the the heaviest word in an array. One word is heavier than the other if it has more vocals than the other. Vocal characters are ('a', 'e', 'i', 'o', 'u', 'y') If two words have the same number of vocals, … | |
Hi, I wrote a simple on-file directory lister. It works, but I have to press Ignore in a block damage error messagebox everytime I tun it. Any idea? Thanks in advance. [code] #include <windows.h> #include <iostream> #include <string.h> #include <string> #include <direct.h> #include <stdlib.h> #include <stdio.h> using namespace std; int … Software Development c++ | |
Okay, in my program I have a line of code like this: [code]if(type == rabbit){pointer = begin.sim[sim].field[x][y].rabbits; begin.sim[sim].field[x][y].rabbits = this;}[/code] In order to see what the issue I was having with the actual program, I put in this line of code: [code]printf("\n\n%p & %p\n\n", begin.sim[sim].field[x][y].rabbits, this);[/code] And I found that … Software Development c++ | |
Hi Everyone, I am developing a software that is interfaced with a RFID device. The RFID device manufacturer provides me with a DLL file that contains various functions to communicate with the device. One of the simplest function in the dll file is "CommOpen". This function opens the selected PC … | |
Learning assembly and 'am trying to move from 16-bit to 32-bit. i have this assembly code to display a string in a message box. [CODE];tasm32/tlink32 .386 .model flat extrn MessageBoxA:proc extrn ExitProcess:proc .data head db " 'Heard melodies are sweet,",0 body db " but those unheard Are sweeter;'",0 .code begin: … | |
This is my code fo [code] void CallhistoryWindow::on_button_buffer1() { m_TextView.set_buffer(m_refTextBuffer1); } void CallhistoryWindow::on_button_buffer2() { m_TextView.set_buffer(m_refTextBuffer2); } [/code] if I already call the on_button_buffer1() function the m_TextView is already set the buffer m_refTextBuffer1. But if I already change the m_refTextBuffer1(the textfile) value the m_TextView wont change anymore you may need to … Software Development c++ | |
Hello guys.. I'd like someone to explain to me how to implement some functions in a program the simplest way.. I've an assignment.. and we only practiced the functions twice.. so am not good at it at all... can someone provide simple examples so that i can understand the full … Software Development c++ | |
Hey: After messing around with Python for some time for large numerical calculations, I realized that Python is just too slow. It's great for smaller numbers, not to mention easy. However, once I start getting into numbers above around five hundred digits in size, it slows down drastically. So, I've … Software Development c++ | |
Hi, I am now writing a simple program for testing file I/O and an advanced vector class. Unfortunately I have encountered some confusing problems. My code is as following: [CODE] #include <cmath> #include <string> #include <iostream> #include <sstream> #include <fstream> using namespace std; class mVect { private: // NO PRIVATE … Software Development c++ file-system ios | |
Design a class called BubbleSort that is similar to the class SelectionSort. The class BubbleSort will be used in the same way as the class SelectionSort, but it will use the bubble sort algorithm, which is [CODE=syntax] for(int i = 0; i < a.length-1; i++) if(a[i]>a[i+1]) interchange the values of … | |
I have a problem about memory allocated, I read through my code and think threre is no problem, but it did happens, it very confusing me ...., here is my code: the problem lies in a[] when the Class Grid wants to use it. [code=cplusplus]#include <iostream> using namespace std; typedef … Software Development c++ | |
Hello to all, i have code karatsuba but it is not compute correctly after 6 decimal digits. [CODE] #include <iostream> #include <vector> #include <algorithm> #include <limits> #include <cmath> #include <cctype> // ================================================ using namespace std; typedef unsigned long ulong; void userInput(ulong&, ulong&); int numberLength(ulong); ulong leftSplit(ulong, int); ulong rightSplit(ulong, int); … | |
I'm creating my class for mysql in which i have difficulty dealing with the parameters of which to use with prefix '@param' or '?param' or whatever it is. I need your help guys. I have here my stored procedure [code] DELIMITER $$ DROP PROCEDURE IF EXISTS `davidssalon`.`Customer_SearchName`$$ CREATE DEFINER=`root`@`%` PROCEDURE … Software Development mysql | |
im working on something and i need the user to be able to enter times that things start and end. i need to know how i can store that and then compare them later. they need to be able to enter like 12:45. i was thinking i could somehow ignore … Software Development c++ | |
Hi, I'm new to C# and I have successfully created an application that stores personal data in access database, however I want to include a picture which is in a picturebox, to save it in the table, along with other information I have already saved in essence, I want to … Software Development | |
I am trying to take a a file of fixed size and use seekp to jump to a particular spot in the file, write around 100 bytes or so but only to that part of the file while still keeping the size of the total file the same and not … Software Development c++ file-system ios | |
Hello I am sure this is well within most peoples capability on this site and am a little embarassed posting this but alas here goes. I am using Crystal reports and I have only just remembered I can use VB code in Crystal. I have a report based on 3 … Software Development visual-basic | |
Hello, I need to autocomplete for a textbox. If i type 'a" in textbox means, it must show the dropdown list showing all words starting with a. Like that for all the alphabets. It must show the words based on the user typed words before. Suppose when the user first … Software Development visual-basic | |
well i am working on program which inputs : 1. student record (name , semester , class , branch , roll no ) 2. the various subjects on which the exam to be held 3. the date on which the subject s exam to be held the data which is … Software Development visual-basic | |
say you have [ICODE]struct Node{ int item; Node *next; } int main() { Node *p; p= new Node; p-> item = 100; p-> next = NULL; }[/ICODE] is there a way to make it that, the p-> item becomes whatever the user inputs? Software Development c++ linked-list | |
I have a few minor problems with this program: 1. My selectionSort method - it sorted Z - A, not A - Z. 2. Since I used a string array, I'm running into problems with "operator > cannot be applied" and "incompatible types". 3. Return "search term not found" in … Software Development java java-swing | |
[CODE] #include <iomanip> #include <iostream> #include <fstream> #include <string> using namespace std; int main () { int i,count(0),n; char strg1[50],strg2[2]; char *ptr1(strg1), *ptr2(strg2); cout << "Please input the string" << endl; cin >> strg1; cout << "Please input the character" << endl; cin>> strg2; while ((ptr1=strstr(ptr1,ptr2)) != NULL) { count++; … Software Development c++ | |
this is coming off a program that collects information and saves it after every command. I have opened my file successfully cause thats how it reads the client. the problem is saving the data. Does this code look right to everybody??? I am running in C and very very basic. … Software Development c |
The End.