132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for yeliabsamoht

Hello New here I am looking for some information on Splay Trees. I can't find any c++ source code on splay trees. any idea on where to look

Software Development c++
Member Avatar for cedricve
0
180
Member Avatar for marcel.gybels

Improper use of typedef 'TManagerProc' struct TManagerData { public: // Card is inserted callback procedure TManagerProc CardInserted; // Card was activated callback procedure TManagerProc CardActive; // Card was removed from the reader callback procedure TManagerProc CardRemoved; // Invalid card was inserted into the reader callback procedure TManagerProc CardInvalid; // There …

Software Development c++
Member Avatar for marcel.gybels
0
664
Member Avatar for chandnigandhi

please suggest me turbo c version for windows 7,32 bit which supports full screen mode and also supports graphics functionality....as soon as possible....

Software Development c
Member Avatar for Ancient Dragon
0
101
Member Avatar for HBovenkamp

Good day, I keep running into a very persistent "Could not fine installable ISAM" error when trying to connect to an Excel sheet (office 2010) by opening an OledbConnection Here's my connection string: Dim strCon As String strCon = "Provider=Microsoft.ACE.OLEDB.12.0;ACE OLEDB:Database Password=" & strEnter & ";Data Source= " & strExcel …

Software Development microsoft-office vb.net
Member Avatar for HBovenkamp
0
2K
Member Avatar for ja3n

Hi, I am trying to solve a maze using queues(no recursion) What I've done so far is that I can figure out whether or not the maze can be solved. What my next step should be is to list out STEP BY STEP how the maze will be solved. For …

Software Development c queue
Member Avatar for ja3n
0
3K
Member Avatar for honeybee2090

i want to filter items from list view , i want to remove every kind of items from it but these 202.38.95.66:1080 67.191.234.52:1158 125.88.125.201:1080 65.30.204.106:1188 83.183.96.123:45712 72.74.41.97:46331 69.42.126.106:46486 69.42.126.106:46486 60.241.65.32:47501 60.241.65.32:47501 173.16.5.49:47708 173.16.5.49:47708 93.176.11.69:48293 93.176.11.69:48293 71.114.46.27:48505 i just want to show these items in list

Software Development listview visual-basic
Member Avatar for AndreRet
0
989
Member Avatar for SphirosOkelli

I have been working on a program for class- yes this is homework. I have completed the program, it runs- yay newbie me- but it does not run correctly. I am working with functions, wether referenced or not, and I have passed several values to a function inorder to calculate …

Software Development c++ file-stream ios
Member Avatar for SphirosOkelli
0
111
Member Avatar for ktsangop

Hello everyone. As the title suggests i need to implement a type of timer based function inside a UI Thread in MFC. Although CWinThread is a UI Thread and has a message pump it does not have a Timer function as CWnd::OnTimer Is there any way i can implement a …

Software Development c++
Member Avatar for ktsangop
0
770
Member Avatar for katsmiley

suppose i have defined constant using #define MAX 5 and i am using it in function called find() as shown below: find() { if (MAX==5) { //do this; } else { //do this; } } ** If i am calling this function 100 of times** then which way is better …

Software Development c
Member Avatar for deceptikon
0
165
Member Avatar for phorce

Hello, So basically, I am trying to create a system based on the Singleton Pattern and I'm confused. If I have an Animal class, as well as a Cat class which is derived from Animal and then using a Singleton class will create a single object of which-ever class has …

Software Development c++
Member Avatar for L7Sqr
0
228
Member Avatar for Mitch275

Hi Guys, I'm currently making the transition from matlab to python and am having some difficulties with nesting for loops. Below is a rough example of what I'm trying to do. However when this executes abc is only returned as [] and not a 1D array of each iteration. Any …

Software Development python
Member Avatar for TrustyTony
0
180
Member Avatar for gwolf1

Hi Everyone, I was wondering how I can implement a hashmap function in C. I have to define a struct: struct hashmap; typedef struct hashmap hashmap; This has to be a multimap so that a key can point to different values. If also need to initialise this hashmap like so: …

Software Development c
Member Avatar for deceptikon
0
575
Member Avatar for TheQuestor

I need some help here. I am writing a little desktop app that monitors my ToDo database and whilst it works great when run once, it kind of freaks out when I run it from a timer. As in all the labels start repeating. Below is the entire code. Imports …

Software Development vb.net
Member Avatar for TheQuestor
0
387
Member Avatar for sachi059

Hello i found that only register storage class is allowed in function.But it gives error when i mae it extern auto,extern static... Hello i found that only register storage class is allowed in function.But it gives error when i mae it extern auto,extern static... #include<stdio.h> int sum( int ,int,int ); …

Software Development c storage
Member Avatar for deceptikon
0
877
Member Avatar for freedomflyer

I want to know how I can access the data stored in these variables...but I have no idea what N0$ for example stands for and how to extract the data from there into a register, for example. N0$: .byte DASH,DASH,DASH,DASH,DASH,END ; 0 N1$: .byte DOT,DASH,DASH,DASH,DASH,END ; 1 N2$: .byte DOT,DOT,DASH,DASH,DASH,END …

Software Development assembly
Member Avatar for deceptikon
0
178
Member Avatar for manuel.sabu

case 4: { cout<<"Enter the word you want to delete: "; gets(b); f1.open("anotherf.txt",ios::in); f2.open("tempf.txt",ios::out); while(!f1.eof()) { f1>>a; i++; if(strcmp(a,b)==0) { j=i; } } i=0; while(!f1.eof()) { if(i!=j) { f1>>a; f2<<a; } i++; } f1.close(); f2.close(); f2.open("tempf.txt",ios::in); f2.seekg(0); f1.open("anotherf.txt",ios::out); while(!f2.eof()) { f2>>a; f1<<a; } goto menu; } I am trying to …

Software Development c++ ios
Member Avatar for NathanOliver
0
167
Member Avatar for lo0lo0999

import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Bank1 extends JFrame { private JLabel l1; private JLabel l2; private JTextField t1; private JPasswordField p1; private JButton b1; public Bank1() { super("Bank System"); Container container = getContentPane(); container.setLayout(new FlowLayout()); l1=new JLabel(" ID :- "); container.add(l1); t1=new JTextField(25); container.add(t1); l2=new JLabel(" Password …

Software Development gui java java-swing
Member Avatar for mKorbel
0
217
Member Avatar for JamesCherrill

Like me you may be curious about the "closures" or "lambda expressions" that were supposed to be in Java 7 and are now the centre-piece of Java 8 (due next year). Also like me you may have Googled for some info, and discovered a smattering of technical articles explaining the …

Software Development java java-swing
Member Avatar for JamesCherrill
0
170
Member Avatar for ddanbe

For anyone who likes to do something with sets in C#, this can be a starting point. The full project (VS 2010) is also included. Have fun with programming!

Software Development
0
307
Member Avatar for nitin1

Can you please give me hints or can you teach me how can i convert my simple client server program(in which only client can send any number of messages it want to server) to chat server client program ? I am doing this by trivial way, but still only server …

Software Development c client-server socket-programming
Member Avatar for nitin1
0
2K
Member Avatar for ayesh.yousaf

i have to write a code that should count spaces. i am writting in this way but its not working. if (input==' ') space++;

Software Development c++
Member Avatar for nullptr
0
95
Member Avatar for hacker260

i need help finish this program for an assignment, It should play the Rock, Paper, Scissors game. The nextPlay methoded needs to be filled in with nested switches. thanks for your help import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Rps extends JFrame implements ActionListener { private final char moves[] …

Software Development java java-swing
Member Avatar for stultuske
0
305
Member Avatar for prathiyus

**i'm trying to sort the number in the ascending order,i have a problem in doing that....im quite new to c ** *my input is a={40,50,20,30};,b={20,30,40,50};my output will be a=20 30 40 50 ,b=40 50 20 30 * sorting all the columns of a data by one of its column int …

Software Development c c# c++
Member Avatar for prathiyus
0
338
Member Avatar for hwoarang69

note x = player x postion y = player y postion so iam trying to set up collsion between player and enemy. i want it so my player touch the enemy than my player should stop. and not go though it. this code below kind of works. if my player …

Software Development gaming java
Member Avatar for JamesCherrill
0
319
Member Avatar for maybnxtseasn

How do i alter an element in the set for example how do i edit the 'm_a' member variable of a element in my set? class CPerson { public: int m_a; CPerson(int _a) { m_a = _a; } } set<CPerson*> myPersonSet; .. ... set<CPerson*>::iterator it = myPersonSet.find( CPerson(20) ); // …

Software Development c++
Member Avatar for rstralberg
0
158
Member Avatar for ratanji

actually my task is to create 4 pages data submission form.. i want to store the first three pages data in browser and when i click the final submit button in 4th page 've to insert all the data at a time in mysql so how can i can anyone …

Software Development html-css xml
Member Avatar for arijith04
0
259
Member Avatar for vipulasri.2007

Write a program that reads a file, breaks each line into words, strips whitespace and punctuation from the words, and converts them to lowercase please help me out . thanks in advance

Software Development c
Member Avatar for vipulasri.2007
0
682
Member Avatar for jcmoney1010

Alright i'm trying to write a program that checks a list of names entered by the user to see if the new name entered is part of the list. If it's not part of the list it should return -1 to the main, and print no names found, if it …

Software Development c
Member Avatar for dmanw100
0
113
Member Avatar for Hojjat.Mojallal

Hi I've tried the code below to merge 2 linked list which f1 and f2 are the first nodes in the initial lists and the "first" is the first node in the result list. But it doesn't work! [CODE] node *merge(node *first,node *f1, node *f2,int n1,int n2){ int n=n1+n2; while(n-- …

Software Development c++ linked-list
Member Avatar for mandeepsukhwinderparmar
0
4K
Member Avatar for mahela

In my project I have a datagrid with 2 columns namely "codes" and "description".there are details under code and description columns.I wanted to print the datagrid.please help me.

Software Development visual-basic
Member Avatar for mahela
0
91
Member Avatar for dancks

I don't know jack about Visual Studio, and I'd like to keep it that way because I like doing stuff on the command line, I have my preferences. But my teacher uses it to compile and I'm curious what I did wrong because gcc didn't throw anything. So, code (Without …

Software Development c c++ linked-list visual-studio
Member Avatar for dancks
0
202
Member Avatar for kenomote

Hey guys its me again...im having some problems modifying the data in the DataGridView The error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'where UserID='3'' at line 1 and it highlight this …

Software Development dataset vb.net
Member Avatar for kenomote
0
123
Member Avatar for jongiambi

Hi so I have a practice lab I am working on where I am asked to fill in the code. The program is supposed to take in two 3D points (x,y,z) and compute the distance between them. I have almosty all of the program finished im just stuck on how …

Software Development c++ oop
Member Avatar for rubberman
0
869
Member Avatar for kenomote

Hey guys i need some help on how to create a connection of a relationship between two forms...for example I have a DataGridView on another form....with a search button.. if i click the search button another window will pop out with a text box lable "Look For:" and a combobox …

Software Development seo vb.net
Member Avatar for kenomote
0
343
Member Avatar for kenomote

Hey guys im having problem with the registration form that i created the error shows after i tried some error handling if the username already exists this is the error message: `{"Invalid attempt to Read when reader is closed."}` and this is the error highlight `While mydr.Read()` Heres my code …

Software Development vb.net
Member Avatar for kenomote
0
255
Member Avatar for MARKONINI

Hello, I'm now year 12 in a programming oriented high school and I have some 3-4 months to complete a programming based project. I know SQL (completed "Introduction to Computer Science" course), PL/SQL (New to PL/SQL but I'm learning fast), C# (learned it 3 years and had good grades) and …

Software Development c c# c++ encryption
Member Avatar for Momerath
0
336
Member Avatar for djbsabkcb

Below is my code for Fibonacci sequence, however when I use a large number such as 100 or more it takes forever to produce output. Why? any help would be appreciated. :( [code]#include <iostream> using namespace std; long fib_num ( long ); int main() { long num = 0; long …

Software Development c c# c++
Member Avatar for josh2k12
0
2K
Member Avatar for Goldfinch

I was trying to building a java project with a run function. Problem is, the build file is located at the base directory and file with the main method is in the /contents/username/ subdirectory - I can't seem to properly call the file even though when I run Ant compile, …

Software Development java
Member Avatar for Goldfinch
0
175
Member Avatar for jghost

Ok this is the classic Towers of Hanoi question. Legend has it that in a temple in the Far East, priest are attempting to move a stack of disks from one peg to another. The initial stack had 64 disks threaded onto one peg and arranged from bottom to top …

Software Development algorithm c++ visual-studio
Member Avatar for angelbellz
0
2K
Member Avatar for valorien

Hi Everyone. I'd appreciate your help writing better code. I have a list of ~1000 values: list_of_values = [0x123D, 0x844F, 0x33E9, ....., 0xFFFF, 0xFFFF, 0xFFFF] The last values in the list will always be 0xFFFF, but I don't know how many exactly. What I want is to get rid of …

Software Development python
Member Avatar for valorien
0
152
Member Avatar for kedxu

I have two classes: (1) **Class A**, which extends JApplet, implements Runnable + some Listener stuff (2) **Class B**, which has a main method and is not an applet My question is, how do I create **class A** with **class B**'s main method? Is this even possible? What I'm doing …

Software Development java
Member Avatar for kedxu
0
255
Member Avatar for mmayputt

Friend Sub Inventory_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load 'Connect to database dbProvider = "PROVIDER=Microsoft.Jet.OLEDB.4.0;" dbSource = "Data Source= C:/Inventory.mdb" con.ConnectionString = dbProvider & dbSource 'Open database connection con.Open() MsgBox("Inventory is opened now") 'Import the data on tables sql = "SELECT * FROM Brands" sql1 = "SELECT * FROM …

Software Development dataset open-source vb.net
Member Avatar for TheQuestor
0
152
Member Avatar for Rasool Ahmed

I have problem with making my program works on windows startup. Here's the code: Sub RunAtStartup(ByVal PutAtStartup As Boolean, ByVal Name As String, ByVal Path As String) Dim StartupPath As String = "Software\Microsoft\Windows\CurrentVersion\Run" Dim myKey As Microsoft.Win32.RegistryKey myKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(StartupPath, True) If PutAtStartup = True Then Try myKey.SetValue(Name, Path) Catch …

Software Development microsoft-windows vb.net
Member Avatar for TheQuestor
0
280
Member Avatar for magord86

If someone can tell me what I'm doing wrong I would greatly appreciate it. I have a listbox of all the US states and an array of the capital of all the states. What I'm trying to do is when the state is selected and the button is clicked, then …

Software Development vb.net
Member Avatar for Reverend Jim
0
695
Member Avatar for s_danielsz

(Before I ask my question, I have tried looking through google and the site already, and didn't find anything relevant to what my problem was. All I was finding was more complex than my current level.) Anyway, my problem is that I'm getting an "expression must have (pointer-to-) function type …

Software Development c++
Member Avatar for Ancient Dragon
0
668
Member Avatar for itla

I am not grasping C++ very well and I am having a hard time with this assignment: • Write a program that does the following: Calculates the Velocity and Momentum of an object. The formula for the velocity is V=d/t and the formula Momentum is m=mass*velocity. Your program should consist …

Software Development c++
Member Avatar for itla
0
279
Member Avatar for aman55

:#include<stdio.h> #include<conio.h> void main() { int i; float x[10],value,total; clrscr(); printf("enter ten real numbers"); for(i=0;i<10;i++) { scanf("%f",value); x[i]=value; } total=0.0; for(i=0;i<10;i++) total=total+x[i]*x[i];//eliminate total from here printf("/n") for(i=0;i<10;i++) printf("[%2d]=%5.2f/n",i+1,x[i]; printf("total=%2f/n",total); } if i write total=x[i]*x[i] =102 an another answer why?? nd if wrie=total=total+x[i]*x[i] =446.86 10 real number 1.1, 2.2 ,3.3 ,4.4 …

Software Development c
Member Avatar for alaa sam
0
176
Member Avatar for Amiro

**I am doing a mini project, I need help with how I can store the scores in an array. ** import javax.swing.*; // import the swing library for I/O class fi_project { public static void main (String[] param) { questionfilm(); System.exit(0); } // END main //************************************************************ public static void questionfilm() …

Software Development java java-swing
Member Avatar for JamesCherrill
0
226
Member Avatar for forjustincase

Today , i came across this code class Something { public static void main(String[] args) { try { System.out.println("In try block"); return ; } catch(Exception e){ System.out.println("Hello World in catch!"); } finally { System.out.println("Hello World in finally!"); } } } Now can anyone tell me the output with reason plz... …

Software Development java
Member Avatar for JamesCherrill
0
96
Member Avatar for udaraps

i hv the same problem with [B]VB 6.0[/B] & im using [B]MS ACCESS[/B] for the database. Pls help me to code my program as im unable to pass the values display in the text boxes to the data grid in the same form thnx in advance regards uda

Software Development visual-basic
Member Avatar for akgs
0
923

The End.