132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for inspire_all

[CODE] #include<iostream.h> #include<conio.h> #define NULL 0 class node { public: int dt; node *lt,*rt; node(int x) { dt=x; lt=rt=NULL; } }; class tree { public: node *create(); int height(node*); node *mirror(node *); }; node* tree::create() { int x; cout<<"enter data(-1 for no data)"; cin>>x; if(x==-1) return NULL; node *t=new node(x); …

Software Development c++
Member Avatar for raptr_dflo
0
126
Member Avatar for skit091

Main form coding ;- using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace CS3DGeneratorSample { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void link_Image_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { OpenFileDialog.Title = "Open Image"; if (OpenFileDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK) …

Software Development image
0
108
Member Avatar for Nawaf15

It seems like the website has some changes made on it. I can't post codes anymore and if I do they look messed up. Can someone help me please? One more thing, how do I sort items saved to disk alphabitcally?

Software Development c++
Member Avatar for raptr_dflo
0
122
Member Avatar for cryonize

I have a bit a of a problem because I have no idea what's going on in my code. Could someone guide me with this? **It has to swap the nodes themselves. ** #include <iostream> #include <iomanip> using namespace std; typedef struct node { int DATA; node *NEXT; }; node …

Software Development c++ linked-list
Member Avatar for raptr_dflo
0
964
Member Avatar for stupendousomega

Without the name, it runs fine. I read up that adding const before new could solve my problem, but it doesn't. Any ideas? include <iostream> include <string.h> using namespace std; class Player { int Health, *Strength, *Speed, *Accuracy, *Defense; char *Name[80]; public: Player (char, int, int, int, int, int); ~Player …

Software Development c++
Member Avatar for raptr_dflo
0
163
Member Avatar for help wanted

I'm in an intro C++ class and am suppose to make a phonebook program that will show a list of commands then read in a name,number ,and notes into a file. Then be able to retrieve a name, or display the whole contact list. I'm having trouble getting the find …

Software Development c++
Member Avatar for raptr_dflo
0
253
Member Avatar for t_daniweb

Using an appropriate definition of ListNode, design a simple linked list class with only two member functions and a default constructor: void add(double x); boolean isMember(double x); LinkedList( ); The add function adds a new node containing x to the front (head) of the list, while the isMember function tests …

Software Development c++ linked-list
Member Avatar for t_daniweb
0
613
Member Avatar for stereomatching

Code blocks are created by indenting at least 4 spaces ... and can span multiple lines class Wizard : public QDialog { Q_OBJECT public: Wizard(QWidget *parent); private slots: void what_ever(); private: QPushButton *what_ever; }; Wizard::Wizard( QWidget *parent ) : QDialog(parent) { QGridLayout *layout = new QGridLayout( this ); QScopedPointer<QTextEdit> textEdit(new …

Software Development c++ qt
Member Avatar for raptr_dflo
0
203
Member Avatar for Slavrix

basically what ive got going is some transformations using my own functions, ive got them working fine still using glMultMatrix but im not allowed to use that for this. im trying to make my own matrix multiplication function and im getting stuck somewhere. the matricies are all one dimensional arrays …

Software Development c++ matrix-multiplication opengl
Member Avatar for raptr_dflo
0
996
Member Avatar for Sloppos21

I have recently started learning C++ and I'm having some trouble with the following problem: "Suppose a cuboid has three sides length, depth and height. Write a C++ program that reads from keyboard these 3 sides in the form of integers, with proper input prompt/s, then display the volume of …

Software Development c++
Member Avatar for Sloppos21
0
200
Member Avatar for compsci91

Class extStrSet inherits from class strSet. The following function down-casts from the former to the latter. inline extStrSet& ss2extss (const strSet& ss) { return *(extStrSet*)&ss ; } Can someone explain how the down-casting is accomplished by explaining each part of the expression in the return statement? Also why is downcasting …

Software Development c++
Member Avatar for raptr_dflo
0
140
Member Avatar for 24x24

Hello, I have an assignment to convert some given jave code into c++. I am currently having an issue wherein when I run the program it tells me that: error C2660: 'approximateSqrt' : function does not take 1 arguments. Any suggestions for moving forward would be appreciated. I have the …

Software Development c c# c++ java
Member Avatar for 24x24
0
217
Member Avatar for BryantFury

Hi ive made a code which does two things. First is read from a separate .dat file a product's model number, name a proce. The second bit allows the user to choose the product model. Depending on what the user chooses, only 1 of the products is displayed. So for …

Software Development c++
Member Avatar for BryantFury
0
120
Member Avatar for xtreme-one

Hello all, I hope this is the correct place to ask this question. I joined 5 minutes ago so first off Ill say im a absolute noob at programming- I have no idea how to program. I have tried to learn over the years but have never been able to …

Software Development c++
Member Avatar for Ancient Dragon
0
183
Member Avatar for FelineHazard

Hi all, I am doing some c++ exercise about operator replacing. I have successfully replaced the + (plus) operator to work on a user-defined class. I understand these operators are order-sensitive: need to replace the operator for (class+int) and for (int+class). Thus, creating **two** replacements that do exactly the same. …

Software Development c++
0
150
Member Avatar for Dmiller071

Hi all, I need to utilize a Graph Data structure for an assignment. I've understood the following code (posted below) until I came to the search function. The depthFirstSearch and breadthFirstSearch both require a Visitor<T> which is an interface. I'm not much used to interfaces, so I'm not sure where …

Software Development data-structure java
Member Avatar for Dmiller071
0
158
Member Avatar for T0pAz

Can someone who have free time willing to teach me how to overload operator on CSharp? Thanks in advance.

Software Development
Member Avatar for Mitja Bonca
0
90
Member Avatar for sing1006

after searching on the web, i know that Me keyword is use to Refer to the Current Instance of an Object, but if i want to Refer to the others Instance of an Object, what is the keyword that i need to use?

Software Development vb.net
Member Avatar for Reverend Jim
0
101
Member Avatar for justindill

Write a Java interface named Searchable with two abstract methods: one named Way2Search that returns a String and another named MaxTime that returns an Integer. Be sure your code compiles and runs as expected. Name your Java file Searchable.java. Although there is no compilitation errors, or any errors throughout the …

Software Development java
Member Avatar for JamesCherrill
0
329
Member Avatar for Naveed_786

Dear All, 1. How can i enter data in flex grid and then press save button to enter data in access db with out using text boxes? 2. How to bind record set with flex grid? Please give me sample code which should for add edit delete data from db …

Software Development visual-basic
Member Avatar for androidz
0
4K
Member Avatar for dwlamb

I am looking for syntax I saw somewhere but can not find now. Working with the results of a find delete the files found. The syntax is something like this: for i in "${find . -name '*.ini'}"; do rm $i; done Am I dreaming or is this possible?

Software Development shell-scripting
Member Avatar for dwlamb
0
92
Member Avatar for androidz

Good Day I have some questions to ask, I made a point of sale system using vb6 my question is,. is it ok to combine dao and ado? Hoping for your quick replies thank you

Software Development visual-basic
Member Avatar for androidz
0
136
Member Avatar for utkarshsahu

In Python, which is more of a pythonian style of writing between these two: 1. print 'Hello' or 2. print('Hello') If u have a link on basic outlines of pythonian style and which syntax is a more pythonic way to use, it would be very useful to me. Thank You!

Software Development python
Member Avatar for utkarshsahu
0
177
Member Avatar for Sadun89

plz... I need to add images for drop down list..So how I do it?? This software deverlop in java platform using Netbeans. So this can't be use any Java Script.Can you? Because this is Desttop application .. plz help..

Software Development image java java-netbeans
Member Avatar for Sadun89
0
149
Member Avatar for prnjn

**I am using NetBeans** i have a 'Search by employee id' button . I want when user click this button a dialogue box appear which take employee_id as input from user . then that input be used for fethcing data from the database ( desired table in DB has primary …

Software Development java
Member Avatar for prnjn
0
211
Member Avatar for trady

Hi, I have a problem with a nestled "for-each". I want information from every orditem. Every orderitem have one "orderitem id" and could have several "job id". The sample belove do not work,any suggestions? XML <order orderid="20"> <workflows> <workflow id="97" <items> <orderitem id="1"> <jobs> <job id="150"/> <job id="151"/> </jobs> </orderitem> …

Software Development xml
Member Avatar for xml_looser
0
141
Member Avatar for cbartondock

Hi, I'm an amateur programmer developing a 3d asteroid/space based game in xna. In my game I have a ship with a chase camera attached to it. Attached to the camera (and here I mean its position is calculated relative to the camera) is an arrow model that always points …

Software Development image
Member Avatar for cbartondock
0
157
Member Avatar for Jason666

I have been going through the motions and still cannot seem to get this right. I have textboxes in a gridview that are populated from an access database. They are all datetime values. In the backend code, I am trying to loop through all those values and then apply conditional …

Software Development asp.net
0
110
Member Avatar for Huston

Hey guys, I am making a simple c++ compiler with Visual Studio 2010, but I am stuck on the converting it to assembly bit(with c++ coding). What I am trying to do is convert the code they type(in a cpp file) to assembly, then translate it to machine code etc. …

Software Development assembly c++ visual-studio
Member Avatar for Huston
0
4K
Member Avatar for compsci91

Give a main function written in C++. Your main function is to see if it has been passed exactly one command line argument (you are to check that there is exactly one), and it has the value –verbose The function will set the local integer variable foundVerbose to 1 if …

Software Development c++
Member Avatar for nullptr
0
206
Member Avatar for zachattack05

I'm working on a databound CheckListBox and things are going well, but the name I chose for it is bugging me. Because the control CheckListBox already exists, I didn't want to name it that, and instead chose P_CheckListBox (the P represents the first letter of the company name) and is …

Software Development
Member Avatar for zachattack05
0
126
Member Avatar for prnjn

Hi. I am Using netBeans.. I have 4 JLists (i.e jList1 , jList2, jList3 , jList4) in 4 different tabs in frame. Each List has the value of employee_id from database (i successfully did it already) there are many field in tabs ( i.e rows of databse with employee id …

Software Development java java-netbeans
Member Avatar for prnjn
0
746
Member Avatar for Simon180

I got a problem with abit of code and am unable to fix it, i have marked the area that is having the problem with the error message that i get. procedure TMainForm.Show(s: string); var n, n2, n3: integer; arTemp: TMyArray; begin arTemp := TMyArray.Create(); n := InStr(1, s, ':'); …

Software Development pascal
Member Avatar for darkagn
0
152
Member Avatar for jhedonghae

hi again everyone...i have here an attach image of my problem.... items in year level came from my database...what i wanted is that their would be no repitition...is this possible? please help ![526949_423643440983941_100000148652191_1891701_429384302_n](/attachments/small/3/526949_423643440983941_100000148652191_1891701_429384302_n.jpg "align-left")

Software Development vb.net
Member Avatar for jhedonghae
0
112
Member Avatar for nidheeshkumar.r

hey, i have a code snippet for implementing the co occurance matrix of a grey level image.The code is :- public class TextureExtraction { public static int[][] binImage; public static int height; public static int width; public static double[] coocFeatures=new double[48]; public static double[] getCoocFeatures(){ return coocFeatures; } public TextureExtraction(int[][] …

Software Development image java
Member Avatar for NormR1
0
232
Member Avatar for _Nemesis_

Hey Guys, I've come across a strange problem in DirectX 10 that I would really appreciate some help with: When trying to render ID3DX10Mesh objects that use a particular input layout, the vertex data seems to alter slightly before the object is passed to the vertex shader. I have been …

Software Development c++
Member Avatar for Huston
0
190
Member Avatar for triumphost

I need someone to check my bitmap class for me. I load a bitmap from a file but I cannot get it to draw to the specified window :S I'm not sure if I'm loading it right or how to get the pixel data for BOTH 32 and 24 bit …

Software Development c++
Member Avatar for Huston
0
106
Member Avatar for nuclear

So i was simply following one of the opengl tutorials - http://nehe.gamedev.net/tutorial/loading_and_moving_through_a_3d_world/22003/ So everything works completely fine except one thing, when i load in textures with SOIL lib its not completely correct, but with GLAUX lib it works just fine but i dont prefer using GLAUX. Here is what i …

Software Development c++ data-structure opengl storage
0
148
Member Avatar for irffan

Please any one help me to create Pie Menu in C#

Software Development
Member Avatar for irffan
0
128
Member Avatar for mehnihma

I need help with this code. I get zero values, how can I stop generating numbers when I hit the target number? Thanks import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.util.*; import java.util.concurrent.locks.ReentrantLock; /** * @author Marin */ public class TargetFinder extends JFrame { private static final long serialVersionUID = …

Software Development java java-jsp java-swing
Member Avatar for mehnihma
0
166
Member Avatar for jhedonghae

i have here a code for my back up: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim dbload As String = Application.StartupPath + "\Enrollment System.accdb" Dim backupdb As String = "G:{0:yyyyMMdd}" + ".accdb" System.IO.File.Copy(dbload, String.Format(backupdb, Date.Today), True) MsgBox("DB Backup Successful") End Sub but this code …

Software Development vb.net
Member Avatar for jhedonghae
0
140
Member Avatar for Transcendent

Does anyone know some algorithms for converting to bases such as octal, hexadecimal,and binary?

Software Development java
Member Avatar for JamesCherrill
0
122
Member Avatar for charlie.beat

Hello everyone, I am close to finishing this project, but i am stuck on my PhoneTest class. To be specific I am stuck on the Method printBill. (This is an Inheritance project). Their is a Date class for the month/day/year Their is a parent class which is the Phone class …

Software Development apple java
Member Avatar for charlie.beat
0
221
Member Avatar for ashboi

I need some help understanding the follow functions & how they work. 1) y >> 16 & 0xFF0 2) (y >> 16 & 0xFFC) << 4 3) (y >> 20 & 0xF0F) | 1 << 7

Software Development c++
Member Avatar for rubberman
0
116
Member Avatar for arezz09

how can I make vb.net application online. Is it possible? so it's can be access from anywhere..

Software Development vb.net
Member Avatar for JorgeM
0
103
Member Avatar for Labdabeta

I am having a linker error in a file of some 3000 lines that I cannot seem to reproduce. I was wondering if anybody had any ideas where the problem could be. Basically I have a function in a header file and whenever I go to link my project it …

Software Development c++
Member Avatar for Labdabeta
0
108
Member Avatar for compsci91

I am trying to create two functions both named maximum (which overload each other) that compute the maximum of two arguments. The first should find maximum of two arguments of type double. The second should accept two arguments of type string (not C-string types) and should return the argument that …

Software Development c++
Member Avatar for m4ster_r0shi
0
160
Member Avatar for won212

Hi any expert know what wrong's with this? I have 102 syntax error. I am suspecting did i miss out identify #include something like #include stdio.lib or? Please help me! thanks! I have been posting entries but none of the expert solved this. So hope you do, thanks! By the …

Software Development c++
Member Avatar for Lerner
0
117
Member Avatar for samsons17

hi there, I got a software hacking questions which I guess the files were written in C# ..Each of the files will pop out a dialog box which will ask us to enter a string or something..if the string we entered is correct, then the status will be changed into …

Software Development c# engineering
Member Avatar for BobS0327
0
338
Member Avatar for ZainabJuma

How do I add an animated picture to the Splash screen in vb.net 2008 my picture is .gif and when i setup the form's backgraound the picture dosent move. hepl me pls

Software Development vb.net
Member Avatar for ZainabJuma
0
907

The End.