132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for deepakyadav1830

i want to add the value in map to a float value what should i do?

Software Development java
Member Avatar for BestJewSinceJC
0
253
Member Avatar for GeorgeFarr

I am connecting an access mdb format and cannot display the values from the database table onto a form in vb . I need also to enter values to the same database. I appreciate any help anyone can provide as I am new to all this. I did the same …

Software Development vb.net visual-studio
Member Avatar for c0deFr3aK
0
86
Member Avatar for ashkash

I have an array with 6 items and I need to generate all permutations of lengths 4, 5, and 6. For example, if my array has a, b, c, d,e, f then permutations of length 4 would be: abcd abce abcf ... pemutations of length 5 would be: abcde abcdf …

Software Development
Member Avatar for ashkash
0
194
Member Avatar for Sky Diploma

Hey all, I have decided that in order to learn i will need to write code. So i am working on all the questions on my book. And as I am teaching myself i end up with no-one to scrutinize my code. [code=c++] #include <iostream> /************Declarations of Functions*********/ void func1(); …

Software Development c c# c++
Member Avatar for lqdo
0
358
Member Avatar for mini programmer

Hello to every body I hope every one keep in best state. I want to help me in solve this problem in my Sheet IN TREE structuring If I use pointer to root of tree, it make run time error . I need to this pointer in 4 function [CODE]int …

Software Development c++
Member Avatar for mini programmer
0
113
Member Avatar for sivak

what is mean by query optimization in sql? dint get proper answer in google

Software Development sql
Member Avatar for jojobar
0
113
Member Avatar for Sky Diploma

Hi all, I have defined a function cat which takes in 2 cstring arguments and returns out a pointer to a new cstring which cocatenates the 2 strings I am having 2 problems with it. the cout statement doesnt work and secondly i get a runtime error while i delete. …

Software Development c++ ubuntu
Member Avatar for Ancient Dragon
0
192
Member Avatar for bobber205

Been following ([url]http://codeidol.com/csharp/csharp-network/Asynchronous-Sockets/Using-Asynchronous-Sockets/[/url]) to help me learn the ins and outs of Asynchronous communcation. However, when I pass my "Server" socket to my callback function and when it gets there it says its disconnected. My BeginConnect and EndConnect work ok so far. Below is the appropriate code. What do I …

Software Development c# client-server http-protocol
Member Avatar for Acedia
0
525
Member Avatar for de-de

An amateur meteorologist wants to keep track of weather conditions during the past year's three month summer season and has designated each day as either rainy(R), cloudy (C) or sunny (S). Write a program that stores this information in a 3x30 array of characters, where the row indicates the month …

Software Development c++
Member Avatar for Ancient Dragon
0
2K
Member Avatar for eyewirejets

I have a subclass with 4 attributes and a subclass with 3 attributes. I want to store my subclass instances in a list. Can I have one list for both of them or do I have to create another list because the number of attributes is different? Thanks !

Software Development python
Member Avatar for targ
0
93
Member Avatar for strickenUK

The program is suppose to write and then read data from the binary file and use seekg to display specific data depending on what is entered by the user. It displays the correct information when 1 is entered but not 0. Any help would be greatly appreciated. [CODE]#include <iostream> #include …

Software Development c++ file-stream ios
Member Avatar for strickenUK
0
852
Member Avatar for christiangirl

Hey, So I am having this problem with this code. I think the problem is that shortpath[0].distance is being set to 0, and so never going into the if statement of updatepaths() therefore messing up the whole program. But I don't know why it is being set to 0. Here …

Software Development c++
Member Avatar for christiangirl
0
134
Member Avatar for Lukezzz

I wonder for the folder: C:\\WINDOWS\\system32 What I try to do in C++ is to create and read a file from this folder by using this call to that specific folder. [code] System::Environment::GetFolderPath(Environment::SpecialFolder::System) [/code] What my question is, is if this folder can be locked at some computers. Is it …

Software Development c++
Member Avatar for Lukezzz
0
195
Member Avatar for lorayyne

I can't get the math to work in this program. The 'coinflip' flips a coin until it finds either the sequence heads-tails-tails or heads-tails-heads. My issue is that when I run it, the program will perform way more trials than told, and will only account for a random few in …

Software Development python
Member Avatar for woooee
0
215
Member Avatar for cassie_sanford

I am supposed to be working on this problem that stores info in a 2x20 array of characters where the row indicates the month and the column indicates teh day. We have to read in from a file and then create a report that displays for each month and for …

Software Development c++
Member Avatar for mini programmer
0
569
Member Avatar for amerninja2

1. Can it be used in a C++ program other than with HTML? 2. Can a program communicate with a website with it? -Program update check? -Stream video/picture? -Send Text to website which is instantly displayed to users?

Software Development xml
Member Avatar for amerninja2
0
90
Member Avatar for Trinimini

Hey, I'm relatively new to C++, started a few days ago and I'm new to this forum community as well. I made a simple program where the computer asks you for your name, then age, followed by your hometown and your occupation (in that order). It works fine, but there's …

Software Development c++
Member Avatar for Trinimini
0
110
Member Avatar for LucyB

Can anyone recommend a good resource for revising for my c++ exam? Thanks

Software Development c c# c++
Member Avatar for hawash
0
106
Member Avatar for Crago3

[code=cplusplus] #include <iostream> #include <iomanip> using namespace std; int main() { char again; do { // Define the varibles char letter = 0; // Tell them to enter a lower case. cout << "Enter an lowercase letter: "; cin >>("%c", &letter); // Check whether the input is lowercase and // …

Software Development c++
Member Avatar for tux4life
0
256
Member Avatar for mreynol5

I can not remember how to use the C# equivalent of "FIND" to locate a character's position in a string. Once I find the position I am searching for a Substring method to extract up to that. Can anyone point me to some documentation?

Software Development c#
Member Avatar for ndeniche
0
159
Member Avatar for legendarya49

I'm trying to determine if the characters in the maze can escape, the characters are labeled by their initials except for D which is the door here is the input data: 11 13 7 10 XXXXXXXXXXXXX X JX AX X XXXX XXXXBX X X X SX X X X XXXX …

Software Development c
Member Avatar for jephthah
0
204
Member Avatar for gyu12345

hi guys, need help urgently on extracting data from text file and compute it. i'm suppose to sum up the highest temp and divide them by 7 to get an average decimal. only display data on compiler without calculating the average sum. ok here is my code. #include <iostream> #include …

Software Development c++ file-system
Member Avatar for tux4life
0
153
Member Avatar for quetzal_7

Hi all, Ok, so I obviously have an issue with how I'm thinking about accessor methods. In the following code, why are the printed out values equal? MyClass.h: [code] #ifndef MYCLASS_H_ #define MYCLASS_H_ using namespace std; class MyClass { friend ostream &operator<< (ostream &stream,MyClass const &rhs); public: MyClass(); MyClass(int); MyClass(MyClass&); …

Software Development c++ ubuntu
Member Avatar for quetzal_7
0
112
Member Avatar for Jarrex

So for my last assignment i have to create a program that allows the user to input 100 foods, enter calorie amount and then using bubble sort and binary search it has to be able to display them back to the user. I have all of this done except the …

Software Development c++
Member Avatar for SLORE
0
327
Member Avatar for transplantedNYr

I am new to java and many of the nuances to this language. For my class assignment we need to finish our methods which I have already done and do not want any help with. What I need help with is reading the data from the file with in "main". …

Software Development file-system java
Member Avatar for transplantedNYr
0
160
Member Avatar for FandaR

Hi, i need to school some C code. Requirements are: Use in code some Functions with parameters, pointers, strucutres and global and private variables. Dont you have some code for it? I havent time to do it. Thank You very much.

Software Development c
Member Avatar for Narue
0
83
Member Avatar for klactose

Hi, I am trying to make a gui in which I import and combine 4 seperate classes JPanel classes that I made into one interface. But I am running into an obstacle that I am uncertain about. Here is the situation: 1. I have container using a BoxLayout that has …

Software Development gui java
Member Avatar for klactose
0
179
Member Avatar for esesili

Hi all, I am trying to write a simple program but I am having an error message that I am working on it for three days. The aim of program is to convert entered value depending on the clicked radio buttons. Please can someone help me about it ? Thanks, …

Software Development java java-swing
Member Avatar for JamesCherrill
0
149
Member Avatar for faniryharijaona

Hi All, I've got a problem with the python class. I want to create a list of object of type obj() and link them such that the next of one object is the next in its place order. I tried this construction [code] class obj: ------def __init__(self,cargo=None,next=None): ---------------self.next = next …

Software Development linked-list python
Member Avatar for faniryharijaona
0
111
Member Avatar for lolaabbydawn128

Somebody help me build this program, its sort of challenging...Instructions say to store player's name, number and points scored by each player...Program should keep an array of 12 of these structures, each element is for a different player ona team...program should ask user to enter the data above for each …

Software Development c++ data-structure
Member Avatar for siddhant3s
0
134
Member Avatar for eyewirejets

How do you call a method from the main() from a module to print base class attributes. Objects are contained in a list. Module [CODE] def show_employee(self): print 'Employee Name: ', self.__employee_name print 'Employee Number: ', self.__employee_number [/CODE]

Software Development python
Member Avatar for eyewirejets
0
86
Member Avatar for super.mina

if i have this matrix 37107287533902102798797998220837590246510135740250 46376937677490009712648124896970078050417018260538 74324986199524741059474233309513058123726617309629 91942213363574161572522430563301811072406154908250 23067588207539346171171980310421047513778063246676 89261670696623633820136378418383684178734361726757 28112879812849979408065481931592621691275889832738 44274228917432520321923589422876796487670272189318 47451445736001306439091167216856844588711603153276 70386486105843025439939619828917593665686757934951 62176457141856560629502157223196586755079324193331 64906352462741904929101432445813822663347944758178 92575867718337217661963751590579239728245598838407 58203565325359399008402633568948830189458628227828 80181199384826282014278194139940567587151170094390 35398664372827112653829987240784473053190104293586 86515506006295864861532075273371959191420517255829 71693888707715466499115593487603532921714970056938 54370070576826684624621495650076471787294438377604 53282654108756828443191190634694037855217779295145 36123272525000296071075082563815656710885258350721 45876576172410976447339110607218265236877223636045 17423706905851860660448207621209813287860733969412 81142660418086830619328460811191061556940512689692 51934325451728388641918047049293215058642563049483 62467221648435076201727918039944693004732956340691 15732444386908125794514089057706229429197107928209 55037687525678773091862540744969844508330393682126 18336384825330154686196124348767681297534375946515 80386287592878490201521685554828717201219257766954 78182833757993103614740356856449095527097864797581 16726320100436897842553539920931837441497806860984 48403098129077791799088218795327364475675590848030 87086987551392711854517078544161852424320693150332 59959406895756536782107074926966537676326235447210 69793950679652694742597709739166693763042633987085 41052684708299085211399427365734116182760315001271 65378607361501080857009149939512557028198746004375 35829035317434717326932123578154982629742552737307 94953759765105305946966067683156574377167401875275 88902802571733229619176668713819931811048770190271 25267680276078003013678680992525463401061632866526 36270218540497705585629946580636237993140746255962 24074486908231174977792365466257246923322810917141 91430288197103288597806669760892938638285025333403 …

Software Development c++
Member Avatar for siddhant3s
0
276
Member Avatar for nhamyl

i wrote this program and i want display 0, if the character entered is not an alphabet (!@#$% 5 or any other non alphabet) can i have a quick solution #include <stdio.h> void main () { char char1,char2; printf("\tEnter first character :"); scanf("\t%c", &char1); printf("\tEnter second character :"); scanf("\n\t%c", &char2); …

Software Development c++
Member Avatar for JameB
0
3K
Member Avatar for kelechi96

Ok so I want to create some code which can generate a random number from a 1. Music file 2. A microphone PLEASE is their anyway i can do this

Software Development c++
Member Avatar for jephthah
0
456
Member Avatar for zyaday

I have many projects in a software. Although some files and classes are shared within these projects, there are classes used by most of these projects. How do i creat classes that can be shaed among different projects . Is there anything in java that can function the same as …

Software Development java vb.net
Member Avatar for kvprajapati
0
197
Member Avatar for mem81

Hi guys, I am experiencing a problem with a variable I declare. If I pass on a real value that the variable might contain code works ok , but if I leave the code to get the variable as decalred it doesn`t. What my code is doing is checking if …

Software Development vb.net
Member Avatar for nexocentric
0
74
Member Avatar for TriceD

Hi all, I'm facing some difficulties with the [b]getchanges [/b]method of a datatable... In my program, I have a standalone datatable which I'm using as the datasource to a datagridview. When I make changes to the datagridview, and I use the [b]getchanges(DataRowState.Modified)[/b] method, I get [b]Nothing[/b] as the result, no …

Software Development vb.net
Member Avatar for TriceD
0
2K
Member Avatar for edi843

My problem is a little strange. I have a clas let say classA. In the classA i have a method with tha name MethodA. I have anaother class called classB that derived from classA. I want to override methodA of classA, but not with the name methodA, but with a …

Software Development
Member Avatar for edi843
0
90
Member Avatar for sivak

if we use virtual keyword in base class but not using override keyword in derived class what will happen?

Software Development
Member Avatar for tnind
0
61
Member Avatar for ammenme

hi please can some1 help me out with this project,this is the project write a program to process a set of student marks. Each line of the input file follows this format: a name (which may be considered as a unique key for the purpose of this assignment) followed by …

Software Development java
Member Avatar for Helma
0
196
Member Avatar for drfcool

Basically i'm creating a software to calculate the shorting distance between two graphs. I use dictionarys to organize this information I sort the path's as keys , each key has different paths according to the given inputs through the command: PrintByDistance. The inputs are made through the command: `insert:company:City1:City2:Distance` Company …

Software Development algorithm python
Member Avatar for faniryharijaona
0
358
Member Avatar for blondie.simon

When I install my application I would like a shortcut to be added to the desktop. How can i do this? I am running Visual Studio 2005 Standard Edition Thanks Simon

Software Development vb.net visual-studio
Member Avatar for kishorrana
0
122
Member Avatar for marco01

Hi Everyone, Days that I'm on that problem. I have to calculate a substitution score. Below my code: [code] public void calcSubstitutionScore() { substitutionScore = (average + examMark) /2; } [/code] I previously created the method average, and I try to add to it examMark divide by two, which is …

Software Development java
Member Avatar for marco01
0
105
Member Avatar for Dia.A

I have completed an OOP course using C++ and each student has been asked to do an end term project, so that they make use of all things that was learned, like ( operator oveloading, inheritance , polymorphisms, files, templates) and every thing that can support the project. I want …

Software Development c++ oop
Member Avatar for tux4life
0
300
Member Avatar for benatschool

Hi, I am working on a Java assignment of developing a University diploma program as follows: uni-diploma (one-to-many) diploma-module(one-many) module-lectures(one-many) lecture-student(many-many) class [I]uni[/I] contains TreeSet diploma all set and get methods for adding each new diploma in the set and association to class diploma. class [I]diploma[/I] contains TreeMap module all …

Software Development java
Member Avatar for javaAddict
0
117
Member Avatar for arunasingh

sir i am developing application in windows so i want that when i serach data that data then that data is dislpayed indatagridview when i am doing that thecvdata is displayed but there is one blank row created in gridview below that row:means that suppose in first row of gridview …

Software Development vb.net
Member Avatar for arunasingh
0
101
Member Avatar for anujsharma

Hi, Am anuj joined community today itsel.I have written a code which generates alpha numeric charaters and stores it in(file1).Then read the generated stuff 4 characters in file(by reading from file1)and appending "-" after 4 characters until "$" is encountered.I am getting an extra "-" in the file please tell …

Software Development c
Member Avatar for jephthah
0
448
Member Avatar for Undermine

Hello i'm rather new to Python and I was wondering how I could do a menu to prompt the user to choose a number and execute a certain part of code based on his choice. For example: please choose an option 1) 2) 3) then based on users input, it …

Software Development python
Member Avatar for Gribouillis
0
124
Member Avatar for grisha83

Hello,I have a user input and trying to write a precondition that will give an error if the user inputs number or some other odd character (except ' and .) I am thinking of writing and if statement that if my search method finds anything like that it will prompt …

Software Development java
Member Avatar for grisha83
0
82
Member Avatar for DotA

I'm learning GUI, can anyone show me how to display an image on a panel. So far I have this: [code=java] import java.awt.*; import java.awt.event.*; import java.awt.image.*; import java.io.*; import javax.imageio.*; import javax.swing.*; import java.applet.*; public class JlabelDemo { public static void main(String[] args) { // create an image icon, …

Software Development gui image java java-swing
Member Avatar for VernonDozier
0
135

The End.