132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for d87c

I ran into problem for my school assignment and it is to display whatever in a meal.csv file, here is a code we are starting with. The array string of itemDetails is where the data is store then passed into array ReadLines, then in Main, it is passed to mealContent, …

Software Development c#
Member Avatar for JerryShaw
0
116
Member Avatar for bryans2010

There's something wrong with this code. I must implement the TestScores class, but I know I am missing something. /** TestScores class */ import java.util.Scanner; // Needed for the Scanner class // For use in CodeMate, the TestScores class is not declared to be // public. Normally the class header …

Software Development java
Member Avatar for NormR1
0
195
Member Avatar for Mitja Bonca

I would like to do an application which would be used for calling to all kind of telephones (stationary, mobile) from a pc, using internet. Anyone has any advice where to start and what to use? I read some stuff that I would need to use TAPI app. development. Application …

Software Development
Member Avatar for cottom
0
294
Member Avatar for moni94

Hi. I'm making a space game and I need the spaceship to shoot bullets. So in order to make this happen I need a collection which can allow the following: 1.Adding an object (so that we can shoot new bullets) 2.Looping through and modifying all the objects (so that we …

Software Development
Member Avatar for Momerath
0
113
Member Avatar for mrblippy

hi everyone, i am trying to write a java program that assigns a specified number of true values to random elements in an array. for example if i have a boolean array of 10 elements i would like 5 of these elements to be randomly assigned true values. im new …

Software Development java
Member Avatar for mrblippy
0
1K
Member Avatar for aar0n

hi, i've been working on this problem for way too long and i can't find the answer. here's my code: [code=c] #include <cstdlib> #include <iostream> using namespace std; int main(int argc, char *argv[]) { int N; int M; int i; cout << "Input a positive integer: "; cin >> N; …

Software Development c++
Member Avatar for Dazaa
0
200
Member Avatar for viji.cs

Hai everyone, I have one doubt... Can u please clarify this... If i put char a[10]="hai-hello" [I][CODE]if(strcmp(a[4],'-')==0)[/CODE][/I] then it will displays an error [B][I]strcmp' : cannot convert parameter 1 from 'char' to 'const char *'[/I][/B] Wat is the reason for this? Can anybody tell me

Software Development c
Member Avatar for viji.cs
0
76
Member Avatar for percival

please help me in making a voting system. dont know how to tally the votes in c++.

Software Development c++
Member Avatar for Valaraukar
0
198
Member Avatar for xVent

Hello , i would like to add a hover text when i have my mouse in fronnt of the image , not from the properties because i want to add some code on it .. it could be like 150x40 or more or less in size .. i would like …

Software Development vb.net
Member Avatar for AndreRet
0
282
Member Avatar for nidhik

can a file other than a .h file be included with #include

Software Development c
Member Avatar for Dazaa
0
66
Member Avatar for keeda

I saw an example of friend class on [url]www.cplusplus.com[/url], please find it below: [CODE] // friend class #include <iostream> using namespace std; class CSquare; class CRectangle { int width, height; public: int area () {return (width * height);} void convert (CSquare a); }; class CSquare { private: int side; public: …

Software Development c++
Member Avatar for keeda
0
99
Member Avatar for MxDev

Hi Guys, How to attach richTextBox object to ICSharpCode.TextEditor library?? I couldn't find any code for this purpose. Any help appreciated. Thanks in advance.

Software Development
Member Avatar for Xmblpb
0
1K
Member Avatar for Garrett2011

Beforehand I know how to define a macro in a file like header file by using #define directive but I want to know, regarding Visual C++ compiler, is there any kind of file which is specifically used to hold a macro so that we can use it anywhere in our …

Software Development c++ file-system
Member Avatar for Garrett2011
0
217
Member Avatar for matlark

Hello, I am writing the code for a cash register, and I have searched the site and nothing comes back that helps me, it basically has to take the change and break it up to the fewest 100's, 50's, 20's, 10's, 5's, and 1's. I have already written the cout …

Software Development c c# c++
Member Avatar for suiluj
0
741
Member Avatar for karthiken07

Can any one give me an idea for compare these two values in double data type. I hope this if check always gets FALSE, Unfortunately It is TRUE condition. IF you know any solution,Plz suggest to me. # include <stdio.h> int main() { double g = 51.200000000000007; double h = …

Software Development c
Member Avatar for N1GHTS
0
168
Member Avatar for burcin erek

error message is seen on the goto statement. did I miss library ? this is a part of script. #include <cstdlib> #include <iostream> #include <conio.h> using namespace std; int main() { int a = 0, b = 0, c = 0; cin >> a >> b >> c; //assume error …

Software Development c++
Member Avatar for burcin erek
0
225
Member Avatar for tusharforever

Hi Folks, In my case i am passing the void pointer which will be assigned with some memory to the firmware; in return firmware will fill this void pointer and returns. My requirement is i have parse this filled data. But data filled by the firmware is complex. e.g it …

Software Development c
Member Avatar for tusharforever
0
302
Member Avatar for muzikhera

Hey guys can someone help me with this one? I have 4 forms namely Splash screen, Main, Login and Main1. In the first run the program will view the Splash screen then the Main form then the Login form and after the Main1. The problem is i cant close the …

Software Development
Member Avatar for prvnkmr449
0
81
Member Avatar for 7h3.doctorat3

Hello, i need help to convert any 1, 2, or 3 digit number into words using string/array method in C++. For example, 111 should read one hundred and eleven, 011 should read eleven, 001 should read one. I would much appreciate it if you could help me solve this problem. …

Software Development c++
Member Avatar for prvnkmr449
0
776
Member Avatar for aaronmk2

When I compile I get this error message for istream error: no match for 'operator>>' in 'in >> ((Rock*)this)->Rock::myName' I did not include the program with main because I have not used it yet. [CODE] #ifndef ROCK_H #define ROCK_H #include<iostream> using namespace std; enum RockName {BASALT, DOLOMITE, GRANITE, GYPSUM, LIMESTONE, …

Software Development c++
Member Avatar for r.stiltskin
0
111
Member Avatar for devel2000

when I run my program in GCC ,there are some problem apperes to me ,,I need help to make it run !!Plz #include<stdio.h> [CODE]#include<stdlib.h> #include<string.h> #include<math.h> // Declare a few variables char InputString[32], type; int NumValue, sum=0, Length, result; int main() //main function { printf("Type in a number:"); if(!gets(InputString)) printf("You …

Software Development asp c
Member Avatar for sree_ec
0
215
Member Avatar for Covinus

ive been searching google for any tutorial about loading bitmaps and paint it in a window. so far the tutorials ive read was loading it from your resources. I want to paint a bitmap from where you will choose a file from a file dialog and the you will draw …

Software Development c++
Member Avatar for alexchen
0
96
Member Avatar for XodoX

I want to do the following: [quote] You will create a C++ program that will count the number of operations of two common recursive functions.This operation count will be basically estimate time complexity T(n). You have to find the g(n) to get O(g(n)). The program takes as input n, some …

Software Development c++
Member Avatar for XodoX
0
145
Member Avatar for zulhimi89

i want to create a system that will trigger alert based on few condition, my condition is: the alert will trigger if there is a negative value for 2 consecutive years. example: 1)negative amount for 2005 2)negative amount for 2006 here is the code that i have for now and …

Software Development vb.net
Member Avatar for zulhimi89
0
110
Member Avatar for kadvar

Hi, Given a sentence, I'm trying to check if all the individual constituents of a word are present in it and if they are then do some further processing. I can't seem to get the logic to work. [CODE]wordlist = ['England area','Germanic 6th'] mysentence = 'The area now called England …

Software Development python
Member Avatar for kadvar
0
101
Member Avatar for bunifrog

Hey guys I am stumped. My code worked fine until I added the calculations: [CODE]else{ interestRate = rate[choice]; termLoan = tYear[choice]; }[/CODE] :\Users\Mom\Desktop\DuttonWeek4.java:252: incompatible types found : double required: javax.swing.JTextField interestRate = rate[choice]; ^ C:\Users\Mom\Desktop\DuttonWeek4.java:253: incompatible types found : int required: javax.swing.JTextField termLoan = tYear[choice]; ^ 2 errors Tool completed …

Software Development gui java java-swing
Member Avatar for NormR1
0
174
Member Avatar for vegetarian.

Hello, I am currently new to C# and am working with a large project. I need to loop through a datagrid, take the user-entered data, and insert it into a database table so I can pull the data from other forms. It is supposed to work when the user clicks …

Software Development
Member Avatar for slavedogg
0
666
Member Avatar for Chalandria

I have tried to figure this out and am having major problems with math pow. Any help would be great... This project deals with reading input from the user, storing the input into variables and displaying those variables. This program is an introductory project into the basic data types of …

Software Development java
Member Avatar for coil
0
217
Member Avatar for RockOwnedYou

I'm trying to figure out how to transfer several methods in a cash register into one void method. Here is my code. /** * A cash register totals up sales and computes change due. */ public class CashRegister { private double purchase; private double payment; /** * Constructs a cash …

Software Development java
Member Avatar for coil
0
246
Member Avatar for vienne

I'm having problem with sound file(*.wav) In a form, when i click a button, i want to call sound file and play this file. How can i do? Help me!~~~

Software Development
Member Avatar for slavedogg
0
173
Member Avatar for mchin131

I have a program where I'm supposed to have someone input a word and I have the program leave the first and last letters stay while everything else becomes randomized. I pretty much have the program working, but I don't know how to ignore the first letter. This is all …

Software Development c++
Member Avatar for VernonDozier
0
3K
Member Avatar for awmantonio

Hi everyone! I have an installment payment program which have Hijri date (Saudi Arabia) and I already have the code for it's converter inside the forms (using datetimepicker for the Gregorian & maskedtextbox for the Hijri). I'd like to know how can I convert or produce the corresponding equivalent Hijri …

Software Development microsoft-access vb.net visual-basic
Member Avatar for lolafuertes
0
793
Member Avatar for TinhornAdeniyi

This is my instructions [ATTACH]17319[/ATTACH] [ATTACH]17320[/ATTACH] and i am using Dev-C++ 4.9.9.2 and i am using the Mingw compiler i am a beginner. and this is my code. [CODE]#include <iostream> #include <iomanip> using namespace std; void everything(); int main() { everything(); system("pause"); return 0; } void everything() { int a,b,k,sum; …

Software Development c c# c++
Member Avatar for mitrmkar
0
220
Member Avatar for arjen

hello guys i need help how can u get the data in to two tables in one form. This code works but the problem is like in combobox2.text the data is display twice and also in inEmployee.text the data is display 4 time both are combobox so when u click …

Software Development vb.net
Member Avatar for lolafuertes
0
184
Member Avatar for cogitoergosum18

hello there, i need to get 7 different values for a resistor from the user, then add them up. how will i go about doing so? do i store each value the user gives me all in different variables? or is there a way to store them into a single …

Software Development c++
Member Avatar for mrnutty
0
205
Member Avatar for reza.adinata

Hi I trying to create a script for creating a simple folder and subfolder. So basically i am in directory \home\ and want to create folder1, and afterwards subfolder 'folder2'. so at the end, I am expecting to have a simple \home\folder1\folder2. This is what I did [CODE]#!/usr/bin/perl -w use …

Software Development perl
Member Avatar for reza.adinata
0
249
Member Avatar for jatt09

hi I need a code that allowed the user to enter 4 digit in the textbox then replace each digit with the result of adding 7 to the digit and getting the remainder after dividing the new value by 10. then swap the first digit with the third and swap …

Software Development visual-basic
Member Avatar for AndreRet
0
82
Member Avatar for Auraomega

Just wondering how I can get the time the program was compiled into my code dynamically, I'm guessing it'll be through my makefile somehow but my Google-fu has failed today. Any help would be great! (GCC + make *only*)

Software Development c
Member Avatar for nezachem
0
133
Member Avatar for YATHAVANATH

import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.sql.*; class NewUser //extends Variable implements ActionListener { JInternalFrame ifrm; JLabel lbleid,lblena,lbleadd,lbletp,lbleage,lbluse,lblpas,lblcat; JTextField txteid,txtuse,txtena,txteadd,txtetp,txteage,txtpas; JButton btnadd,btndelete,btnclear,btnsearch,btnupdate; JComboBox cmbcat ; public JInternalFrame display() { JInternalFrame ifrm=new JInternalFrame("User Process",true,true,false,false); // ifrm.getContentPane().setLayout(null); ifrm.setSize(600,600); ifrm.setLocation(0,0); ifrm.setResizable(false); ifrm.setDefaultCloseOperation(ifrm.DISPOSE_ON_CLOSE); ifrm.setVisible(true); JPanel p; p=new JPanel(); p.setLayout(null); //pic =new JLabel(new ImageIcon("Employee.jpg")); …

Software Development java java-swing
Member Avatar for adams161
0
102
Member Avatar for humantaco

Can anyone post the code to these? 2.1 Banner Write a program that outputs your unique name (no longer than 8 characters) in large capital letters that are composed of asterisks ”*” and spaces ” ” in a 6 × 6 For example, my unique name is: unix-prompt >> ./a.out …

Software Development c c# c++ unix
Member Avatar for Fbody
0
154
Member Avatar for humantaco

2.1 Banner Write a program that outputs your unique name (no longer than 8 characters) in large capital letters that are composed of asterisks ”*” and spaces ” ” in a 6 × 6 For example, my unique name is: unix-prompt >> ./a.out 2.2 Escape this! Write a different program …

Software Development c c# c++ unix
Member Avatar for Fbody
0
163
Member Avatar for kramerd

I have a complex UI with little screen real estate, so I'm trying to allow users to manage contents of a combo box using a right-click context menu. But I'm having trouble getting the combo box's drop down list to appear at the same time as the pop-up menu. I've …

Software Development html-css java java-swing
0
105
Member Avatar for Kromletch

I am working on a C++ program that wants me to read in 52 unsorted states. All the states have randomly Capitalized letters.The objective is to sort the states in alphabetical order by the last letter of the state. Case sensitivity is the least of my problems but i am …

Software Development c c# c++ objective-c
Member Avatar for Fbody
0
272
Member Avatar for Barca

Hi, I know this is asking for much and I'm being lazy but I have an ASCII text file with multiple rows of text. each row contains the name of the city followed by a ">" and then the countries name. I wanted to know if its possible to have …

Software Development c++
Member Avatar for Barca
0
159
Member Avatar for patrick772goh

I am using Visual C++ 2003, Previously i am using this to call test.dll stored in the root directory folder name root1 and in the sub folder root2 [code]HINSTANCE result = NULL; result = LoadLibrary(L"..\\root1\\root2\\test.dll");[/code] It work fine in normal OS. When i run in Win XP regional language setting …

Software Development c++
Member Avatar for Mr.What
0
392
Member Avatar for NathanMc

Hello. I'm currently working on a C++ assignment where I need to calculate a student's GPA from a text file containing 4 grades and the corresponding credit values for the class. I know how to write the program to get the correct GPA, but I am having problems figuring out …

Software Development c c# c++
Member Avatar for NathanMc
0
320
Member Avatar for Sandhya212

Hi, My requirement is to identify '-' in string1 and delete those corresponding locations in string2. The logic I am implementing is that 1. find the locations in string1 where '-' occurs 2. At these locations, insert spaces in string2 and then 3. have string2 without spaces. I managed to …

Software Development python
Member Avatar for TrustyTony
0
127
Member Avatar for akmalhisyam

I have question, why when I don't put the "inFile.ignore()" line, the program doesnt work. What is the thing that the line ignore? [code=c]while(1){ inFile.getline(name,50); inFile>>ass1>>ass2>>ass3; inFile.ignore(); if(inFile.eof()) break; cout<<name<<" "<<ass1<<" "<<ass2<<" "<<ass3<<endl; }[/code] here is the content of the input file : akmal 3 2 1 akmal hisyam 1 …

Software Development c++
Member Avatar for akmalhisyam
0
3K
Member Avatar for kez1985

Hi I recently started using python for work and was tasked with creating a mailer script for one of our linux servers. I found a number of good examples on the web for different mailer app implementations and eventually came to the code below. Can anyone advise me on good …

Software Development python web-server
Member Avatar for TrustyTony
0
195
Member Avatar for NicAx64

This program will use arc-consistency to remove the invalid values from the variable domain and generate the permutations for the 8 queen problem. Here is the source code with the make file. chessboard.h [code] #include <iostream> // uses std::cout std::cin #include <stdlib.h> #include <stdio.h> // uses exit(0) and fprintf #include …

Software Development c++
Member Avatar for Ancient Dragon
0
654

The End.