132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for jonnyboy12

Hello all. I am working with managed c++ ,cli. I am working on a large project and cannot afford to make any mistakes. In cli from what i have seen usually when i construct classes i use this ^ character to do so, like this [CODE] //header file public ref …

Software Development c c# c++
Member Avatar for Ancient Dragon
0
221
Member Avatar for Bawen

hey guys ive been given a peice of work which i totally forgot about, its due tomorrow and i have no idea what im doing, can any of you guys help me out there please, as i will be learning how to use java after i hand this work in …

Software Development client-server java machine-learning
0
103
Member Avatar for learner15

If the class members declared public and the class itself is specified as default access ( Package access), then can the public members of that class be used in another package? I am asking this because .. as far i know class which is not specified as public cannot be …

Software Development java microsoft-access
Member Avatar for NormR1
0
194
Member Avatar for wallet123

[CODE]import sun.audio.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.io.*; public class Sample { public static void main(String s[]) { JFrame frame = new JFrame (); frame.setSize(200,200); JButton justin = new JButton ("Click Here for Welcoming"); frame.add(justin); justin.addActionListener(new AL()); } public static class AL implements ActionListener{ public final void actionPerformed(ActionEvent …

Software Development audio java java-swing
Member Avatar for TIM_M_91
0
243
Member Avatar for Susmita_Sikder

hallo everybody, i am doing program in dev c++ 4.9.9.2,but problem is that when i run a program under one project which contains more than one programs then it gives a warning.." project is not compiled".where i am wrong..please give me solution. thank you in advance

Software Development c++
Member Avatar for Ancient Dragon
0
174
Member Avatar for tendaimare

i ve got two radiobuttons one labelled male and the other labelled female and a client is supposed to choose which gender they are and insert it into the other database along with other information. I want to know how I can insert the chosen value (male or female) into …

Software Development open-source vb.net
Member Avatar for Mitja Bonca
0
141
Member Avatar for floatingshed

I have selected several files with the open multiple files dialog: [CODE][[u'C:\\Documents and Settings\\Administrator\\My Documents\\My Pictures\\chord.jpg'], [u'C:\\Documents and Settings\\Administrator\\My Documents\\My Pictures\\toad1.jpeg', u'C:\\Documents and Settings\\Administrator\\My Documents\\My Pictures\\21369.jpg', u'C:\\Documents and Settings\\Administrator\\My Documents\\My Pictures\\g2.jpg']][/CODE] I want to display the selected files in a nice user-friendly way. Just the filenames, each on a separate …

Software Development python
Member Avatar for floatingshed
0
73
Member Avatar for Mike Askew

Does anyone know if this is possible and if so how I would go about it, as it has currently got me stumped completely! Thanks in Advance, Mike

Software Development
Member Avatar for Mike Askew
0
103
Member Avatar for utkarshsahu

I wanted to write a program to check if string entered is a palidrome. I wrote a program but i get errors while compiling. Can anyone help me identify errors in the program. [CODE] #include<iostream> #include<string> int main(){ string input;bool flag=false; cout<<"Enter String: "; cin>>input; cout<<"You Entered "<<input; int length= …

Software Development c++ mathematics
Member Avatar for utkarshsahu
0
184
Member Avatar for strRusty_gal

Hi everyone, Its weird. Only UPDATE sql statement cannot process and others like INSERT, select can work.. i used UPDATE sql statement in c# but the record that i wanted to update isnt update at all.. here my code.. i am using ms access [CODE] OleDbConnection connDBString = objDB.GetDatabaseConnection; connDBString.Open(); …

Software Development
Member Avatar for Mitja Bonca
0
320
Member Avatar for poojavb

Hello Friends.... I have a patient registration form in my project...in which I have to browse the image of the patient save it in the database and when I need the details of the patient again the uploaded image should also be displayed.... Please help me in this... I have …

Software Development display image vb.net
Member Avatar for poojavb
0
113
Member Avatar for biojet

Hi all, I have one problem. I have two value ($gia and $name1) and now I want to do it become one value to run in the next step.Ex: [CODE] $gia =12 $name = Tai $gia =$gia.$name out put : 12Tai[/CODE] But I hope the data will sepera two colums …

Software Development perl
Member Avatar for biojet
0
425
Member Avatar for uva1102

[ICODE]protected override void OnPreInit(EventArgs e) { base.OnPreInit(e); switch (Session["role"].ToString()) { case "X": MasterPageFile = "X.Master"; break; case "SS": MasterPageFile = "SS.Master"; break; default: MasterPageFile = "XS.Master"; break; } if (Session["role"].ToString() == "SS") { btnSearch.Enabled = true; rbSerial.Checked = false; rbName.Checked = false; } else { btnSearch.Enabled = false; } } …

Software Development session
Member Avatar for Mitja Bonca
0
184
Member Avatar for djextazy

As this is my first post on this forum I want to say "Hello!" to everybody and I hope that we'll help each other as much as we can and we'll be very good friends. :) So, this is my problem ( a rather simple one but I don't know …

Software Development c first-post
Member Avatar for hust921
0
208
Member Avatar for jayadan

i dont know what mistake i have done here i could run the prog but i am not getting the o/p so guys pls help me and this is the coding if any corrections is need pls let me know and if possible change and send me the correct prog …

Software Development apache java programming-construct
Member Avatar for stultuske
0
278
Member Avatar for thehunk

i have a combobox i want to show all the student name in it , i am using mssql database , and when we select student a textbox will show the rollno of that student , please help me

Software Development mssql vb.net
Member Avatar for thehunk
0
138
Member Avatar for sridhar.selva

hi can u ppl help me on this. can i use multiple enums in a single c program, if so is there any constrain on it? [CODE]enum pattern1 {red, green, yellow} pt1; enum pattern2 {orange, blue, black} p2; enum pattern3 {white, grey, violet} p3;[/CODE] is this possible????

Software Development c
Member Avatar for sridhar.selva
0
166
Member Avatar for ayershuja

using circular link list by using class Class Employee { Eid integer ; Ename string; Esalary real ; Edesignation string ; } how we can do following operation: Create a link list Insert a node after a specific node with a given Eid Insert a node before a specific node …

Software Development c c# c++
Member Avatar for jigglymig
0
117
Member Avatar for jigglymig

I am trying to make the heapSort function I wrote work with the heapRebuild I was given. If someone could please tell me what exactly I am doing wrong or help point me in the right direction. [CODE]void Heap::heapRebuild(int root) { // if the root is not a leaf and …

Software Development c++
Member Avatar for jigglymig
0
242
Member Avatar for Panathinaikos22

Hello, First of all, VC++ use .NET FW? it means is totaly High language... i dont get the point to learn VC++ when i can use C#, both language use .NET FW, so the reason of "speed" doesn't metter. VC++ & C++ are totaly diferent things... well im ok with …

Software Development objective-c
Member Avatar for dioioib
0
172
Member Avatar for 06070827

Hello! My friend recommended that I try this site if I needed advice on my programs, so I thought 'hey, why not?'. I'm working on a program that is to draw shapes and store them in arrays. I kinda can't figure out how to make my print functions work correctly. …

Software Development java
Member Avatar for 06070827
0
184
Member Avatar for pitamber

Hello, I was just wondering how i could write a TicTacToe program in java without arrays. I am new to programming and i don't know lot of stuffs, so any help would be appreciated Thanks

Software Development java
Member Avatar for pitamber
0
1K
Member Avatar for jayadan

I runned my arithmetic operations with double data type and i got o/p for postive,negative and decimals nos and if i am using three pont decimal no(0.0005) means i am getting as (2.5E-7 & 4.0E-4) two diff nos and this is my code [ICODE]import java.io.*; public class arithmetic { public …

Software Development java
Member Avatar for jayadan
0
178
Member Avatar for Zennie2005

Modify the Inventory Program: Create a new method that calculates the value of the entire inventory. Create another method that sorts all of the array items alphabetically (ascending order) by the product name. o The application should declare and use an array to store 5 items. This array will represent …

Software Development data-structure java printer
Member Avatar for Zennie2005
0
161
Member Avatar for ilovejava

This is my code for adding and removing from a binary tree but apparently its not complete can anyone tell me what to do to make it complete tree? [CODE] public void add(IBinaryTreeNode<E> e) { if (getRoot() == null) { setRoot(e); } else { //SAME HERE IBinaryTreeNode<E> node = getLastNode(); …

Member Avatar for ztini
0
251
Member Avatar for timosoft

i need on how to draw a simple bar chat on my form like the picture below. for A B C D. Each time it draw at random. all % should be equal to 100%.

Software Development vb.net
Member Avatar for timosoft
0
418
Member Avatar for shopnobhumi

Hi i have just started my c++ class and really having hard time with that.i was assigned to draw a graph which should look like dis : ***** ***** ***** ***** ***** This is what i am trying but getting only this result : ***** * * * * Please …

Software Development c++
Member Avatar for kavita_gunaji
0
811
Member Avatar for kiail

I'm trying to make a bubble sort to sort numbers like 3.2, 5.8, etc(double / float numbers). I have this code so far, but I'm still trying to learn and don't know why my code isn't working the way I think it should. Any help is appreciated. [CODE]using System; using …

Software Development app-store
Member Avatar for Momerath
0
274
Member Avatar for Quicxic

Hello, I have a problem with a header I'm trying to make. In Main.cpp, I have this function to store the combinations of the elements of vector S: [CODE=c++]template <class T> vector<vector<T> > combinations(vector<T> S, ll k) { vector<vector<ll> > combs = ncombinations(S.size(), k); vector<vector<T> > setcomb(combs.size(), vector<T>()); for(unsigned int …

Software Development c++ ui-ux
Member Avatar for Quicxic
0
202
Member Avatar for sudhanshu12788

Hi, I want to read a file from the command line and remove all the spaces, tabs in it, replacing it with comma(,), and write it to a new file. can you help me out with this scenario.

Software Development shell-scripting
Member Avatar for deepkw
0
212
Member Avatar for rfrapp

Hello, I need to demonstrate the binary search using recursion, and I've run into a little problem. In my example, if "key" was 1, 2, 3, or 6, then it would return true. Anything else would give me an error. Why is that? Here's my code: [CODE] // binary search.cpp …

Software Development c++ seo
Member Avatar for rfrapp
0
257
Member Avatar for outout1234

I want my program to just continue as long as the user press any key How do we do it with only use of scanf?? for example: int main(void) { while(1) /*my program goes here*/ printf("Hit any keys to continues......"); scanf // how? }

Software Development c
Member Avatar for Arch Stanton
0
179
Member Avatar for triumphost

Am I wrong that the answer is 2?? Teacher refuses and says that it's 3 because the compiler spits out 3 for ans.. but if I do it manually with pen an paper or with the cout<<v2%v1++, it spits out 2 which is what I get on paper.. [CODE] #include …

Software Development c++
Member Avatar for mike_2000_17
0
319
Member Avatar for sfurlow72

When trying to run, the compiler tells me that I cannot access the private data members. I'm just curious as to what's causing this error. Here's my class declaration: [CODE] #include <iostream> #include <string> using namespace std; #ifndef SALARY_H #define SALARY_H class Salary { public: const int getDepNum(); const int …

Software Development c++
Member Avatar for sfurlow72
0
138
Member Avatar for nik2012

Hello. I am learning C++, and I am a little stuck. Right now, I'm working on pointers. The problem I'm working on requires sorting an array of structures, using pointers instead of array indices, using a selection sort. My code is not working, and I can't quite figure out why. …

Software Development c c# c++
Member Avatar for nik2012
0
1K
Member Avatar for CriticalError

So I been stuck with this problem for quite a few days. Since I used VB.net as my first language C# is quite difficult for me. In VB.net when you needed to refer to a different control on a different forum you would write something like Form1.Mainmenu etc In C# …

Software Development
Member Avatar for Momerath
0
162
Member Avatar for ozzyx123

hi everyone i am very new to programming and really need some advice. i am currently building a program and one of the things i need is to be able to count the number of pages in pdf files in a directory. i found a script online which is suppose …

Software Development pdf python
0
178
Member Avatar for Gsterminator

Hello community, I have an issued converting a arithmetic string called the infix, into a prefix output. In one of my methods i have an infinite loop. An example would be (a + b) * (c - d)===> * + a b - c d Here is my code: [CODE] …

Software Development java
Member Avatar for Gsterminator
0
1K
Member Avatar for az_master

please i need a code that can help me search records from a table in vb.

Software Development visual-basic
Member Avatar for ChrisPadgham
0
220
Member Avatar for summey

I want to split the following into a Main class and do all the math in a mortagecalc class The Arrays are tripping me up im not sure how to pass these to another class. Thank you [CODE]package mortgageCalc; import java.text.DecimalFormat; public class Mainbkp { /** * @param args * …

Software Development java
Member Avatar for summey
0
148
Member Avatar for GTTravis

I have four crystal reports already created. I want to incorporate those reports into an application whereby when a user clicks on a menu item the report opens in a new tab providing that it is not opended already. i would be grateful if i can have some insight from …

Software Development vb.net
Member Avatar for GTTravis
0
119
Member Avatar for renzlo

Hi All, I want to build an application that will navigate a website that contains user login form and automatically logged to it and retrieve data from it's table. Is this possible? What would be my best approach here. Thanks in advance. -renzlo

Software Development vb.net
Member Avatar for Mitja Bonca
0
159
Member Avatar for flaviu_xdv

I recently made a c# printer management tool that uses a WCF service which contains [URL="http://msdn.microsoft.com/en-us/library/windows/desktop/aa394363%28v=vs.85%29.aspx"]WMI Win32_Printer[/URL] methods like [URL="http://msdn.microsoft.com/en-us/library/windows/desktop/aa384769%28v=vs.85%29.aspx"]AddPrinterConnection [/URL]and [URL="http://msdn.microsoft.com/en-us/library/windows/desktop/aa393291%28v=vs.85%29.aspx"]SetDefaultPrinter[/URL]. Everything works fine if both the client and the WCF service run on the same machine. But if i try to move the WCF service on another machine, …

Software Development client-server printer
Member Avatar for flaviu_xdv
0
1K
Member Avatar for R.S.Chourasia

Hi, I have two list of any datatype supported by python. I want to check whether the any of the element of first list is present in second list or not. Example: I have a = [4,5,6] b = [1,3,8,6,7,9] I want to check whether any element of a is …

Software Development python
Member Avatar for TrustyTony
0
6K
Member Avatar for surajrai

hi, I have two class say class A and class B. Now the methods in class B are used only by class A. When I checked class B, I found that few methods are static and few methods are internal. Can you sugest me is it fine ? Or since …

Software Development
Member Avatar for skatamatic
0
241
Member Avatar for crazy99

Hello Sorry if this is confusing I'm really new to python and have been stuck trying to figure this out for hours now. I'm trying to write a function for a text based battlship game. I need the function to do this is_occupied: (int, int, int, int, list of list …

Software Development python
Member Avatar for crazy99
0
376
Member Avatar for allan2020

Hello All, I have a java assignment thats supposed to create a memory game, with 10 rows and 10 columns.50 images have been supplied. The part i'm stuck is the the window with the actual images on the grid.The images are supposed to be generated randomly each time the application …

Software Development java java-swing
Member Avatar for NormR1
0
190
Member Avatar for tom12

[CODE]void RemoveVowels(char *str) { int i = 0; int lenght = strlen(str); for(i=0;i < lenght-1;i++) { if (str[i]=='a' || str[i]=='e' || str[i]=='i' || str[i]=='o' || str[i]=='u' || str[i]=='A' || str[i]=='E' || str[i]=='I' || str[i]=='O' || str[i]=='U') { str[i]=' '; } } } [/CODE] Hey guys having trouble trying to remove …

Software Development c++
Member Avatar for tom12
0
90
Member Avatar for MegaMan15

Make a program that reads some text and produces as output the distribution of words that start with dierent letters. I recently wrote a program that would count how many times a certain letter would show up, but I am not sure how to look to see at the first …

Software Development python
Member Avatar for TrustyTony
0
222
Member Avatar for emreozpalamutcu

I'm trying to make a little disk cleaner program and I couldn't figure out how to display the results of scanned directory on list view tool on windows form application. I have a 3 columns and these are File Name, Folder Path and File Size. I want the program to …

Software Development c++ display file-system
Member Avatar for Tumlee
0
193

The End.