132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for edbtzy

I am trying to create a client to connect to a mysql database using sockets. I have the following code but of course, its not working to my advantage. Right now, this code connects to a server file located on a linux machine...i havent coded it yet to connect to …

Software Development api c++ client-server data-structure queue
Member Avatar for gerard4143
0
192
Member Avatar for anunitha

Hi, I have excel sheet which contain 100 and 100 of email and corresponding name. I need to seprate them according to the number of occurrence of their name. eg: name email chandran [email]chan@gmail.com[/email] maidhu maidu2yahho.com karan [email]karniii@nii.in[/email] Chandran [email]chan@gmail.com[/email] Chandran [email]chan@gmail.com[/email] karan [email]karniii@gmail.com[/email] excell sheet contain name and email, …

Software Development file-system perl
Member Avatar for anunitha
0
95
Member Avatar for heybunny

am writing a program that plays rock paper scissor. The user will enter choice manually (rock is1, paper is 2, and scissors is 3) and the computer will chose one at random without letting the user know. The game will run as many times as the player wants. I can …

Software Development java
Member Avatar for ilovejava
0
2K
Member Avatar for yousafc#

Please tell me,Why Microsoft choose name operating system (Windows).Please no body reject this question.I know it is not related c#,But it is related IT world.

Software Development microsoft operating-system
Member Avatar for ddanbe
0
101
Member Avatar for adrain91

1 the computer displays some secret word(in underscore):--- 2 I guess letter"c"in the word 3 yes,the screen pops up like this :c-- 4 I guess the second letter is u 5 yes , it is :cu- 6 last ,I guess the final one is p 7 yes , it is …

Software Development python
Member Avatar for Cireyoretihw
0
255
Member Avatar for c#learner

Recently started basic programming in uni and I am struggling with c#. One of my lab questions was write a dice program, i will write the exact question below. Because of anxiety I cannot ask the lecturer for help in class so thats why I am here. I am unsure …

Software Development c#
Member Avatar for bmc100
0
126
Member Avatar for Laxman2809

just like my title says my loop won't work [CODE]import java.util.Scanner; public class TestSocialEvent { static String title, attire, dayweek,input,time; static int day,month,year; public static void main(String[] args) { Scanner k = new Scanner(System.in); System.out.println("Social Planner"); SocialEventController sec = new SocialEventController(); while(true){ SocialEvent ev = new SocialEvent(attire, dayweek, title, day, …

Software Development java
0
65
Member Avatar for HASHMI007

[QUOTE]Que.h Header file [/QUOTE] [CODE]template < class T> class Que{ public : Que(); Que(int max); ~Que(); int isFull()const ; int isEmpty()const ; void Insert( T newItem); void Remove(T & item); private : int front , rear; int maxQue; int count ; T * Items; // Dynamic Arry Implementation }; template …

Software Development c++ queue
Member Avatar for HASHMI007
0
179
Member Avatar for meme dreame

hey guy's iam a biggner at data structure n there z a program i did it bt everytime i run it doesn't work with me and i dono what is the wrong on it can somebody help me plz [CODE]#include <iostream> #include <string> using namespace std; class student_grades{ private: string …

Software Development c++ data-structure
Member Avatar for meme dreame
0
110
Member Avatar for f4fjks

[CODE]#include<stdio.h> #include<graphics.h> #include<stdlib.h> #include<conio.h> void main() { int graphdriver=DETECT,graphmode; int color,n,m; initgraph(&graphdriver,&graphmode,"C:\\TC\\BGI"); for(n=0;n<10;n++) { putpixel(250+n,350,BLUE); } for(m=0;m<10;m++) { int x=getpixel(250+m,350); printf("%d",x); } getch(); }[/CODE] please any one help me solving errors..

Software Development c++
Member Avatar for WaltP
0
169
Member Avatar for Fireprufe15

Hay everyone. Im busy creating a program, but first you have to log in with a little form I made. I thought about using a registry entry, but I dont know how to use Tregistry. It should also be possible to use on a network pc with only client level …

Software Development pascal
Member Avatar for Fireprufe15
0
147
Member Avatar for UNDER-18 FG

Hi! I have another assignment regarding writing a program based on a given output. Here's the Output given: Output: Enter your date of birth: Day: Month: Year: My birth date is on 31 August 1980. So, here's my answer( Although it is wrong; with about 6 ERRORS in it): [CODE]#include …

Software Development c++
Member Avatar for Fbody
0
175
Member Avatar for Simon180

am trying to rebuild my chat content by storing it into a stringlist first and then re-pushing it out but problem am having is with my font settings i can not work out how to add my font styles to the string has anyone got any code to show how …

Software Development pascal
Member Avatar for AceStryker
0
159
Member Avatar for compulove

I am writing a code that will login the user then one they are logged in they will enter in other information in textboxes. I wanted to know how to check that the username, password and ID match what is in a sql database. Also once it goes through how …

Software Development c c# c++ sql
Member Avatar for compulove
0
4K
Member Avatar for mamari

Hello, i need to list all menu items on page load, now it's on mouseover anyone can help? [ICODE] <a href="home.php?cat={$catid}" class="arrow" onmouseover="javascript: return switchSubcatLayer(this);"></a>[/ICODE]

Software Development java
0
225
Member Avatar for glut

Hey, I need to make a function that returns an array. How would I do so? And how would I make a variable that gets all the values in that function? Thanks, you guys :)

Software Development c c# c++
Member Avatar for Moschops
0
219
Member Avatar for toneranger

Hi everyone, When I try the code below with data in a txt file, I have no problems and the data prints properly and neatly on the screen. (Note, one slight modification when using a txt file, instead of getline (ist, ignored, ','), I do getline (ist, ignored, '/t') to …

Software Development algorithm c++ file-system
Member Avatar for MonsieurPointer
0
245
Member Avatar for Ehtesham Siddiq

Hi, I have a StatusStrip and is filled with Year in the format say "June2009 - May2010". I want to get the years from this string like 2009,2010 from the above string. Please suggest how can i do this. I have tried this but not able to further separate June2009. …

Software Development vb.net
Member Avatar for Pgmer
0
4K
Member Avatar for UNDER-18 FG

Hi! I have another assignment regarding writing a program based on a given output. Here's the Output given: Output: Enter your date of birth: Day: Month: Year: My birth date is on 31 August 1980. So, here's my answer( Although it is wrong; with about 6 ERRORS in it): [CODE]#include …

Software Development c++
Member Avatar for hiddepolen
0
384
Member Avatar for vlady

Hello, I am learning classes and object and I have a problem with this code. Simply does not work. Can you tell me the reason please? Error message tells me that Distance is not defined...(I don´t understand this message) Thank you for help! Vlady [CODE]class Distance(object): 'return distance between 2 …

Software Development python
Member Avatar for vlady
0
128
Member Avatar for waqqarazeem

Need help with this. Write a program that asks the user to enter today's sales for five stores. The program should then display a bar graph comparing each store's sales. Create each bar in the bar graph displaying a row of asterisks. Each asterisks should represent $100 of sales. Her …

Software Development vb.net
Member Avatar for Unhnd_Exception
0
344
Member Avatar for senergy

Hi, how can I read specific data from file? let's say I have file containing this: [code]Data1: 1 Data2: 2 Data3: 3 Data4: 4[/code] how can I make program find "Data1: " and then get everything what's behind it? or like in some configs, there is: [code]<Something: "something2", "something3">[/code] how …

Software Development c++
Member Avatar for senergy
0
4K
Member Avatar for dw_user

Think about an antivirus software with an 1-pc license. After installation , while the user tries to upgrade it, the software recognizes that the pc rying to upgrade the antivirus is the one that bought the license so that the software when installed on another pc with the same serial …

Software Development assembly cybersecurity virus-malware
Member Avatar for dw_user
0
215
Member Avatar for ajayb

How to find size of a semaphore object in windows? I tried using sizeof() but we cannot give name of the sempahore object as an argument to sizeof. It has to be the handle. sizeof(HANDLE) gives us the size of handle and not semaphore.

Software Development c
Member Avatar for Ancient Dragon
0
109
Member Avatar for crankyslap

I am using the following to send a string to the application on the foreground. But it's no good, as it for some reason only accepts numbers, and letters in uppercase. But I also need to send letters in lowercase, and slashes and backslashes etc. Can anyone help me achieve …

Software Development vb.net
Member Avatar for crankyslap
0
1K
Member Avatar for programing

hi i write code that is mesure the area of traingle with two constructor ... with argument and default constructor and set ,, get , high and length ,, and tostring , equals methods but i think is there a logical error class file [CODE] public class Traingle { private …

Software Development java
Member Avatar for hiddepolen
0
136
Member Avatar for cse.avinash

hello daniweb.. :) I am learning JAVA and currently new to it, I am studying "The Complete Reference-JAVA" by Herbert Schildt. In that book its written that using short or byte will save space, but there is no guarentee that Java won't promote those types into int internal anyway. Remember …

Software Development java machine-learning
Member Avatar for JamesCherrill
0
114
Member Avatar for kytro360

Hello, I have a file I saved as an XML file and want different parts of the file to display in two text boxes. What is happening is the whole content of the file displays in a textbox as: [CODE] <?xml version="1.0" encoding="utf-16"?> <text> h hkj </text>[/CODE] ...in both text …

Software Development xml
Member Avatar for ChrisHunter
0
534
Member Avatar for smallB

Hi, I have a problem with linking boost libraries in codeblocks using gcc 4.6.1. I'm getting following errors: undefined reference to `vtable for boost::unit_test::unit_test_log_t' How can I solve it?

Software Development c++
Member Avatar for smallB
0
162
Member Avatar for ragnacrap

This is what my professor provided me in his own words. "Write a program that copies the contents of a text file specified by the user and copies it to another text file "copy.txt". No line in the file is expected to be longer than 256 characters." Here is part …

Software Development c file-system
Member Avatar for D33wakar
0
248
Member Avatar for mcclainra

I've been given a basic form of programming to do. And I simply cannot figure it out. I know this topic has been covered several times before. But each of them going around the one crucial step that I need to complete my programming. My instructor insists that the 24 …

Software Development c c# c++
Member Avatar for mcclainra
0
2K
Member Avatar for UNDER-18 FG

Hi. I'm new here. Anyway, I have an assignment of writing programs from outputs provided. Here's an output given in the assignment that I think is wrongly done. I'm saying this because I tried many, many times just to get the exact output, but only to no avail. So, I …

Software Development c++
Member Avatar for UNDER-18 FG
0
126
Member Avatar for cyberdaemon

can someone help.. i can see the file when i click the save button on my folder.. can you help me... [CODE] { SaveFileDialog dialog = new SaveFileDialog(); saveFileDialog1.ShowDialog(); saveFileDialog1.InitialDirectory = @"C:\sample"; saveFileDialog1.Title = "Browse a file"; saveFileDialog1.DefaultExt = "txt"; saveFileDialog1.Filter = "Text Files (*.txt)|*.txt| PDF File (*.pdf)|*.pdf"; saveFileDialog1.FilterIndex = …

Software Development pdf
Member Avatar for arunkumars
0
224
Member Avatar for rezial

Ok so i have this 3D cube (not made in java 3d) and i want to move it around and rotate it with keys on the keyboard. I know how to start it off and stuff i just can figure out how to make it work lol well here the …

Software Development java
Member Avatar for hiddepolen
0
148
Member Avatar for walid86

hi guys, i have a minor problem that i can't get my head around. I have a picturebox, inside a panel, inside a form which has auto scroll on, as the panel's height is bigger than the screen... I never used to have this problem, but now if i manually …

Software Development
Member Avatar for walid86
0
218
Member Avatar for Yashu589

Hey I am using SHLoadImageFile API ,but i am facing prob in loading images (jpeg) of bigger size. Can anyone help me to solve this?

Software Development api c
Member Avatar for Yashu589
0
167
Member Avatar for j23

basically, instead of the "(N1 + N2 + N3)" which is in the average method we need to call the sum method to the average method as the sum method returns a value = (N1 + N2 + N3). does anyone know how to call the sum method to the …

Software Development java java-swing
Member Avatar for hiddepolen
0
166
Member Avatar for enovez

please help me, i need show data searching in datagrid. i have example code but its can't compile. These coding examples that I made. Option Explicit Dim conn As ADODB.Connection Dim Rs As ADODB.Recordset Dim query As String Sub setConn() Set conn = New ADODB.Connection End Sub Private Sub serachCmd_Click() …

Software Development visual-basic
Member Avatar for dwiniers
0
100
Member Avatar for champa anand

Hi, Here is the code [CODE]bool A::clear(void) { if (m_active) { return val; } else { return true; } } // end A::clear bool A::initialize(void) { if (m_active) { return clear(); } else { return true; } } // end A::initialize[/CODE] getting the below segmenation fault as soon as it …

Software Development c++
Member Avatar for champa anand
0
92
Member Avatar for cyberguy007

Is there any if statement to check if a file is empty or not?

Software Development c++
Member Avatar for sanof3322
0
30K
Member Avatar for cyberdaemon

can anyone tell me how to avoid this kind of error "specified more than once in resource parameter" i copied one form and rename that form into other's name together with the class name and thier inheritance but still i have this error..

Software Development
Member Avatar for cyberdaemon
0
74
Member Avatar for nmohammed

hi, i am new in C# , i have 2 text boxes in which the user will enter the department and name, 1- I want the application to retrict the user to only enter letters not numbers . This is my following code: [CODE] public string Directorates_Insert(string Directorate_Name, string Directorate_Head) …

Software Development dataset
Member Avatar for nmohammed
0
204
Member Avatar for Sprewell184

Hi, this is my first post. I apologize if I make any mistakes. I have a problem where I need to take a list and print it out as a table of average for each person. The list is : [('tom',4),('ben',5),('tom',8),('ben',12)] So far my code is: [CODE]def getAverage(list): list = …

Software Development python
Member Avatar for TrustyTony
0
132
Member Avatar for gotnos

I have tried to structure my program but im stuck at this point. I have a file that contains phone phrases on each line (1-900-WINNING) is one of the phrases, if i get more digits than a phone number requires i must ignore the remainder. This data is coming from …

Software Development c++ data-structure
Member Avatar for WaltP
0
151
Member Avatar for Erlendftw

Hello there Daniweb community, today i encountered a problem while developing a Desktop Application in C# With Mysql (MySql.Data.MySqlClient). Im not using ODBC. The situation is the following: When NOT executing two queries, the data gets processed and everything works fine. However, once there are two queries, problems appear. Its …

Software Development listview mysql
Member Avatar for Erlendftw
0
110
Member Avatar for stereomatching

I do some experiences about boost::bind And I find out that boost::bind would incur heavy copy if you don't pass by referene [code] #include<iostream> #include<boost/bind.hpp> struct test_for_bind_00 { test_for_bind_00() {} test_for_bind_00(test_for_bind_00 const &Obj) { std::cout<<"this is copy constructor :: tfb00"<<std::endl; } }; struct test_for_bind { void tamaya() { std::cout<<"tamaya"<<std::endl; } …

Software Development c++
Member Avatar for stereomatching
0
315
Member Avatar for Quenchy coder

Hello... I need to transfer the contents of a combo box into my list box..how do i do that? my list box is empty.and everytym i select something from my combo box..the previous value in list box should not be erased.It shoud keep on adding to the previously updated value..Please …

Software Development visual-basic
Member Avatar for hkdani
0
110
Member Avatar for Ruchi224

Hello.. I am developing a windows app and i have a form in which i have 2 datagridviews.. dgv1 is the main gridview with checkbox column and when the user checks the box, that row should be visible in dgv3 (other datagridview).. The code i used is : [CODE] Imports …

Software Development assembly dataset vb.net
Member Avatar for Ruchi224
0
187
Member Avatar for Zssffssz

well it sounds simpler than OpenGL... I want to use DOS style graphics in my prog (look at SC2000) no need for animation or interactivity or PostPicture(). So the queston is what header/librays do I need and how do i use it? Google just brought up stuff on makeing your …

Software Development c++ opengl
Member Avatar for Zssffssz
0
222
Member Avatar for sifuhall

I'm trying to write a vbScript that will execute all files in a given directory (will be mostly batch files). I've tried to modify a script that deletes all files but I'm not able to get it to work. Here is what I have: [CODE]Option Explicit '=========================================================================== ' Scheduled Task …

Software Development shell-scripting vbscript visual-basic
Member Avatar for sifuhall
0
520

The End.