43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for dellat

Please tell me where it goes wrong as the following C++ code gives the error message: **addem.cpp:5: error: too few arguments to function int addem(int, int)** `#include <iostream> using namespace std; int addem(int, int); int main() { int x=5; int y=2; int z; z = addem(x+y); cout << "The value …

Software Development c++
Member Avatar for dellat
0
385
Member Avatar for RonKevin

//Ok so here's my plan so far please check if i'm on the right track guys! thanks! #include<iostream.h> #include<cstring.h> #include<conio.h> struct BuyerInfo { int id; string fn; string mn; string ln; string ad; };BuyerInfo info; void menu() { cout<< "\n================================================================================"; cout<< "\t\t\n WELCOME BUYER!Please fill in the following\n"; cout<< "\n================================================================================"; …

Software Development c++
Member Avatar for RonKevin
0
234
Member Avatar for Stagnant

So my program uses the list template as the towers and the values in them are disks. I used the push and pop methods with loops to display changing values due to user input. > Rules of the game: > 1. All disks are stacked into an initial tower. > …

Software Development c++ gaming queue
Member Avatar for WaltP
0
3K
Member Avatar for anisha.silva

so i have 4 list of words. what i want to do is for each list go through it and count the number of occurance the word has in the list and print the first 10. when it comes to saving the word and the number of occurance, how do …

Software Development queue
Member Avatar for anisha.silva
0
233
Member Avatar for chris007

Hi guys. I have a problem.. i am trying to transfer files from one computer to an other(yes i did port forwarding)..the thing is that if i use 1024-1(buffer) and 1024-1(buffer) in both programs it will NOT transfer any file..it will just create a file with 0kb. size.. So if …

Software Development client-server socket-programming vb.net
Member Avatar for chris007
0
1K
Member Avatar for nitin1

#include<stdio.h> int main() { char a[60][60],b[60][60],i=0,n1,m1,n2,m2; int x,y; int j=0; char c; int p=-1,q=-1,f=-1,g=-1; scanf("%d%d",&n1,&m1); for(i=1;i<=n1;i++) scanf(" %s",a[i]); scanf("%d%d",&n2,&m2); for(i=1;i<=n2;i++) scanf(" %s",b[i]); for(i=1;i<=n1;i++) { for(j=1;j<=m1;j++) { if(a[i][j]=='1') { p=i; q=j; break; } } if(p>0 || q>0) break; } for(i=1;i<=n2;i++) { for(j=1;j<=m2;j++) { if(b[i][j]=='1') { f=i; g=j; break; } } if(g!=-1 …

Software Development c
Member Avatar for np complete
0
131
Member Avatar for plasticfood

So i have a class that takes 2 generics types: public class Something<K,V>.... In another class, i'm trying to create an array of Something objects. how do i do this? i'm getting an error with this: Something <K,V>[] s = (K,V[]) new Object[size];

Software Development java
Member Avatar for plasticfood
0
219
Member Avatar for london-G

Hello, I would like to retieve data into my combobox. I have done this so far but when I click on the button it's not giving me anything: public void displayItem(int data1) { String sql = ("select * from Students limit ?,1"); try { st = (PreparedStatement) con.prepareStatement(sql); st.setInt(1, data1); …

Software Development java
Member Avatar for london-G
0
275
Member Avatar for jontennyeah

for example i have 4 columns in the listview namely name,age,year and grade. the problem is this, how can i display an error message when i click the row when the grade = "fail" . help me please thank you :)

Software Development display listview vb.net
Member Avatar for Begginnerdev
0
381
Member Avatar for dcdruck

Hi. I am currently in a position where I am having to learn Perl in the context of developing a website using Embperl. I am at a point where I have a few subroutines that I would like to try off-loading to a separate file and then including that file …

Software Development perl
Member Avatar for dcdruck
0
167
Member Avatar for Dendei

Hello, just wondering if there is another event i can use for when you are done writing to the textbox the normal textchanged event goes in play everytime you change a letter. i need the event to go in play when im done writing and for example start writing in …

Software Development
Member Avatar for Dendei
0
356
Member Avatar for Tulsa

Hello I want to array with key and valu in vb.net as like in php [code] $array['name']="xyz"; $array['surname']="abc"; [/code] so is this possible ? please any suggestion. Thanks in advance

Software Development vb.net
Member Avatar for PisqoLoq
0
258
Member Avatar for mbasit

The New Wave Computer Company sells its product, the NW-PC for $675. In addition, they sell memory expansion cards for $69.95, disk drives for $198.50, and software for $34.98 each. Given the number of memory cards, disk drives, and software packages desired by a customer purchasing a NW-PC, print out …

Software Development c++
Member Avatar for mbasit
0
330
Member Avatar for aabbccbryanmark

This is the error i get.. Enter employee name: Bryan Enter employee's salary: 123 Enter employee name: Mark Enter employee's salary: 456 Enter employee name: Fajutag Enter employee's salary: 789 Enter employee name: qwe Enter employee's salary: 32 Enter employee name: qew Enter employee's salary: 312 Enter employee name: qew …

Software Development java
Member Avatar for stultuske
0
432
Member Avatar for RonKevin

Grocery Point of sale system... -advises only, thanks! So here it is: 1. The system should have an ability to store up to 100 records. 2. Provide the following POS Application: a. Scan Buyer's Items-i'm not really sure about this one..is this where i'l input the barcodes of the //items …

Software Development c++
Member Avatar for RonKevin
0
360
Member Avatar for anisha.silva

hi, how can i check for a word that has noncharaters in it, as like sdf4df, 4rtrt, 909erter, appreciate a reply, thanks

Software Development
Member Avatar for anisha.silva
0
119
Member Avatar for Patrick.Barklem

Hi there, im relatively new to python and i just can't figure out parameters... Any help with this code? def main(): getInputs() answer = calculateWork() print (answer) def getInputs(a,b): num1 = int(input("Please enter your first number: ")) num2 = int(input("Please enter your second number ")) return num1,num2 def calculateWork(): return …

Software Development python
Member Avatar for vegaseat
0
161
Member Avatar for somjit{}

this is a code from the book "the C programming language" by dennis ritchie, but for some reason its not working! #include <stdio.h> #define IN 1 /* inside a word */ #define OUT 0 /* outside a word */ /* count lines, words, and characters in input */ main() { …

Software Development c
Member Avatar for WaltP
0
199
Member Avatar for triumphost

How can I figure out where words intersect in the following? AAAA#BBBB .#.##C##H .#.##D##I .#...E.#J ##.##F##K ###..G..L '#' represents the black spots in a crossword where you cannot fill in. '.' represents the spots with missing letters that need to be filled in. I've read the puzzle into a vector<string> …

Software Development c++ puzzle
Member Avatar for deceptikon
0
426
Member Avatar for crownedzero

So I'm parsing a CSV and trying to create a new object from each record. Using BufferedReader != null runs thru the file just fine. Now I use string.split method to put each line into an array. Ideas on how to use the values in the array to create the …

Software Development java
Member Avatar for Taywin
0
260
Member Avatar for gelmi

Good Day i just wanted to ask what does (x1, y1, x2, y2) in g.drawLine in creating a line in java applet.. thanks in advance

Software Development java
Member Avatar for JamesCherrill
0
292
Member Avatar for sampsont

Is method B any faster than method A below? I have legacy code written with method A and I need to know if there would be a performance increase if I modified it to use method B or is it just semantics? **Method A (Using pointer)** for(vector<TriggerAlgorithm*>::iterator it = _pTrigs.begin(); …

Software Development c++
Member Avatar for Ancient Dragon
0
212
Member Avatar for Dean_williams

Hello. I am having a tough time understanding the concept of double linked list. For now, i understand double linked list has 2 links, one forward and another one previous. data is in the middle. when inserting must check where to insert. if previous is equal to null, then can …

Software Development c linked-list programming-construct
Member Avatar for Dean_williams
0
239
Member Avatar for Bumpehh

so i decided to try sfml, and i used the sample from the website to see if its working. heres the code //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// #include <SFML/Window.hpp> //////////////////////////////////////////////////////////// /// Entry point of application /// /// \return Application exit code /// //////////////////////////////////////////////////////////// int main() { // Create the main window …

Software Development c++
Member Avatar for m4ster_r0shi
0
159
Member Avatar for Dendei

Hello all nice coders :) i have a question about a function i have that uses an class as input. hmm prob easier to explain after i show some code! class customer { public string number, name, phone; public void newcustomer(customer custom) { //write to a database //using the strings …

Software Development
Member Avatar for nmaillet
0
183
Member Avatar for Dizzy Noob

Hello, I am struggling to find out what im doing wrong in this code. I am new to programming and i am stuck. Ive altered my original code after finding great help online but i am stuck...again. any help will be greatly appreciated. public class CreateDelivery { public static void …

Software Development java
Member Avatar for stultuske
0
121
Member Avatar for softswing

Hi, How to do the custom FindBugs in Eclipse. I want to catch the specific bus from code

Software Development java
Member Avatar for peter_budo
0
82
Member Avatar for bdl365

So i'm having troubles writing the codes for the following exercise - Write a C++ program that does the following. 1. Asks the user to enter some positive integers. 2. Reads the positive integers from the user. 3. Stops reading the positive integers once a non-positive integer is entered. 4. …

Software Development c++
Member Avatar for bdl365
0
2K
Member Avatar for lulu79

Hi, i'm a newbie and get stuck with this problem for a few days. I have datatable with two column, line and duration. I want to sum the duration based on the line group. For example: LINE DURATION A1 00:05:20 A1 00:07:00 A1 00:02:10 A1 00:01:50 A2 00:02:01 A2 00:03:45 …

Software Development dataset open-source oracle vb.net
Member Avatar for lulu79
0
9K
Member Avatar for dmose13

So I'm just getting started in C++ and need some help. I want to right a program that inputs a number as n and then outputs digits 0-9 based on n. Also each row adds one more number until the last number is the number of digits of n. For …

Software Development c++
Member Avatar for dmose13
0
140
Member Avatar for littleEuler

def main(): celsius = float(input("What is the Celsius temperature? ") fahrenheit = (9/5) * celsius + 32 print ("The temperature is ", fahrenheit, " degrees Fahrenheit.") main() error output: Syntax Error:(line 8) fahrenheit = (9/5) * celsius + 32 This makes perfect sense to me. How can i fix this …

Software Development python
Member Avatar for hughesadam_87
0
110
Member Avatar for chuyauchi

My Android preference (menu) is not opening a new activity. When I click the 'menu' button on the emulator, I can see my 'Setting' option. However, when I click the 'Setting', the setting page is not showing. There is no error and warning. Thank you for your time. I am …

Software Development android android-development java
0
66
Member Avatar for Michael27

How to print portion of the List<int>, it contains 30 elements but i only want to print first 7 elements? List remains unchanged but is should only prints first 7 elements of the list

Software Development c#
Member Avatar for Michael27
0
109
Member Avatar for london-G

Hello, I have my JFrame and I want to ve a sliding menu on the side that will not be visible until someone click on a button. I have divided my JFrame into two containers but don't know how to proceed. Something a bit similar to this: http://www.andrewsellick.com/examples/sliding-side-bar/#

Software Development java
Member Avatar for Majestics
0
200
Member Avatar for DelilahDemented

I'm learning as I go here, but I'm stuck at the moment. I am trying to dynamically create a datagridview and populate it from a database using SQL. I have created my columns, but I don't know how to assign the data coming out of my sql query to its …

Software Development open-source sql vb.net
Member Avatar for DelilahDemented
0
1K
Member Avatar for HibaPro

what is the run time error 424 , object is Required and how i can solve it ...

Software Development visual-basic
Member Avatar for AndreRet
0
423
Member Avatar for rahul.ch

Given: Sour extends Blue extends Pan `Pan p4 = new Sour();` Then set of 6 new statements given and asked to choose which ones will compile. They are: 1. `Pan p5 = p4;` 2. `Pan p6 = (Blue)p4;` 3. `Blue b2 = (Blue)b4;` 4. `Blue b3 = (Sour)p4;` 5. `Sour …

Software Development java
Member Avatar for JamesCherrill
0
200
Member Avatar for complete

How do I do a get/post for an array in c#? In C#, you get and set variables like this: `public int ID { get; set; }` How would one get and set an array in C#? This will not work: `public uint [5] BIG_Hash {get; set;}`

Software Development c# first-post
Member Avatar for ddanbe
0
544
Member Avatar for king03

hi guys just wanted to ask how I can add numbers in string form, I tried to add them but instead of getting 9 I get 36. here's how I tried it: Compute comp = new Compute(); comp.Bet = betTextbox.Text; comp.Funds = fundsTextbox.Text; betTextbox.Text = "6"; fundsTextbox.Text = "3"; Convert.ToInt32(betTextbox.Text); …

Software Development
Member Avatar for laurachaitow
0
127
Member Avatar for linabeb

hi... i would like to ask im using vs 2010...and i would like to create a vb.net with it... i have google everything n everywhere about this one particular thing... i create my project as below open vs 2010 > new project > i choose windows form application(as shown on …

Software Development vb.net
Member Avatar for linabeb
0
121
Member Avatar for kipslem

Please help, I have a small application which has a MS Access as backend, and the front end is developed using VB.Net 2008. When I click on the listview item and then click delete button to delete a particula list and its content on the database, it is giving me …

Software Development listview vb.net
Member Avatar for klooonhie
0
2K
Member Avatar for Koji01

i want to know how to read all the message inside the file including their spacing,indents if possible using File Handling... can that be done? content of data1.txt: First Name: (TAB)John Doe Last name:(TAB) Manly Height:(TAB) 5'7 Weight:(TAB)164 kls Address:(TAB)Somewhere but here, (TAB)but not to far City. here is my …

Software Development c++ file-system
Member Avatar for Koji01
0
236
Member Avatar for ShEeRMiLiTaNt

Hello, I need to write a program that takes a string and reverses it via pointers. I have a function called Reverse and what it does is take to pointers (*front and rear*) and intializes them to the front and back of the char array respectively. Then what it does …

Software Development c++
Member Avatar for ShEeRMiLiTaNt
0
201
Member Avatar for horserider

how do i get the full path of running process in task manager.

Software Development vb.net
Member Avatar for demafioso
0
522
Member Avatar for cmstoner

In my program, I have a section to insert information about a customer into an Access database. I get the error below at the .ExecuteNonQuery. Message: System.Data.OleDb.OleDbException (0x80004005): Field 'Customer.Business_Phone' cannot be a zero-length string. at System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(OleDbHResult hr) at System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult) at System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult) at System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& …

Software Development microsoft-access sql vb.net
Member Avatar for cmstoner
0
841
Member Avatar for O_mini

Hello, thanks for taking the time to read this. I'm working on (what should be) a simple, simple java program, I am very new to java so please bear with me. I'm writing code with a method that takes an array of int values and determines if all the numbers …

Software Development java
Member Avatar for Taywin
0
3K
Member Avatar for JavaPrograms

How do I put the following output in a table format as shown below in the code?

Software Development java
Member Avatar for JavaPrograms
0
263
Member Avatar for khalidshakar

** Please Help. When I call this class, it causes the program to stop responding? Actually I used a button must be clicked to start call the class in another class to run it. after I press that button it causes the program GUI to stop responding. I am developing …

Software Development gui java
Member Avatar for JamesCherrill
0
3K
Member Avatar for ss123456

i have a database consisting of a table PROJECT(p_id,p_name,P_manager) i am using oracle 9i as my backend and auto increment is possible only through triggers and sequence. instead i would like to retreive the data p_id onto a combo box. simply put- when i add data into my table PROJECT …

Software Development oracle visual-basic
Member Avatar for AndreRet
0
2K
Member Avatar for HibaPro

i have two row in my dataGridView one store the labour working hour (Time) and the other one is store the cost of one working hour , i need to multiply these two row but its give me this error : operator * is not defined for type timespan and …

Software Development vb.net
Member Avatar for HibaPro
0
620

The End.