199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for mustafaneguib

ok guys, i can not figure out the following problem that i faced just a while ago while trying out some filing in c++. the code is as follows: [code=c++] #include<iostream> #include<fstream> #include<string> using namespace std; int main() { ifstream readFile; readFile.open("Input.txt"); string sample; readFile>>sample; cout<<"Here is a line: "<<sample<<endl; …

Member Avatar for Nick Evan
0
363
Member Avatar for addikted

hi.can u plz tell me where to put printf for timecount.here is the code for quicksort i wanted to calculate the time it takes. [CODE]#include< stdio.h> #include< conio.h> #include <time.h> #include <ctime> void shellsort(int a[],int n) { int j,i,k,m,mid; for(m = n/2;m>0;m/=2) { for(j = m;j< n;j++) { for(i=j-m;i>=0;i-=m) { …

Member Avatar for rahul8590
0
664
Member Avatar for jemz

plz help me how to make this code that accepts 10 integers and display the largest.thanks in advance ...hoping for your positive responds

Member Avatar for jemz
0
104
Member Avatar for Clawsy

Hi, I have an application with one JFrame and two modeless JDialogs. When I mimimize the JFrame, the dialogs are still there, not minimized. So i need to hide them. I can hide them with WindowDeactivated event which runs one time when the JFrame is minimized but when I want …

Member Avatar for Clawsy
0
1K
Member Avatar for nick447923

I am a beginning programmer and am having a problem with adding a record to a customer table in a Microsoft Access database. I have worked for hours reading my textbook and troubleshooting to no avail. When I execute this code below the record is not added and I do …

Member Avatar for nick447923
0
109
Member Avatar for number87

when I try to compile my project file in devcpp I get the following error: I tried googling but nothing seems to help when i tried them. CreateProcess((null), C:/cygwin/bin /sh.exe -c "g++.exe -c test.cpp -o test.o -I\"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include\" -I\"C:/Dev-Cpp/include/c++/3.4.2/backward\" -I\"C:/Dev-Cpp/include/c++/3.4.2/mingw32\" -I\"C:/Dev-Cpp/include/c++/3.4.2\" -I\"C:/Dev-Cpp/include\" ", ...) failed. Access is denied. C:\Users\dedl\Desktop\SAIM\SAIM3\OpenGLGLUT\Makefile.win [Build Error] …

Member Avatar for number87
0
3K
Member Avatar for qhuemone
Member Avatar for network18
0
71
Member Avatar for yasinirshad

Hi, Am getting this error "System.NullReferenceException: Object reference not set to an instance of an object." This error comes when i am trying to export crystal report in excel format. Exporting to pdf works fine though. On local development machine, exporting to pdf and excel works. On server, only exporting …

Member Avatar for guytang
0
249
Member Avatar for stocean

i've got a 404 error when i tried to call a servlet it said Not Found The requested URL /Login was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument handle the request. please help me solve this problem Thank …

Member Avatar for stocean
0
88
Member Avatar for veledrom

Hi, Is cURL FTP to upload word files to webspace or inhouse server is better option than using simple PHP file uploading function "move_uploaded_file()", if there are around 1000 user upload files in a day? Or is there any better solution? Thanks in advance

Member Avatar for veledrom
0
180
Member Avatar for phoenix_dwarf

Hi there, I'm trying to write a metronome for my brother (who is a drummer). He tried a few that was downloadable but want's to have a custom one according to his specs... Now i only have 1-2 months of C# programming experience (1 month for the following each aswell: …

Member Avatar for phoenix_dwarf
0
157
Member Avatar for xavier666

I was making a DEQUE program utilizing two separate lists for forward and backward traversal. But what I think I've done is ended up making [U]two separate lists[/U], having same data but only their [U]order reversed[/U], thus wasting memory :'(. So what I want to know is this how a …

Member Avatar for Narue
0
173
Member Avatar for jefanot

Hey, I wrote this code that makes you type two things, then it checks if it is the same. Well, that was it was supposed to do, but then it kept saying: expected primary-expression before "else" expected ';' before "else" Here's the code [CODE] #include <iostream> #include <time.h> #include <windows.h> …

Member Avatar for muzamal
0
1K
Member Avatar for Shyloo

Hi, I'm new to PHP.If i execute this code. It shows the warning as "Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in c:\wamp\www\login_action.php on line 15 Name Address Telephone company" I don't know how to solve this.[code]<?php include 'connection.php'; $uname = $_REQUEST['uname'];//extract($_POST); $uname $pword = $_REQUEST['pword']; …

Member Avatar for rajabhaskar525
0
122
Member Avatar for sathya8819

Hi, I would like to know if there is any way using C# to free the memory being used. I have a very complex application where OutOfMemoryException occurs frequently. Is there any code or any other possibility to free the used memory, say at the beginning of each iteration of …

Member Avatar for sathya8819
0
115
Member Avatar for kevndcks

[CODE]private JButton getBtnSave() { //if(btnSave == null) { btnSave = new JButton(); btnSave.setToolTipText("Save scan output"); btnSave.setText("Save"); btnSave.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { try { String lines[] = taOutput.getText().split("\\n"); for(int i = 0; i < lines.length; i++) { System.out.println("Value: " + i); BufferedWriter bw = new BufferedWriter(new FileWriter("audits.txt")); String …

Member Avatar for javaAddict
0
424
Member Avatar for phpDave

Hi. I building a site that users pay through paypal to insert data and would have to pay every month in order to store and display that data. I don’t want to delete the data if they don’t pay, just prevent it from being displayed on a non-restricted page. Almost …

Member Avatar for network18
0
100
Member Avatar for cwarn23

Hi and I have made a simple Java function/method and for some reason it is not working. It doesn't show errors. It doesn't display results. It returns nothing and forces other things around it to do nothing. Below is my script. [CODE]private String get_url(String address) { String result=""; try { …

Member Avatar for padtes
0
126
Member Avatar for network18

Its a scenario of message and the reply post for articles and the posted messages are stored in the database. This message as a parameter is passed to the script (lets call is 'insert.php') doing this insertion is called from the js function onclick of the submit. Inside this 'insert.php', …

Member Avatar for network18
0
164
Member Avatar for PeterTuffin

I have written a WCF client which consumes a 3rd party web service. I used the Visual Studio "Add Service Reference" wizard, and have used the code that it created without a hitch. It is great. Once I had my client tested on my own development PC and then again …

Member Avatar for PeterTuffin
0
982
Member Avatar for coolcool

can anyone suggest how to write a notepad app using c??algorithm for programming is needed..gui is not so important..graphics in c enough..i just need the idea of what to do..pls help me...

Member Avatar for Ancient Dragon
0
91
Member Avatar for judge6

Hi, what I am trying to achieve is to extract a certain word from a .txt file, eg. "word". I am also running an XML file into a dataset. Within this dataset I want to locate the column which has the name "word" (same string from txt file). Once I …

Member Avatar for judge6
0
86
Member Avatar for Bonx

First of all, normally i create web apps, so i'm a newbie to winforms. I have created a dataset with data from my DB and using that as my datasource for my gridview, a little bit of code: [code] // Define Connection string string DB_ConnStr = ConfigurationManager.ConnectionStrings["SupportTool.Properties.Settings.DB_Contact_ConnStr"].ConnectionString; // Define SQL …

Member Avatar for Bonx
0
88
Member Avatar for polisetty

i tried to copy the result of the java compilation to the text file using javac zz.java > compile.txt It works if the program has no errors and it did not work if it have errors

Member Avatar for parry_kulk
0
105
Member Avatar for mshravs

i used this code to upload the images from the local path. but when i'm trying to upload the images in the webpage it is not showing. can any one can tell what's wrong in the coding. it will be very helpful......................... [CODE] Protected Sub Button2_Click(ByVal sender As Object, ByVal …

Member Avatar for pauldani
0
97
Member Avatar for musthafa.aj

hello! i written a program..it has for loop and calling thread.sleep for every increment of for loop.. at the same time i initially called Swing Jtable which shows status of every for loop increment... when i executing main program swing table appearing but no content filled for every execution ... …

Member Avatar for rahul8590
0
103
Member Avatar for sathya8819

Hi, I am implementing a code which uses the FolderBrowserDialog control. Here is my code : [CODE]FolderBrowserDialog folder = new FolderBrowserDialog(); DialogResult result = folder.ShowDialog(); if (result == DialogResult.OK) { try { string path = folder.SelectedPath; string[] files = Directory.GetFiles(path, "*.jpeg"); foreach (string file in files) { using (Stream s …

Member Avatar for sathya8819
0
340
Member Avatar for JAM1011

Hey there, I am having a little trouble with my select statement. It works grand until I but a where clause in. then I the follow error [I]Syntax error (missing operator) in query expression 'MacStatus where((Rating =70 ))'.[/I] This is the string I am submitting to the DataBase . [CODE] …

Member Avatar for JAM1011
0
104
Member Avatar for amlanjyoti.s

Hello, this is the first time I am posting in DaniWeb.com. I am a first semester student of B.Sc(IT). Me and some of my batch mates are looking forward to organize a sort of code war, to give ourselves a test of team based projects and a sense of friendly …

Member Avatar for sathya8819
0
135
Member Avatar for teen-omar

Hey guys, I'm quite new to Java and I usually try to get things done on my own, but it seems like I'm just sooo lost now. Would really appreciate any help you guys can give me So here's the problem: I need my program to read a text file …

Member Avatar for javaAddict
0
134
Member Avatar for sushantp

People who have worked in JTAPI applications or more so with Cisco JTAPI must be aware of the makecall.java program. Well I am new to JTAPI and what better to start off then this example provided with the cisco SDK. Well I am using CCM 1.4 and its working perfectly …

Member Avatar for knowledgelover
0
269
Member Avatar for Gaiety

I am writing a program to create a window and a box in which the statements are printed but i am unable to get the correct out put. some times after executing the program its showing the commad line but what ever the commands i enter are not visible at …

Member Avatar for Salem
0
132
Member Avatar for CrazyBone

I am using an access db with asp, the db is named patriots.mdb and table is named Users what I have been attempting to do is pass 3 form entries from this page: <form action="verifymeaction.asp" name="frmVerify" method="post"> <input name="UserName" type=text size=30 maxlength=20> <input name="Password" type=text size=30 maxlength=26> <input name="Pin" type=text …

Member Avatar for murthis
0
114
Member Avatar for JBeginer7891

Hi everyone please help on this: I am developping a program in java, but I need the user to enter his/her details if they are compatible with the values in a database table he/she get access to the main interface. here is what I've done so far [CODE]import java.awt.BorderLayout; import …

Member Avatar for JBeginer7891
0
129
Member Avatar for amras123

[code] <?php $MD5Code = "kikugalanet"; // Your Neuz MD5 Code $dbAddr = "127.0.0.1"; // Your MSSQL Host IP $dbName = "ACCOUNTS_DBF"; // Your Account Database $dbUser = "root"; // Your Database user $dbPass = ""; // Your Database User password ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html …

Member Avatar for network18
0
220
Member Avatar for JayOne

Ok, at university we did a lot of Java. And I can remember the tutor saying "Exceptions are great for debugging applications, but shouldn't be used in deployed applications for error handling". Now I'm kinda confused, because I feel they provide a lot of flexibility in handling errors. So why …

Member Avatar for kvprajapati
0
119
Member Avatar for explorepython

Hello all, I want to display a hyperlink in qt. For this i need to display the link for the url (as underlined text). I can achieve it easily using style sheets and the url can be opened with webbrowser module.. I want to get the clicked signal of the …

Member Avatar for explorepython
0
752
Member Avatar for snarb

Hello, I'm new to vb. Basically, I want to learn how to remove the last part of a string if its seperated by spaces... For Example (How to change): "John said 687" To "687" or "John decided to say hello" To "hello" in otherwords, the last word of the string, …

Member Avatar for tede_saputra
0
141
Member Avatar for vizz
Member Avatar for moerpheus
0
115
Member Avatar for blitz9

Hi, I tried to make a game trainer, static address can be done. But since the game change it's address every time the game restarted it's make me frustated. Do you have a solution for this?

Member Avatar for blitz9
0
83
Member Avatar for manishanibhwani

in one of the question for beginners a program for moving a file was asked. i cud not find the algo can anyone suggest me the algo????????????

Member Avatar for Ancient Dragon
0
197
Member Avatar for Agent Cosmic

How do I convert the [I]this[/I] object to an array. Please help me, many thanks.

Member Avatar for Agent Cosmic
0
100
Member Avatar for jad2010

I am trying to build a VB.NET 2005 windows app which gets cars info from a webpage(webapplication) that has a username and password. I was able to programmatically login to this webpage(by automatically populating the input boxes using webbrowser control) And after I logged in, I could view the cars …

Member Avatar for jad2010
0
198
Member Avatar for basketball4567

I do realize that this is ugly code but i cant seem to have this program output "Your old". I dont know why my if statement is not working. Thanks [CODE]/* This class is to be used as new readline method */ import java.io.*; class ReadInput { public static void …

Member Avatar for darkagn
0
122
Member Avatar for mrnutty

In this challenge there are 3 question, beginner, intermediate, and others. Beginner: [b] [ICODE]1) Find the sum of all Natural numbers that are a multiple of 3 or 11, from 1 to 100,000. [/ICODE][/b] Intermediate: [b] [ICODE]The prime factors of 13195 are 5, 7, 13 and 29. What is the …

Member Avatar for mrnutty
0
146
Member Avatar for nikesh.yadav

I m working on a MLM project in which i have to store member automatically in binary tree form like 1 is root 2 is child of 1 3 is child of 1 Then 4 is child of 2 5 is child of 2 6 is child of 3 7 …

Member Avatar for bsnmurty
0
380
Member Avatar for sidnei

Hi, in my job, we use VB6 applications to control various needs, such as supply management, sell, buying, etc... We use ZEBRA printers, with ZPL print codes, directly from LPT1, wich seems like above code: Open "LPT1" For Output As #1 Print #1, "SOME TEXT TO PRINT" Close #1 (Of …

Member Avatar for SCBWV
0
1K
Member Avatar for zrin

Hi! I am working on another program, this time it's a guessing game. I have spend so many hours late in the night, but i can't figure out how to fix this problem. I won't the program to read the input number and display if it is bigger, smaller or …

Member Avatar for zrin
0
112
Member Avatar for Skeen

So I'm quite new to c++, and I'm really into pointers, does anyone got like, an idea on how to really get to know pointers, assignments, tasks, tutorials, ect. Basically, my knowledge in C++, is classes, operator overloading, and like simple stuff, so if you're able to come up with …

Member Avatar for manishanibhwani
0
93
Member Avatar for mythili_sharon
Member Avatar for manishanibhwani
0
140

The End.