43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Tinnin

Hi all. I'm working my way through "Accelerated C++" have a question regarding chapter 5. The program calculates students final grades by taking a median of the homework grades. I am trying to alter this program so that it uses *list* instead of *vector*. The issue I'm having is with …

Software Development algorithm c++
Member Avatar for Tinnin
0
173
Member Avatar for dhruv_arora

My school and the education board uses Turbo C++ as the compiler. I have Windows 7 64 bit. Can anyone tell me how can I install Turbo C++ on my computer.

Software Development c++
Member Avatar for harsh01ajmera
0
453
Member Avatar for androidz

Hi daniwebians I have created a table in sql server called "report" and it has 3 columns "reportname","reportfile" and "reportflag". the report flag has only two values 1 and 0,if the value is 1 this means the textbox on the form will be enable. I have managed to dispaly the …

Software Development sql vb.net
Member Avatar for androidz
0
782
Member Avatar for brylle

I have a datagridview, In a textboxcolumn should have a unique data.. i want in the cardnumber not to be the same.. Need trappings

Software Development vb.net
Member Avatar for artemix22
0
614
Member Avatar for Matth963

Hi, I'm doing a study planner in java. I'm doing a simple login system. For every user who registers a text file is created holding all of the information inputted during registration. This is the code of a method which the program uses to login the user: public void loginUser(){ …

Software Development java
Member Avatar for Matth963
0
298
Member Avatar for rahul.ch

Why does first two eg give true when a check done on them using if(x==y) but 3rd and 4th case give false? eg1: `String x = "Hello", y="Hello" ` eg2: `String x = "Hello";` `String y= "Hello";` eg3: `String x="Hello";` `String y = new String("Hello");` eg4: `String x = new …

Software Development java
Member Avatar for rahul.ch
0
246
Member Avatar for FaisalSarfraz

Hi every one!! I need help to match user data from database inorder to log in to admin panel. Here is what I am trying. it works ok but it is giving dialog box containing text "Sorry! You have no access to Database" here is the code. Please help String …

Software Development java mysql
Member Avatar for FaisalSarfraz
0
293
Member Avatar for perly

Hi, I have a file containing multiple-headed data (input file 1), and also a second file containing elements for searching the first file. input file 1: UROPA sseD 1.2.3.3.3 crimson ddsU 2.1.4.1.2 green SAMEL aadH 7.4.1.1.1 blue uuoG 10.1.2.3.4 white MOONA gmaL 3.4.1.6.7 red oolJ 9.1.1.4.1 yellow input file 2: …

Software Development file-system perl seo
Member Avatar for 2teez
0
266
Member Avatar for plasticfood

i have a private Node class with a getValue() method that returns the Node's value which is of generic type. In another class i've tried doing this: T tempItem = null; ----also generic tempItem = currentNode.getValue(); I get a complier error unless I cast it like this: tempItem = (T) …

Software Development java
Member Avatar for plasticfood
0
234
Member Avatar for silverkid

why do i get this syntax error at the line shown below [CODE]package org.temp2.cod1; import java.security.*; import javax.crypto.*; import javax.crypto.spec.*; import java.io.*; public class Code1 { byte[] plaintext = new byte[32]; // <<<<<<<<<<<<<<<<<<<<<<<<<< syntax error for (int i = 0; i < 32; i++) { plaintext[i] = (byte) (i % …

Software Development ide java
Member Avatar for LaughingOtter
0
22K
Member Avatar for Dili1234

Private Sub Product_Details1(ByVal pid1 As String) Dim n As Integer n = 0 DataGridView1.Rows.Clear() myConnection = New SqlConnection(connectionstring) myConnection.Open() Try sqlcmd = New SqlCommand("SELECT P_Id,P_Selling_Price FROM Product_Details WHERE P_Id='" & ComboBox1.SelectedText & "' ", myConnection) Dim dr As SqlDataReader = sqlcmd.ExecuteReader If dr.HasRows Then While dr.Read() DataGridView1.Rows.Add() DataGridView1.Rows(n).Cells(0).Value = dr("P_Id").ToString …

Software Development display vb.net
Member Avatar for Dili1234
0
440
Member Avatar for pritesh2010

how to convert this code to C#. Protected Class Calendar Public Sub New(ByRef Picker As NullableDateTimePicker) End Sub End Class

Software Development c# vb.net
Member Avatar for Michael27
0
119
Member Avatar for Mindazz

Hello. I can search for items in first listview column using FindItemWithText. I wonder is it possible to search in other listview columns and highlight found text, not all item line ? :?: Searched on google all day long but no luck... :sad: My Listview contains multiple items and each …

Software Development listview seo vb.net
Member Avatar for G_Waddell
0
4K
Member Avatar for ronnel09

#include<conio.h> #include<stdio.h> void main() { int iRows; clrscr(); printf("Enter a number :"); scanf("%d",&iRows); if(iRows>0) { for(int iResult=0,iCount=0,iRows; iResult<=iRows; iResult++) for(iResult=1,iCount=0,iRows; iCount<=iResult; iCount++) printf("*"); printf("\n"); }//for getch(); }//main please help me to correct my source code: i should make a program like this: * ** *** **** ***** . . . …

Software Development c
Member Avatar for deceptikon
0
132
Member Avatar for rexmorgan

I could reallly use some help. I am a complete newbie in python. What I would like to do is import a csv file (originally an excel file). Have the user pick a beginning month and an ending month and add the columns of the months between. For example I …

Software Development microsoft-office python
Member Avatar for rexmorgan
0
1K
Member Avatar for rahul.ch

The o/p is 10. But shouldn't it be 9? Is it got anything to do with Postfix or variable scoping has a role to play?

Software Development java
Member Avatar for rahul.ch
0
173
Member Avatar for nesa24casa

Hello, i have issue that i cant solve for some time since i dont fully understand regex. How can i get selected data from table to array? Example class="fb s10" title="Get This Info"> class="fb s10" title="Get That Info"> How can i extract Get This Info Get That Info from selected …

Software Development c c# c++ regex
Member Avatar for nesa24casa
0
189
Member Avatar for borchu

Hello everyone, I am new at Java(android)-before I have little information about Java lang- and in particular socket programming -before I do not know nothing about socket client server programming-, previously I wanted to write simple chat program by using Threads and now I pass this step, two android emulators …

Member Avatar for borchu
0
984
Member Avatar for rahul.ch

Compiles fine. But at runtime it gives ClassCastException. My doubt is that why is it so even though st which is of type Sample1 gets casted to Sample2 and generates exception even though Sample2 IS-A Sample1.

Software Development java
Member Avatar for rahul.ch
0
246
Member Avatar for Jake.20

Greetings fellow developers i just wanna ask if this situation is possible.. i have a program that consists this forms - Registration Form - Log in Form - Admin Form The registration form is as usual a windows app, and also the admin form except log in form. When the …

Software Development asp.net microsoft vb.net
Member Avatar for Jake.20
0
307
Member Avatar for keyoh

I'm working on a cleanup script for tv shows that I download. Right now I'm just looking for a file greater than 50mb, but there should be a better way. [CODE] import os import shutil dir = "C:\Users\Bobe\Downloads\TV\\" for folder in os.listdir(dir): if os.path.isdir(os.path.join(dir,folder)): for file in os.listdir(dir + folder): …

Software Development python
Member Avatar for The Geek Scope
0
5K
Member Avatar for myk45

Hello All! To check for return values from a function and setting error flags, i am currently using the following approach: bool fine = true; fine &= func1(); fine &= func2(); .. and so on. if (!fine) { // error } Could anyone please let me know if there is …

Software Development c++
Member Avatar for myk45
0
206
Member Avatar for jane.frasier

I used the upsize wizard in Access 2010 to split my database with the table being on the SQL server. I entered this in the autoexec (was macro, I converted it) Function autoexec() oConn.Open "Driver={SQL Server};Server=JCPLMSQL01;Database=TestingConnection;Trusted_Connection=yes;" DoCmd.OpenForm "Form1", acNormal, "", "", , acNormal autoexec_Exit: Exit Function End Function I don't …

Software Development sql visual-basic
Member Avatar for AndreRet
0
134
Member Avatar for Jaseem Ahmed

i want to make my project's look like windows 7 have..means glass interface, and buttons, all controls graphics like windows 7. i have searched alot, but i could not find...can u help me regrading this?

Software Development visual-basic
Member Avatar for fawazchughtai
-1
717
Member Avatar for M.S.

How the following code can be rewritten in a better way? #!/usr/bin/env python """Simple program for finding popular names over last 100 years, in response to vegaseat's last post in Projects for Beginners(9/1/2012). It first lists the popular names and then search for entered name by user""" oldnames = """Mary,Helen,Margaret,Anna,Ruth …

Software Development python ruby
Member Avatar for vegaseat
2
273
Member Avatar for chuckc

I have an odd problem with a Java-based Internet program that I would like to use on a regular basis on my Windows XP computer. I have not done Java programming, so I would be interested to know if anyone has ideas about what might be happening. The program runs …

Software Development hard-drive java windows-virus
Member Avatar for chuckc
0
243
Member Avatar for greg2186

I'm a beginning programmer and am stumped on the last part of this assignment. I can't seem to figure out how to have the Letter Grade show. Here's what I have so far, any help as to where I'm going wrong would be much appreciated!! import java.util.Scanner; public class Lab1 …

Software Development java
Member Avatar for greg2186
0
1K
Member Avatar for MasterHacker110

Ok what I mean is if i build say a client and server side (network) program in c++ on linux. Will i be able to run it on windows? i know that linux creates .o files and those are executed. were windows create .exe files and thos are executed. I …

Software Development c++ client-server
Member Avatar for deceptikon
0
182
Member Avatar for PinoyDev

Good day! I just one to ask if there is a function in C++ that can format a currency directly. Example if I have a float of *10000.00*, it shoud output *10,000.00*. Note the comma separator. Thank you!

Software Development c++
Member Avatar for deceptikon
0
1K
Member Avatar for shriekyphantom

Hey! I'm a beginner in Assembly language. I want to know the difference between a declaration enclosed with ' ' and without it. For example, variable1 db '0' variable2 db 0 I know that the one with '' is when printed, it will show what's inside the ''. Thanks~ :)

Software Development assembly
Member Avatar for shriekyphantom
0
108
Member Avatar for nesa24casa

Hello, i have made a code that strips off html tags using regex but i have issue. Now in file i have multiple tabs. example: nesa<tab><tab>pera<tab><tab><tab><tab>nn<tab><tab><tab><tab><tab><tab>kkn how can i remove extra tabs and keep only one tab ? example: nesa<tab>pera<tab>n<tab>kkn Thanks in advance

Software Development regex
Member Avatar for Mike Askew
0
174
Member Avatar for Kryptonitex

I got 2 Declaration syntax error... i really need help :D Thanks! Btw .. i'm using Borland C++ #include<iostream.h> #include<graphics.h> #include<stdlib.h> #include<stdio.h> #include<ctype.h> #include<conio.h> void main() {clrscr(); int opt,opt1,opt2,opt3,opt4,opt5,opt6; /* request auto detection */ int gdriver = DETECT, gmode, errorcode; int style, midx, midy; int size = 1; int x,y; …

Software Development c++
Member Avatar for Kryptonitex
0
227
Member Avatar for chandnigandhi

can anyone please help me out with creating simple screen editor using graphics functionality in c language.

Software Development c
Member Avatar for zeroliken
0
103
Member Avatar for Seswing142

1. Write a program to compute the annual rate of return on an investment. The program will ask the user for the original purchase price, the number of days the investment was owned, and the final sale price. The program must then print out the difference between sale price and …

Software Development java
Member Avatar for Seswing142
0
352
Member Avatar for ncis_sg1

I am trying to write a code that is giving me a great deal of problems. **The program challenge is as follows:** Write a program that asks the user for the name of a file. The program shold display the contents of the file on the screen. If the file's …

Software Development c++ display file-system ios
Member Avatar for ncis_sg1
2
2K
Member Avatar for depy

Hello! I was trying to display/print elements of a list, suppose a = [1,2,3,4,5], using functions. But the code i wrote prints only the first element of the list whereas i needed all the elements of the list to be printed( as in 1 2 3 4 5 but all …

Software Development python
Member Avatar for vegaseat
0
610
Member Avatar for PM312

I have a data grid view and trying to compare data in coloumn 4 with coloumn 6 when data is entered in coloumn 6. but comparision is not happening . How to achive this. my code Private Sub DgvAllocate_CellLeave(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DgvAllocate.CellLeave Crno = …

Software Development vb.net
Member Avatar for PM312
0
236
Member Avatar for zvjezdan.veselinovic

Can anyone help me with my program? I am making Tic-Tac-Toe and I am stuck. Here is all of my code that I have done so far.... . . . This is called design_of_board.h #include <iostream> #include <string> #include <Windows.h> #include <conio.h> #include <ctime> #include <vector> #include <algorithm> using namespace …

Software Development algorithm c++
Member Avatar for zvjezdan.veselinovic
0
1K
Member Avatar for kindofsudden

I have read many articles here, but haven't quite found the solution. I have a SQLEXPRESS database that is used by my VB.NET application. I have packaged and deployed the application via an MSI file and everything works great except I cannot figure out how to include my database file …

Software Development sql vb.net
Member Avatar for kindofsudden
0
255
Member Avatar for Perry31

Hi Geeks, i have declare Char *a type variable and i want to fill data in a[0][n], a[1][n], ... a[max][n]. below is my code snippet which i'm facing build error while initializing. I'm getting build error as ".....subscript requires array or pointer type " ......... char *a; a = (char*)calloc(3,sizeof(int)+3);//trying …

Software Development c
Member Avatar for Perry31
0
183
Member Avatar for joshl_1995

Hello Community, I was wondering if there is a way to make a program that will send messages from one computer to the other. **NOT** using LAN connection and **NOT** using winsock. EG. I (at my house) would like to chat with my friend (his at his house). Please help.

Member Avatar for ObSys
-1
319
Member Avatar for anonymousi

need simple code vb.net code tht uses issue date and return date to calculate fine but doesnt use datetimepicker tool..

Software Development vb.net
Member Avatar for suman.samanta1
0
203
Member Avatar for silversurf

Hello everyone, I am trying to build a inventory ans pos systeme with Ms-Access as database and VB 6.0 programming. I got stuck in one place again. What I want to do is trying to print out the codes and price of the products. In this form, I have a …

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

Hello everyone, I have problem with my simple android chat program when using different test debugging. I have two android emulators one reads SERVERPORT as 8080 and CLIENTPORT as 8082 and the other android emulator reads SERVERPORT as 8082 and CLIENTPORT as 8080 from a given txt file. Here there …

Software Development client-server java socket-programming
Member Avatar for borchu
0
2K
Member Avatar for borchu

Hello again, I have been posting consecutively in these days nearly same topics, actually I am intern at a sofware company and our company ask to perform the proof of conception about sending voice call -at the beginning- and finally video calls, like walkie talkie application; as you have already …

Software Development android client-server file-stream java qt
Member Avatar for borchu
0
248
Member Avatar for frnds2vivek

Hi, I want to select a number with 0's after its decimal point. For example, if I have incoming data as 16.90, 17.00, 17.10, 17.20, 17.30, ......, 17.90, 18.00, 18.10, 18.20, ......., 18.90, 19.00, 19.10, ......... and so on. I want to select only numbers 17.00, 18.00, 19.00, ..... from …

Software Development visual-basic
Member Avatar for frnds2vivek
0
224
Member Avatar for theadmiral99

I am currently doing a python challenge in which I have to create certain codes. I am stuck on a particularly hard question and would appreciate some help. The problem is: In 1989, a journalist asked Paul Boutin, an engineer at the Massachusetts Institue of Technology, "What do you think …

Software Development python
Member Avatar for TrustyTony
0
190
Member Avatar for Johannady2

When you enter "y" and try again. it doesn't asks you to "enter a String: " and "enter another String: " again. It just prints those lines out but you don't get to enter. Well~ you can enter 1 string again when it does the loop but I don't know …

Software Development java
Member Avatar for Susith Anuranga
0
355
Member Avatar for dre-logics

I use MySQL database (innodb) I use Visual Basic 2008 I have a table Employees with two fields EmpNo and Managerno ALTER TABLE Employees ADD PRIMARY KEY (EmpNo CREATE INDEX index_Managerno ON Employees (ManagerNo) How do i now IF Mysql using this index is if i do this: SELECT * …

Software Development mysql vb.net visual-basic
Member Avatar for Nutster
0
267
Member Avatar for joshl_1995

Hello Community, I was wondering if it's possible to attatch a command prompt window to a visual basic form. EG. (Below (i made this as an example)) ![example8](/attachments/small/3/example8.png "align-left") Something like that. Please help.

Software Development vb.net visual-basic
Member Avatar for joshl_1995
0
379

The End.