43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Auroch

Hello everybody! I'm trying to count the number of occurrences of each word in a text file. Problem situation requires to realize menu using "switch" statement (If file exist or not). There are following errors in my program ("case b" and "default" is not working): **[C++ Error] 03_int.cpp(61): E2126 Case …

Software Development c++ seo
Member Avatar for Auroch
0
986
Member Avatar for ddanbe

Hi, You can simulate this by starting a new WinForm app. Add a datagridview and add some columns. Add a contextmenustrip, add a menuitem, doubleclick it to get a clickhandler. Attach the menustrip to the datagridview in the properties window of the DGV. Then refer to this code and the …

Software Development gui vb.net
Member Avatar for ddanbe
2
3K
Member Avatar for MasterHacker110

I am working on a little hobby project, it reads user input and then stores it in a pointer to char array. The problem is that the output is not correct. So i dont know if it is the output, or the storing that is wrong. I am used to …

Software Development c
Member Avatar for MasterHacker110
0
323
Member Avatar for Auroch

Hello everybody! I'm trying to display the result of difference of two-dimensional vectors using friend overloading. Builder shows the following error after compilation (line 40). What should I change for in my code in order to find the problem? Thanks in advance. **[C++ Error] 05_Part.cpp(40): E2034 Cannot convert 'double' to …

Software Development c++ os-x
Member Avatar for Auroch
0
247
Member Avatar for 영휘

#include <stdio.h> void Merge(int *, int, int, int); void MergeSort(int *array, int left, int right) { int mid = (left + right) / 2; if (left < right) { MergeSort(array, left, mid); MergeSort(array, mid + 1, right); Merge(array, left, mid, right); } } void Merge(int *array, int left, int mid, …

Software Development c
0
88
Member Avatar for moaz.amin.37

postfix and prefix increment or decrement operators very very confusing for me i try my best but i can not understand the basic different between them plz help me i know The prefix form first performs the increment operation and then returns the value of the increment operation. The postfix …

Software Development first-post java
Member Avatar for sepp2k
0
473
Member Avatar for [NOPE]FOREVER

I have a php/mysql project and I am currently trying to display a table into an html table through PHP how ever Only the headers are getting returned not the actual table data, here is my query plus html table <?php $result = mysql_query("SELECT * FROM store"); echo"<table border = …

Software Development html-css mysql php sql
Member Avatar for [NOPE]FOREVER
7
192
Member Avatar for moodyR

Write a class Date which consists of: Member variables: day, month, and year Member function DaysSinceFirstJan1() which returns the total number of days since 01-Jan-0001. Now write a main function which asks the user to enter 5 dates (day, month, year) which are stored in an array of objects of …

Software Development c++
Member Avatar for ddanbe
0
227
Member Avatar for moaz.amin.37

what is command line argument in java and how it is work public static void main(String []args){ for (int i = 0; i < args.length; i++) System.out.println(args[i]); and what is .length in upper code. is it function no it is not function is it class no it is not a …

Software Development java
Member Avatar for stultuske
0
518
Member Avatar for cd88

Hi, I am stuck with this logical error and I was hoping someone could point me in the right direction. When I debug this program the array's do not contain the data from the textboxes that the user enetered. as far as I know the code is in the correct …

Software Development ide storage visual-basic
Member Avatar for cd88
0
273
Member Avatar for Youssef Mahran

Hello every one . . recently i have written this code to count letters and words in the phrase that the user enter , it worked once but when deleted (by mistake) and tried to rewrite it again it didn't work , so could you please help me to find …

Software Development c++
Member Avatar for Youssef Mahran
0
123
Member Avatar for nouth

path = './file.txt' os.remove(path) import os `os.remove(path)` is equal to `os.unlink(path)`, so how can I delete the file if it just becomes unlinked? Also I haven't tried to yet, but does `'./file.txt'` work as is or do I must provide the full path? Or do I just need to use …

Software Development file-system python
Member Avatar for Gribouillis
0
266
Member Avatar for LVZombie

Hello all, I am working on assignment for class and I thought I had this one but something is wrong. This is an inventory control program that needs to display 7 items with the item number, name, number in stock, price and value. The program works for item 7 but …

Software Development java
Member Avatar for LVZombie
0
584
Member Avatar for jj.dcruz

hi there im a total newb at this programming language is there a way 3 databases can be in one datagridview? I can only insert 1 database in a datagrid

Software Development asp.net vb.net
Member Avatar for deceptikon
0
238
Member Avatar for krunal1986

Hi, I have migrated OS from XP to win8.1. Earlier in my VB application, I was sending email thourgh my outlook object. set outapp = createObject("Outlook.application") but now I am getting error "ActiveX Compponent Can't create Object." as i have migrated my OS. is there any other change in code? …

Software Development email operating-system visual-basic
Member Avatar for krunal1986
0
337
Member Avatar for theashman88

I'm trying to create a program that passes arguments of size of three shapes, a circle, a triangle, and a rectangle. I got those but everytime I run the code it displays the arguments as 0 instead of giving me the shape dimension. Here is the code. using System; class …

Software Development oop
Member Avatar for kvprajapati
0
289
Member Avatar for BogdanCov

Hello guys. I developed a simple game in C# on Windows (WFA). Now I want to crate a database with accounts and all stuff. I know to crate this with a SQL Local Database, but I think there should be a host where to put that DB to be accessed …

Software Development web-server
Member Avatar for JorgeM
0
207
Member Avatar for Stefan_2

Okay. This weeks 'problem' is that I need to simulate a game. I have to make two singly linked lists which will contain a name of player, his attack (double/float) number and his defence number and so on for as many players as the user inputs. The point of the …

Software Development c linked-list
Member Avatar for Stefan_2
0
325
Member Avatar for moaz.amin.37

i know that in polymorphism when we not use virtual function then the compiler is execuite member function according to pointer type and when we use virtual function then compiler execute member function according to the type of object My question is that WHY it is happnes what is the …

Software Development c++
Member Avatar for mike_2000_17
0
292
Member Avatar for jared.geli

Hi guys I'm having problem in crystal report where my inner join is a success but of my 3 fields that are affected dowsn't show up. The values from 2 tables that match is showing on the crystal report but the 3 fields that has a match doesn't. Tried inputting …

Software Development vb.net
Member Avatar for Julian_1
0
2K
Member Avatar for Big-D2xL

I'm doing a project for my class and one of the goals is to transform one XML to other using XSLT. I kinda managed to obtain the info within the original XML file but I don't know why I can't "print" the tag's. XML file (original): <?xml version="1.0" encoding="ISO-8859-1"?> <?xml-stylesheet …

Software Development xml
Member Avatar for Big-D2xL
0
490
Member Avatar for Auroch

Hello everybody! I'm trying to display the result of addition of vectors. But Builder shows the error after compilation (line 29). What should I change for in my code in order to find the problem? Thanks in advance. #include <iostream.h> #include <iomanip.h> #include <conio.h> class CVector2D { public: CVector2D(double x0 …

Software Development c++
Member Avatar for Auroch
0
263
Member Avatar for moaz.amin.37

any one is here that explain to me that how to get console input using BufferReader in java and explain me its working briefly.

Software Development java
Member Avatar for moaz.amin.37
0
410
Member Avatar for Tcll

I'm trying to build an interactive IDE... the IDE has a file testing interface which displays a tree of the called functions in relation to the data in the file being tested. what I want to do is when you select a function referenced in the tree, it'll highlight that …

Software Development api ide python
Member Avatar for Tcll
0
559
Member Avatar for Tamara_1

Program For Standard Form def stnfrm(a,b,c): one = (b/(2.0*a)) two = c-((b**2.0)/(4.0*a)) axis = one/-1.0 x = -b/(2.0*a) y = a*(x**2.0)+(b*x)+c print x if a == 1: print "(x + %f)**2 + (%f)" % (one,two) elif a == -1: print "-(x + %f)**2 + (%d)" % (one,two) else: print "%d(x …

Software Development python
Member Avatar for ddanbe
1
540
Member Avatar for Bendez Thyna

i have this error when i display my program ? ' ' Created by SharpDevelop. ' User: s11088659 ' Date: 5/28/2014 ' Time: 11:26 AM ' ' To change this template use Tools | Options | Coding | Edit Standard Headers. ' Public Partial Class MainForm Public Sub New() ' …

Software Development vb.net
Member Avatar for Bendez Thyna
0
376
Member Avatar for uonsin

I'm getting a compiler error when trying to initialize a geometry shader using OpenGL. I'm using VS2013. Here is how I initialize it on OpenGL myCgContext = cgCreateContext(); cgGLSetDebugMode(CG_FALSE); cgSetParameterSettingMode(myCgContext, CG_DEFERRED_PARAMETER_SETTING); CGprofile gpProfile = cgGLGetLatestProfile(CG_GL_GEOMETRY); if (gpProfile == CG_PROFILE_UNKNOWN) { if (cgGLIsProfileSupported(CG_PROFILE_GLSLG)) gpProfile = CG_PROFILE_GLSLG; else { fprintf(stderr, "%s: geometry …

Software Development c++ opengl
Member Avatar for uonsin
0
329
Member Avatar for Bendez Thyna

i don't know why i have this error in my code: ' ' Created by SharpDevelop. ' User: s11088659 ' Date: 5/26/2014 ' Time: 9:44 AM ' Lab 8 ' ' To change this template use Tools | Options | Coding | Edit Standard Headers. ' Public Partial Class resultex …

Software Development vb.net
Member Avatar for Bendez Thyna
0
617
Member Avatar for cambalinho

i'm reading these page: http://msdn.microsoft.com/en-us/library/windows/desktop/bb775951%28v=vs.85%29.aspx but see the Remarks section: Remarks For illustrations of the principal button styles such as BS_CHECKBOX and BS_GROUPBOX, see Button Types. The appearance of text or an icon or both on a button control depends on the BS_ICON and BS_BITMAP styles, and whether the BM_SETIMAGE …

Software Development c++
Member Avatar for cambalinho
0
314
Member Avatar for abaddon2031

I have two python script the first once contains my def callers and my command line arguments. The second one contains my defs that i want to use the command line arguments in. I was wondering if there was a way to call the command line arguments into the second …

Software Development python
Member Avatar for Gribouillis
0
419
Member Avatar for prerit

Hello all!Im trying to write a program that accepts a string from users and then converts each character in the string to its corresponding 8-bit binary code and store it for further manipulation on obtained bit. I have the following code but it is not executing as expected : #include …

Software Development c
Member Avatar for deceptikon
0
331
Member Avatar for abaddon2031

I am working on s code that i want to add command line arguments to. I have read the docs.python page on this subject 3 or 4 times and it still has me conffused. I want to be able to set my base directory, change a send and recive email …

Software Development python
Member Avatar for abaddon2031
0
683
Member Avatar for Gus_19

I am having trouble getting a correct response when searching through each of my datarows. While stepping through during debugging, I am seeing the boolean response is getting triggered even if one row does not match my selected string. I just want to search all of the rows and if …

Software Development seo vb.net
Member Avatar for PerplexedB
0
241
Member Avatar for total90

Write a C++ program that asks the user to enter the price of a car (real), the down payment (real) and the number of years for the loan (integer). Calculate and output the monthly payment (real) of that car. Assume the sales tax rate is 7% and an interest rate …

Software Development c++
Member Avatar for Suzie999
0
308
Member Avatar for Nebil

I've a problem in getting a record from 3 tables: There are two conditions for getting the records,'project number' and 'current month'.I used this statement to get the records but it results in 3 times the actual record. Any help would be appreciated. "INSERT INTO patempTable SELECT [pay_roll].[project number],[pay_roll].[employee number],[pay_roll].[current …

Software Development vb.net
Member Avatar for Eng.William
0
213
Member Avatar for Mya:)

When the user's mouse pointer touch a button I want a message to appear telling the user what that button's function is. Wich function do I use? Thanks

Software Development delphi pascal pc-peripheral
Member Avatar for Mya:)
0
384
Member Avatar for AbstractEden

I'm having some issues with one of my bonus assignments for school. In my code the purpose of the project is posted, but this is what I have so far. /******************************************** *File Name: Combination (Assignment 8 Part 1) *Purpose: Create a frame with ten buttons, labeled 0 through 9 (Hint: …

Software Development java java-swing window-manager
Member Avatar for Hiroshe
0
1K
Member Avatar for Gracious_1

So here's a bit about the details. I need to read the contents of file A, and B and store it in file C by joining the contents of A and B and also counting the number of letters/characters present in it. I've come up with this so far. Can …

Software Development file-stream java
Member Avatar for Gracious_1
0
310
Member Avatar for howemonster

So I am writing a program to read text from a file. Save from an array list to an array and then parse that array for ',' and use that to change words position in the 2d array i will write from the 1d array. So essentially String[]{"a,b,c","d,e,f"} ought to …

Software Development java
Member Avatar for howemonster
0
149
Member Avatar for skusobny

Hello please i need some help to rewrite this code in PHP to Python i am totally new in this and need this baddly please help if u can. Thanks a lot. <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>phpChart - Basic Chart</title> </head> <body> <?php function array_delete($array, …

Software Development php python
Member Avatar for itsnauman
0
200
Member Avatar for MasterHacker110

I am trying to figure out where is Java and C# mostly used? I read that enterprises favors Java and JEE, but they don't say anything about JSE. I also read that C# is being used a lot, especially on Windows platforms. But the question remains, what do enterprises use …

Software Development c# gui java
0
100
Member Avatar for ankit.baphna

Code1: <input id="text" type="text" name="fname" value="First Name" onclick="this.value='';"/> Hi Friends, Code1 - this print in my text box value "First Name". onclick this value gets erased so I can type Name. but if I go to second text box and come back to this text box to modify or add …

Software Development php
Member Avatar for patk570
0
202
Member Avatar for Doogledude123

I'm trying to make this as easy as possible but I'm stuck. Inside the for loop, if the input entered was not a number or wasn't valid, it moves on, but I don't want it to. I want it to repeat that interation. Is there a possible way to do …

Software Development gui java
Member Avatar for JamesCherrill
0
398
Member Avatar for LVZombie

I am now on part 3 of a payroll program for my Java class but I did not add the while loop in last week so I need to figureout what I did wrong so I can do part 3. The program should loop until the user enters "stop" It …

Software Development java
Member Avatar for jwenting
0
256
Member Avatar for Vlad_2

// Convert Celsius to Fahrenheit and vice versa. import java.awt.BorderLayout; import java.awt.FlowLayout; import java.awt.GridLayout; import javax.swing.JTextField; import javax.swing.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; public class ConvertTemp extends JFrame { // instance variables JLabel labelFahr; JLabel labelCels; JTextField textFahr; JTextField textCels; JButton conFahToCel; JButton conCelToFah; public ConvertTemp () { super …

Software Development gui java java-swing
Member Avatar for Vlad_2
0
8K
Member Avatar for Builder_1

what are merits and demerits of overriding in java

Software Development java
Member Avatar for Hiroshe
0
139
Member Avatar for finalist

Anyone know how to avoid this error - message on compiling my program using Delphi XE5: Undeclared identifier: 'DateSeparator' When I compile the same program using Delphi XE, it is OK, without any errors. I have declared: uses SysUtils ....;

Software Development delphi pascal
Member Avatar for finalist
0
580
Member Avatar for cambalinho

when we create child controls, what is the style for accept text formats? (i mean: '\t', '\n' and others)

Software Development c
Member Avatar for cambalinho
0
136
Member Avatar for MasterHacker110

I am writing a program that will open another form, the user will continue doing stuff on the new form and would then close the form. When and only when this new form closes, the main form should continue with its work and re-enable some components. Here is the code: …

Software Development java
Member Avatar for mKorbel
0
211
Member Avatar for MasterHacker110

I am trying to read a some data that is stored in an xml file and then print it to the screen for the user. But my program isn't working correctly. Here is my XML document: <UserAccounts> <Account AccountNumber="1234567890"> <Password>12345</Password> <Balance>1024.64</Balance> </Account> </UserAccounts> And here is my code: File fXmlFile …

Software Development java xml
Member Avatar for MasterHacker110
0
303

The End.