132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for gtkesh

Hello everybody. Here is my remove method for bst. As you all know, there are 3 cases to consider while removing a node from bst. For the last case, when a node (which is to be removed) has 2 children, I want to use predecessor instead of successor to change …

0
123
Member Avatar for A Haunted Army

i've been working on a game project, its a slider platformer and i've been having problem with getting the movement working, the movement is time based instead of being fixed to the frames per secound so the movement is consistent. the movement was working when i was testing out the …

Software Development algorithm c++ open-source
Member Avatar for A Haunted Army
0
1K
Member Avatar for pattmorter

Hey everyone. I was doing a simple test program today that my professor is asking us to do just to test to see if his Ant script works correctly and I came across a problem that is confusing me. My prof wants us (after created all of our homework class …

Software Development java
Member Avatar for pattmorter
0
203
Member Avatar for AndyPants

I just built a new computer and I am trying to keep it as "clean" as possible. I have the purchaised version of VisualStudio 2008 but I dont know wether I should install that, or the latest express version?

Software Development c++
Member Avatar for Ancient Dragon
0
114
Member Avatar for Resentful

Hello everyone, I'm attempting to log into Hotmail using Web Requests, but I'm having a little trouble. It seems I can log in fine, but when I try to access Hotmail, it takes back to a login page with puts me in a constant loop. The important code can be …

Software Development vb.net
Member Avatar for Resentful
0
260
Member Avatar for Stpdoug

Hey guys i have a small problem i would love some advice..this code outputs a hollowed box the problem is i cant get the right most column of the box in the right postion without tabbing it across..which will create problems if i want the user to determine how big …

Software Development c
Member Avatar for Stpdoug
0
108
Member Avatar for OsamaJutt

hello. i doing my work and facing problem in "<<" operator i declare that method in the class public: friend ostream& operator<<(ostream& out, T theList); and in the main i am using that to print the list in this way cout<<"First List is \n"<<list1; but it creat error in the …

Software Development c++
Member Avatar for OsamaJutt
0
134
Member Avatar for kyupa.suria

#include<conio.h> #include<stdio.h> #include<string.h> int mistakes_ctr=0; int x=52, y=22, i; void printM(){ gotoxy(20,20); cprintf("m"); } void printP(){ gotoxy(22,20); cprintf("p"); } void printL(){ gotoxy(24,20); cprintf("l"); gotoxy(34,20); cprintf("l"); } void printA(){ gotoxy(26,20); cprintf("a"); } void printN(){ gotoxy(28,20); cprintf("n"); } void printT(){ gotoxy(30,20); cprintf("t"); } void printO(){ gotoxy(32,20); cprintf("o"); gotoxy(36,20); cprintf("o"); } void printG(){ …

Software Development c
Member Avatar for kyupa.suria
0
210
Member Avatar for andrewnewspotify

how do i detect the current position in vlc video-playback in vb.net? Basically as the clip is playing, I want in a label for it to say "02:58/21:35" relating to the current clip being played. So I'll need to somehow figure out how to detect current position and end position. …

Software Development vb.net video
Member Avatar for Reverend Jim
0
1K
Member Avatar for trantran

I am trying to have a C++11 compiler that works. It seems (if the publicity is right... and typically it never usually is!) that gnu g++ 4.8 might be it. So I installed Ubuntu 12.04 read the instruction on multiple sites, did EXACTLY as it was said, got (obviously) errors, …

Software Development c++ ubuntu
Member Avatar for trantran
0
437
Member Avatar for saurabh.mehta.33234

Is the sizeof operator in c a compile time or run time operator..Because the following code works fine with a gcc compiler int a; scanf("%d",&a); printf("%d",sizeof(a)); But I found in one of the tutorials thatsizeof is compile time??Can someone please clear the confusion?

Software Development c
Member Avatar for deceptikon
0
397
Member Avatar for Gado

I have this file 3 10 10 10 0 0 0 0 0 1 1 0 0 1 1 1 1 0 0 0 1 1 and I want to read the first line as intger in X the 2nd line in camp1 the 3rd line in camp2 line 4 …

Software Development c
Member Avatar for Gado
0
192
Member Avatar for tanmay.majumdar2

#include<iostream> #include<conio.h> using namespace std; char square[10] = {'o','1','2','3','4','5','6','7','8','9'}; void box(); int checkwin(); int main() { char f, g, e[10]={'o','1','2','3','4','5','6','7','8','9'}; int a; int c, d; for(a=1;(a<=9);a++) { int b; system("CLS"); box(); if(a%2==1) { cout<<"player 1 enter your num\n"; cin>>b; } else { cout<<"player 2 enter you number\n"; cin>>c; } if(b==1&&square[1]=='1') …

Software Development c++
Member Avatar for CGSMCMLXXV
0
168
Member Avatar for xHellghostx

Hello Is there anyway to move a string array elements to a vector and have an output that list these elements? Let's say the array contains the following elements `String arraySize[] = {"A", "B", "C", "D", "E"};` and I want to move these elements to a vector.. How would I …

Software Development java
Member Avatar for tux4life
0
605
Member Avatar for GeneClaude

In this code, I need to put a limitation in every part where the user is asked to input data. The user will be asked to input a grade ranging from 50-100, and if his input is not in the range, the program will display a warning, and if the …

Software Development c++
Member Avatar for CGSMCMLXXV
0
249
Member Avatar for mayankjain05_1

this is the question. www.codechef.com/problems/CTEAMS i wrote this code http://ideone.com/h5Gimy it gives success but when i pass an input it gives sigsev error.please someone help!!

Software Development c
Member Avatar for mayankjain05_1
0
244
Member Avatar for jim.hurley

I try to reference a struct from another class in my code and it gives me an error, saying I have a syntax problem. //Figure index struct FIGURE_TYPE { //Where to crop the image from SDL_Rect crop; int x; int y; }; That's the struct in Figure.h, void set_camera ( …

Software Development c++ visual-studio
Member Avatar for jim.hurley
0
620
Member Avatar for deceptikon

Another quickie. This is a basic class for working with Windows path strings. It's based off of .NET's System.IO.Path class, but doesn't contain any API dependencies (and thus doesn't normalize the paths, it's all straight string handling). Methods that I've personally found to be useful are included. The class is …

Software Development api c++ microsoft windows-api
Member Avatar for deceptikon
0
401
Member Avatar for A.Muqeetkhan

guys i need ur help i want to insert data directly into the sql table using c# here is my code all that i have been able to do is get the values from the table not insert them i tried to do it this way but apprently there is …

Software Development open-source sql vb.net
Member Avatar for Ancient Dragon
0
245
Member Avatar for Rahul47

Hello people, here is a question related to sharing of databse between two applications. I am developing an application which has two parts: 1) Client Side. (Student) 2) Server Side. (Faculty, teacher) What I want to accomplish is that if a teacher creates question paper the student should be able …

Software Development vb.net
Member Avatar for Reverend Jim
0
171
Member Avatar for sarah.mathieson.7

I am new to c++ and to using graphics libraries, so please forgive me if I have made a silly mistake. I am trying to compile a program that creates a window with one button from an example I found online. This is the error I get when I try …

Software Development c++
Member Avatar for sarah.mathieson.7
0
725
Member Avatar for dreday92

Can someone tell me why I get this error "terminate called after throwing an instance of 'std::out_of_range' what(): vector::_M_range_check Abort trap" when i run the following code? user and reservations are vectors of two classes else if (str == "lookup") { getline(cin, Name, '\n'); if (Name == user.at(i).getName()) { for …

Software Development c++
Member Avatar for deceptikon
0
755
Member Avatar for xHellghostx

I am having a problem with a program I wrote.. For the life of me I can't figure out what's wrong with the program.. the program should calculate a random value and then outputs an intrest rate and present value.. The problem is that I am getting zeros instead of …

Software Development java mathematics
Member Avatar for JamesCherrill
0
181
Member Avatar for developer707

Hello to everyone I am a begginer in VB6. My project consist just on a form and a web object, the problem is that I want to dissable the sound that make the application when I click on links. Can someone help me?! Plese write the code here because I …

Software Development vb.net
Member Avatar for TnTinMN
0
338
Member Avatar for enkitosh

Hey everoyne. I'm wondering If it's possible to construct a switch statement which takes in a character and determines weither that character is a number or not, or an alphabetical number. switch(i) /*character*/ { case '0': /*ok it's a number, doesn't have to be zero, any number from 0-9*/ case …

Software Development c
Member Avatar for enkitosh
0
318
Member Avatar for Violet_82

Hi all, I have just installed the jdk on a windows7 machine 64bit. I run the first test application in the terminal and got the following message: "'java' is not recognized as an internal or external command, operable program or both file". So I had a look online and found …

Software Development java ubuntu
Member Avatar for vishnu.khera.5
0
440
Member Avatar for SoulofchaOs

There are 2 sets of 4 buttons being created. The `ImageIcon` of the 1st set of buttons are to be dragged onto the 2nd set of buttons. The boolean `enab` variable is for determining if the 2nd set of 4 buttons are enabled or not. I initially set the boolean …

Software Development java java-swing
Member Avatar for JamesCherrill
0
204
Member Avatar for Beteabmlemma

Pleace help me with this!!!how can we change a decimal number into binary,octal and hexadecimal using c++????

Software Development c++
Member Avatar for programmer007
0
369
Member Avatar for Dili1234

I want to get the data between today this the coding i used CrystalReportViewer1.SelectionFormula = "{sell.Date}= '" & DateTimePicker2.Value & "' BETWEEN {sell.Date}= '" & DateTimePicker1.Value & "'" I saved the data into data Dim date1 As Date = DateTimePicker1.Value.Date THE ERROR I got have attached as a picture I …

Software Development vb.net
Member Avatar for Dili1234
0
259
Member Avatar for Kareem Klas

Hello members, I have started studying C++ with the book "C++ primer"( by Stanley B. Lippman, Josée Lajoie& Barbara E. Moo). I use Visual Studio 2012 Ultimate and make my projects on Win32ConsoloApllication. There was an example and I wanted to make it over for myself. #include <iostream> int main() …

Software Development c++ visual-studio
Member Avatar for Kareem Klas
0
179
Member Avatar for mark.scutt.7

Hiya, I have 10 people and need to assign 10 random numbers between 1 and 10 for random seating purposes each time.My code so far is below but assigns sometimes the same numbers. How can I make it so that once a number is used it won't be produced for …

Software Development visual-basic
Member Avatar for AndreRet
0
937
Member Avatar for dan.ni.aiza

*It's my first time here but the way I see things around here is good * I'm a newbie in VB2010 so please don't judge me too much... HERE is my codes for INSERTING DATA but the problem is I don't know how to use it for SEARCHING Imports System.Data.SqlClient …

Software Development display open-source sql vb.net visual-basic
Member Avatar for Reverend Jim
0
251
Member Avatar for dr_iton

I created a program with twoo projets like Client and Server. To open a form in a button click with one prject goes like following: private void buttonOpenForm_Click(object sender, EventArgs e) { Form2 frmForm2 = new Form2(); frmForm2.Show(); } If I'm calling the Form2 from Server project, I don't know …

Software Development
Member Avatar for caKus
0
156
Member Avatar for letterG

Hi all! I've just started working on my Binary Search Tree and already there's a problem that I can't seem to understand. Ok here's the problem, when I compile its ok but when I run it there's an error, i've managed to found where the problem is but I don't …

Software Development c++
Member Avatar for letterG
0
164
Member Avatar for Resentful

Hello, I'm having a little issue issue with my picturebox controls. Normally my program works fine, but when I try to load a picture into any of my pictureboxes, the image won't load until I make sure the form is extended to show the picturebox and the form is ontop. …

Software Development vb.net
Member Avatar for Resentful
0
128
Member Avatar for napninjanx

Like I have this eBook called C Programming Language 2nd Edition and It does not tell me where to write the programming codes. Do you have to write It In a notepad?

Software Development c
Member Avatar for Moschops
0
2K
Member Avatar for lewashby

Does anyone know how I can add "0" to the left side of a string? If I get "1234" I'd like to make it "012345", if I get "1234" I'd like to make it "001234". Any suggestions?

Software Development c++
Member Avatar for Moschops
0
155
Member Avatar for IsaacMessi10

Private Sub Open_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Open.Click If (BookmarksList.SelectedIndex >= 0) Then WebBrowser.WebBrowser1.Navigate(BookmarksList.SelectedItems) End If End Sub This is the code I made for opening a Bookmark from List yet an error keeps on showing. Any help? WebBrowser is the main form's name. BookmarksList is …

Software Development vb.net
Member Avatar for IsaacMessi10
0
108
Member Avatar for smitty68503

No mapping exists from object type System.Windows.Forms.DataGridViewRow to a known managed provider native type. Using conn As New SqlConnection(My.Settings.Smitty) Using cmd As New SqlCommand() With cmd .Connection = conn .CommandText = "Update Repairs set status = @status WHERE RepairNumber = @repairNumber" .Parameters.AddWithValue("@status", "Awaiting Part Installation") .Parameters.AddWithValue("@repairNumber", RepairInventoryDataGridView.Rows(4)) End With conn.Open() …

Software Development vb.net
Member Avatar for smitty68503
0
175
Member Avatar for padton

Hi all, I am trying to rewrite the following code, to avoid having to write 60 individual loops,I would really appreciate your help with this. # Long Version - not ideal num = 60 n = [open('n%i.txt' % i, "w") for i in range (num)] for a2s1, a2s0, a1s1, a1s0 …

Software Development python
Member Avatar for TrustyTony
0
178
Member Avatar for abbashadwan

#include<iostream.h> #include<conio.h> #define size 5 int stack[size],top=-1; void push(int s[size],int &t,int m); int pop (int s[size],int &t); void main() { clrscr(); cout<<"1-push \n 2-pop \n 3-exit \n"; int x,y; do { cout<<"enter number to choice:"; cin>>x; switch(x) { case 1: cout << "enter anumber to push in stack \n"; cin …

Software Development c++
Member Avatar for Ancient Dragon
0
232
Member Avatar for nitin1

i am learning C++ from a good time now.. but I am still very confused sometimes in the use of array(char) and string.. can anyone please tell me that what exactly all differences between string and char array ? what can i do with array which i can't do with …

Software Development c++
Member Avatar for Lucaci Andrew
0
211
Member Avatar for harinath_2007

Hi, I am messed up with jscrollbar in my applcation.I have a jtextarea with jscrollpane in my application. Whenever the text in the textarea fills up completely , i want the scrollbar to scroll down. As soon as new text is added to the textarea , the scrollbar should move …

Software Development java
Member Avatar for harinath_2007
0
121
Member Avatar for Petcheco

Hello everyone. I saw a post of one of our friends here about a problem he found of the SPOJ website. So I went there to check it. I found it to be very cool; I started to do the exercises but when I got in the 2nd, a prime …

Software Development c++ ios
Member Avatar for Petcheco
0
207
Member Avatar for VijayaDurga

how to send a email please explain step by step

Software Development email
Member Avatar for deceptikon
0
140
Member Avatar for jvinothkumardpi

hai i am a student working on my project on C# coding in which i need to display the datas of the solar inverter readings which i already uploaded to mysql database and from that i need to show the datas through C# coding. i did the coding for displaying …

Software Development c c# c++
Member Avatar for Ketsuekiame
0
164
Member Avatar for thewilf

Hi All, Quick one. I have a webservice which uses numbers in american format which need to be passed as datetime data types when webmethod is called. The issue is the times passed depend on when a button is pressed. Please ignore variables as this is from testbed project I …

Software Development vb.net
Member Avatar for thewilf
0
243
Member Avatar for TrustyTony

![circuit](/attachments/small/2/circuit.jpg "align-right") Here is a version in Python of program from classic Lisp book (see http://www.daniweb.com/software-development/legacy-languages/code/446235/simple-scheme-functions-for-finding-impedance-for-norvigs-implementation for the details) for calculating impedance of a circuit. (Example circuit with 1MOhm like in the book's code not like in diagram)

Software Development engineering python
0
2K
Member Avatar for TrustyTony

![Lisp001](/attachments/small/2/Lisp001.jpg "align-left") ![Lisp002](/attachments/small/2/Lisp002.jpg "align-right") I did translation to minimal Scheme implementation of Norvig written in Python (http://www.daniweb.com/software-development/python/threads/359370/norvig-an-even-better-lisp-interpreter-in-python) of the impedance code defined in classic book **Lisp by *Patric Henry Winston* and *Berthold Klaus Paul Horn*** from year 1981 (first computer book I ever bought). Errata: diagram has 10 MOhm when …

Software Development python
0
630
Member Avatar for pinkesh25gar

#include<iostream> #include<vector> #include<stdio.h> #include<string.h> #include<stdlib.h> #include<algorithm> #define READY 1 using namespace std; typedef struct task_node { int task_id; int period; int wcet; int arrival_time; int deadline; int state; int ceu; int slacktime; }task; void read_input(vector<task> &); void print_task_vec(vector<task> &); bool comparebyperiod(const task&,const task&); bool comparebydeadline(const task&,const task&); bool comparebyslacktime(const task&,const …

Software Development algorithm c c# c++
Member Avatar for Ancient Dragon
0
275

The End.