43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for jakesee

hi, just want to ask, is it possible to restrict friend acess to a single class member function only? in other words, if class A grant class B friend access to class A member function, then class B can call that class A function. *note: this is suppose to be …

Software Development c++
Member Avatar for dkalita
0
135
Member Avatar for markhuz

Please help with my assignment, our teacher told us to write a code in c++. 1.Enter 15 students and their general average. 2.List the top 10 students with a highest general average. thank you very much for helping me.

Software Development c++
Member Avatar for markhuz
-1
147
Member Avatar for xyz12

Hiiiii I m making an window application, in which i have written some text in the text property of the form, but i want that when application is running, in that case form text should not be displayed..... And i don't want to use the form property: FormBorderStyle-->None, Because in …

Software Development
Member Avatar for xyz12
0
114
Member Avatar for fazzer2

Hello people I have jusrt recently started to study C/C++ and I am using Borland 5.02. I am having a problem examining my outputs. when I run a successfully compiled program the Dos window that I should read my print from flashes on then flashes off:'( and I do not …

Software Development c++
Member Avatar for fazzer2
0
157
Member Avatar for snakay

Hi All, I often tend to fetch data from datasource using DataReader , these are usually a single data or single record of data cases. Within same method I reach to several datasource tables, each using datareader. This is awkward and cumbersome. Is it possible to create a class to …

Software Development
Member Avatar for snakay
-1
198
Member Avatar for goboman

ok so im making a program that finds postage rate according to its weight and category. The category is standard for weights under 50g and other for over 50g. If the user enters a weight out of its category it will say error and close. and it only works for …

Software Development python
Member Avatar for jice
0
90
Member Avatar for avirag

I have made an application in which there are two textboxes such that as I am writing in first textbox ,it automatically appears in second textbox. Like for enter key we can apply any functionality on enter key press event ... Is the same thing possible for spacebar key too...... …

Software Development
Member Avatar for avirag
0
908
Member Avatar for Superfat

Is there a way to tack a variable onto the end of a print.drawString so it would show up like Text: <variable> Or: [CODE]page.drawString ("Text: " object1, x, y);[/CODE] Where object1 is the variable. I tried doing that, but i get an error ")" Expected on that line, i suspect …

Software Development java
Member Avatar for tonyjaa
0
104
Member Avatar for KimJack

Hi all, I wondering how to get started with this. I am working on a method that will take two ints. These ints represent positions in an arraylist of characters. I am trying to determine if the elements of the two positions are equal. If, so display the elements, if …

Software Development java
Member Avatar for masijade
0
161
Member Avatar for Nishara

I am using C#.net.I want to delete a datarow from the sql server database table when the delete button is clicked.Specific row should be selected according to a text field value.Say user enters a userID to a text box...then he clicks delete button to delete the relavent row. Please help …

Software Development sql
Member Avatar for sknake
0
99
Member Avatar for triumphost

Ok the code below is supposed to edit a file called license.dat and replace texts in it... it works great it does all that but I want to implement user input in it. By this I mean I want the user to be able to enter the drive letter for …

Software Development algorithm c++ engineering ios
0
80
Member Avatar for new programer

Hello all, As my name indicates, I am a new programmer. I was doing a program which calculates the roots of a quadratic equation but unfortunately there seems to be something wrong as it ignores my if statements! Please take a look at my code and I'd appreciate your help

Software Development c++
Member Avatar for new programer
0
79
Member Avatar for scrace89

[CODE]# This file contains python code that will determine whether a potivie range # of integers entered by the user will contain odd or even numbers, prime or # composite numbers, perfect/abundant/deficient numbers, square numbers, and # triangular numbers. def main(): import math firstNum = 0 secondNum = 0 n …

Software Development python
Member Avatar for Gribouillis
0
582
Member Avatar for StaticX

Hi ,im having a problem with my do while loop,basically I want it to loop so long as the users attempt is less than 10. However,it just doesnt want to seem to let me do this.Ive tried putting the "attempts++" several places through the loop as i thought this might …

Software Development c++
Member Avatar for bennie22
0
146
Member Avatar for triumphost

Below is the code that I have to find the Mac address of any pc (physical host ID) I struggle to make it print to a file but now i have a problem... It prints MAC Address: XX-XX-XX-XX-XX-XX to C:\\Physical-Address.txt but I only want it to print the XX-XX-XX etc …

Software Development c++ data-structure file-stream file-system
Member Avatar for triumphost
0
146
Member Avatar for froggy1976

Good evening, I am writing a program in C++ for a Tic tac toe game. Here are my directions: Create a C++ console application that allows two players to participate in a tic-tac-toe game. The program will be responsible for deciding who wins the game. The program should include the …

Software Development c c# c++
Member Avatar for froggy1976
0
329
Member Avatar for Star Frost

I have been struggling with this one for a day now and I cant seem to figure out if my problem is syntax or simple impossibility. The function in question looks something like this: [CODE] string *function( string temp[] ) { string sides[ 4 ]; // code return sides; }[/CODE] …

Software Development c++
Member Avatar for Star Frost
0
127
Member Avatar for george21

I am getting an error that says "The type Chapter165 must implement the inherited abstract method ActionListener.actionPerformed(Action Event). Can someone help me with where I went wrong? [CODE] import java.awt.*; import java.awt.event.*; import javax.swing.*; class Chapter165 extends JFrame implements ActionListener { private JTextField inputMile = new JTextField(10); private JTextField outputKm …

Software Development java java-swing
Member Avatar for BestJewSinceJC
0
3K
Member Avatar for red999

I am writing a program that reads from a file that contains a list of appointments and then put them into an dynamic array named day. I am having trouble figuring out what is exactly wrong with my program. It keeps on crashing before it finishes reading the file. I …

Software Development c
Member Avatar for red999
0
124
Member Avatar for number87

I got a question about c++ strings. Let's say string text = "0R14" and I access each element using text[0],text[1] etc does text[0] return an integer 0? or a character '0'? if it doesn't return an integer, how do I convert individual string element to integer type if I need …

Software Development c++
Member Avatar for number87
0
165
Member Avatar for lapassion

Hello everyone... I'm having a problem with RichEdit and its default scrolling behaviour. When a new line is added to a RichEdit (via a Timer OnTimer event), it autoscrolls to the bottom, which is fine. The problem is, while it scrolls to bottom, it also resets the horizontal scrollbar to …

Software Development pascal
Member Avatar for lapassion
-1
278
Member Avatar for farsen

Hi. I have this console based Asynchronous VS project that works fine. And then i have a remoting project which also works fine. I want to edit the remoting project so it is non-blocking, using asynchronous calls. I´ve tried different examples, but I cant get it to work. None of …

Software Development client-server
Member Avatar for farsen
0
367
Member Avatar for avirag

I need one more help DdoubleD.In my application I have applied functionality for searching various string(form text) which are the combination of characters and math symbols. Now for varoius symbols like squareroot, cuberoot , fraction, exponent, power,we cannot enter them directly from keyboard.So I have made form text in such …

Software Development
Member Avatar for DdoubleD
0
112
Member Avatar for saradha

hi all, i am new to c# ... i seek your help for a code snippet which can validate a form that is using asp tags like text box,a read only text box with a calendar control associated with it,a submit button which when clicked must validate the above said …

Software Development c#
Member Avatar for saradha
0
120
Member Avatar for lotrsimp12345

Don't think you can pass any parameter unless you create a point in your main. [CODE] template<class T> void my_list<T>::show_sllist(my_node<T>* p) { if(p!=0) { cout<<p->data; show_sllist(p->next); } } [/CODE] Would i have to create a pointer of type my_node in main to show the list. [CODE] #include <iostream> using namespace …

Software Development c++ linked-list
Member Avatar for dkalita
0
104
Member Avatar for Nickair

Hi i am looking for a good C compiler for windows vista. I found Visual Studio C++ 2008 express edition, will this work if im writing in c?

Software Development c c++ visual-studio windows-vista
Member Avatar for Nickair
0
103
Member Avatar for lotrsimp12345

problem is that it prints out backwards, can't figure out a way to flip it. prolbem is with numbers[siz-1] which begins at last index not first. [CODE] template<class T> T my_vector<T>::show_vector(unsigned int siz) { if(siz==1) { cout<<"enter size of array is 1\n"; return numbers[0]; } else { cout<<"enter this statement"<<endl; …

Software Development c++
Member Avatar for lotrsimp12345
0
89
Member Avatar for wyett

So, I created a program that allows a user to create student, delete student, display all students, search students, and quit. They are labeled 1 - 5, respectively. However, if a user were to enter 1, create the student, be taken back to the main menu and typed in x. …

Software Development c++
Member Avatar for wyett
0
191
Member Avatar for avirag

Hi!!! I have made a window application in which when a string is entered in textbox , the related links are displayed in listview. Since ,there can be any number of links related to that string. So,I want to display only 5-7 links at a time in listview and on …

Software Development display listview
Member Avatar for avirag
0
146
Member Avatar for dqddani

Hello. This problem occured in a program that used dynamic memory, and the arrays were deleted and reallocated several times with varying length. It seemed to me that after deleting the arrays, the pointer is still pointing to some data with the same length. (And of course i didn't want …

Software Development c++ motherboards-cpu-ram
Member Avatar for jbennet
0
516
Member Avatar for StarZ

I copied this code from the textbook, so the code should have no mistake? I typed the contructor file(I think thats what its called) and the actual codes. So the code looks like this: [code]public class TestCircle { public static void main(String[] args) { Circle spot = new Circle(); spot.setRadius(5); …

Software Development java
Member Avatar for StarZ
0
405
Member Avatar for EntangledDesi

The InputBox function needs to be used in a command button to prompt the user for a number. I know that the syntax is ([I]prompt, title[/I]), where[I]prompt[/I] is the message you want displayed inside the dialog box [in this case - "Enter a number"], and [I]title[/I] is the next you …

Software Development visual-basic
Member Avatar for EntangledDesi
0
99
Member Avatar for prefer

Hi everyone! I think I'll be on here allot from now on, pretty useful forum, well done! Anyways, I'm doing a project for school and it's got me stuck. See I didn't understand the error message the compiler gave me at first, but then I read it on ...some website, …

Software Development delphi pascal
Member Avatar for House_of_Dexter
-1
257
Member Avatar for MrNoob

Hello here in k&r excerise of primitive calculator i get it and all but there something i think its weird and i don't somewhat get it here the getch and ungetch functions i don't get it's routine [code] #include <stdio.h> #include <stdlib.h> /* for atof() */ #include <ctype.h> #define MAXOP …

Software Development c
Member Avatar for MrNoob
0
314
Member Avatar for TomW

I have a Crystal Report which has a background made up to match a work form that needs to be filled out with data queried & processed from the database. The finished report has only five single field values and up to six detail records (three fields in each detail …

Software Development vb.net
-3
141
Member Avatar for persianprez

I'm to have the user input what classes they have taken and tell them what they have left to do. I have my for loop done but I feel like I need an array or something because they should have entered requirement for 6 different class types. Here is my …

Software Development python
Member Avatar for d5e5
-1
135
Member Avatar for djohnson82

Every time I write a code using Visual Studio for my C++ class, I keep getting reference linking errors and I dont know how to fix it. I have attached the code and the error that I keep getting. [CODE]// Fig. 3.7: fig03_07.cpp 47 // Instantiating multiple objects of the …

Software Development c visual-studio
Member Avatar for djohnson82
1
87
Member Avatar for NinjaLink

Hey, In my duplicateWords function, I have been trying to figure out for a couple of hours how to [U]create[/U] duplicates for 4 different names in the list. Will someone help lead me in the right direction in how to complete this task? My program is reading in 50 words …

Software Development c c# c++
Member Avatar for NinjaLink
1
217
Member Avatar for Frenzic

Hi, I'm stumped at this problem set and was wondering if anyone could guide me in the right direction or give me some hints on where to begin. I'm not looking for a full answer. Q: Write a program that computes and prints the 1000th prime number. Any help is …

Software Development python
Member Avatar for pysup
-1
98
Member Avatar for ShailaMohite

Hi I am create one application in which add some selected images into flowlayoutpanel but how to remove memory assigned to particular images in flowlayoutpanel [B]It give some error like this[/B] (the process can not access the file "C:\Images\xyz.jpg" because it is being used by another process)

Software Development
Member Avatar for Geekitygeek
0
127
Member Avatar for VidyaYadav

Hi, I have added no.of images(pictureboxes) in a flowlayoutpanel using openfiledialog. Now i want to remove the particular control at runtime but i am able to get the particular control. How can i name the pictureboxes while adding them in flowlayoutcontrol and after adding them how can i get the …

Software Development
Member Avatar for Geekitygeek
-1
2K
Member Avatar for DARK_BYTE

Hello I wrote a class Employee and a tester class TestEmployee.The problem is that I get this exception after I enter the first employee's id.I thght if I give default values to the instance field the exception shouldn't have occured; can someone help me with this please: Employee class: [code] …

Software Development java
Member Avatar for DARK_BYTE
0
151
Member Avatar for jen140

Hello all. I was trying to execute wget from the perl under windows vista. In cmd i can easily run wget because its in \windows\system32 folder. But from perl,when i try both system('wget --h'); and system('c:\windows\system32\wget --h'); i get the next error : 'wget' is not recognized as an internal …

Software Development perl windows-vista
Member Avatar for jen140
-1
94
Member Avatar for sonia sardana

I want to change the value & its backcolor of cell. On Button1_Click,I m adding records to the Gridview. On Button3_Click,I want to chnage the value of cell & its backcolor. Suppose two Rows & two columns are there in Grdiview 1 10 2 20 Suppose I want to change …

Software Development vb.net
Member Avatar for sonia sardana
0
117
Member Avatar for sonia sardana

I was asked Suppose there is table A in DB,Suppose when we update that table,whose are two tables(Magic tables) that are updated other than table A?

Software Development vb.net
Member Avatar for sonia sardana
0
247
Member Avatar for leokuz

[COLOR="Green"]I am trying to send email from VB.Net using code posted below in VB 2008 Express, but get one error "Syntax error" and it points to [COLOR="Red"][B]Imports System.Net.Mail[/B][/COLOR]. I also would like to include required by server authentication as well as to make confirmation message box disapear itself after two …

Software Development vb.net
Member Avatar for leokuz
-1
368
Member Avatar for rdevi

Hi all, I am new to Perl. I am trying to send a variable which contains the location of my executable (eg: C:\temp) to system function. i initialized the variable as, my var1="C:\\temp"; when i print this line i got : C:\temp as o/p. To start the executable i did: …

Software Development perl
Member Avatar for rdevi
0
133
Member Avatar for xWiredx

good day.. i have a problem in accessing my Access database in network.. I made an inventory system... i couldn't run the program simultaneously in two PC. i got this error >>> "could not use.. file already in used"... i thought it can use in network? is my coding have …

Member Avatar for xWiredx
1
81
Member Avatar for kahaj

For some reason, line 67 is saying, "variable ddOption may not have been initialized. However, on lines 80 & 93, that variable is used and works just fine. Any idea of what's wrong here? (I omitted some of the code in the middle section. [code] //ShapeCalculator.java import java.util.Scanner; public class …

Software Development java
Member Avatar for kahaj
0
119
Member Avatar for wyett

So, I am currently having 2 issues with my code. Problem 1: Any value entered in for the GPA that isn't a number causes an infinite loop. (example: enter in the letter X) Instead of giving an error message, it just goes into that infinite loop. [CODE]bool right = false; …

Software Development c++
Member Avatar for wyett
0
159

The End.