132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for localp

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
Member Avatar for Narue
0
83
Member Avatar for gooddevilgod

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#
Member Avatar for ddanbe
0
134
Member Avatar for shaynerossum

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++
Member Avatar for shaynerossum
0
129
Member Avatar for clareypants

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
Member Avatar for jlm699
0
75
Member Avatar for BlackStar

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
Member Avatar for tux4life
0
124
Member Avatar for drdaco

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
Member Avatar for drdaco
0
117
Member Avatar for sneekula

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 …

Member Avatar for MaxVK
0
332
Member Avatar for MicrosoftMahmou

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++
Member Avatar for tux4life
0
98
Member Avatar for pikkas

Can anyone tell me what are these two ** in front of Adj_matrix?

Software Development c++
Member Avatar for pikkas
0
132
Member Avatar for nanchuangyeyu

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 …

Software Development c++ display
Member Avatar for Narue
0
196
Member Avatar for jade387

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
Member Avatar for BestJewSinceJC
0
104
Member Avatar for kiddo39

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
Member Avatar for kiddo39
0
116
Member Avatar for number87

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
Member Avatar for VernonDozier
0
270
Member Avatar for arasten

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
Member Avatar for arasten
0
106
Member Avatar for harish92

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
Member Avatar for FlamingClaw
0
146
Member Avatar for rush1

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 …

Software Development algorithm c++
Member Avatar for rush1
0
105
Member Avatar for turbomen

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
Member Avatar for FlamingClaw
0
188
Member Avatar for swinefish

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
Member Avatar for swinefish
0
147
Member Avatar for cskumar

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
Member Avatar for Ancient Dragon
0
90
Member Avatar for tahir90

hi,i am new to this site where i can chat with people on this site? is there some one who know a good programmer? i want to know how to make a program to bubble sort 2d array by using for loops and without using setw in c++. plz reply …

Software Development c++
Member Avatar for ithelp
0
165
Member Avatar for khisrav

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
Member Avatar for khisrav
0
102
Member Avatar for funfullson13

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++
Member Avatar for funfullson13
0
112
Member Avatar for jrynik

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
Member Avatar for jrynik
0
147
Member Avatar for cullguy

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
Member Avatar for peter_budo
0
169
Member Avatar for claramusic95

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
Member Avatar for peter_budo
0
225
Member Avatar for SCoder1

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++
Member Avatar for SCoder1
0
76
Member Avatar for Krstevski

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, …

Software Development assembly java
Member Avatar for verruckt24
0
322
Member Avatar for ulisse0

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++
Member Avatar for tux4life
0
163
Member Avatar for Falkoner1

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++
Member Avatar for Falkoner1
0
4K
Member Avatar for Nommy

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 …

Software Development pdf vb.net
Member Avatar for Teme64
0
321
Member Avatar for eniwe

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: …

Software Development api assembly
Member Avatar for eniwe
0
138
Member Avatar for valtikz

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++
Member Avatar for valtikz
0
120
Member Avatar for fadia

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++
Member Avatar for fadia
0
164
Member Avatar for henryxxll

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++
Member Avatar for Peter_APIIT
0
223
Member Avatar for nanchuangyeyu

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
Member Avatar for nanchuangyeyu
0
130
Member Avatar for javaman2

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 …

Software Development algorithm java
Member Avatar for blumen
0
369
Member Avatar for newcpp

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++
Member Avatar for Ancient Dragon
0
369
Member Avatar for Peter_APIIT

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); …

Software Development algorithm c++
Member Avatar for Peter_APIIT
0
461
Member Avatar for jessaherrero

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
Member Avatar for Ramy Mahrous
0
166
Member Avatar for yamahammer342

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++
Member Avatar for Karkaroff
0
96
Member Avatar for Egypt Pharaoh

I don't understand the indexers Can any one explain it to me

Software Development
Member Avatar for kvprajapati
0
133
Member Avatar for mosesmasuku

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
Member Avatar for kvprajapati
0
262
Member Avatar for cam875

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
Member Avatar for cam875
0
87
Member Avatar for luko

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
Member Avatar for luko
0
83
Member Avatar for bharanidharanit

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
Member Avatar for vb5prgrmr
0
118
Member Avatar for rahul8590

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
Member Avatar for rm_daniweb
0
104
Member Avatar for BlackStar

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
Member Avatar for BlackStar
0
334
Member Avatar for trace63b

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
Member Avatar for trace63b
0
190
Member Avatar for peste19

[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++
Member Avatar for NathanOliver
0
1K
Member Avatar for smitem03

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
Member Avatar for jephthah
0
92

The End.