199,114 Archived Topics
Remove Filter ![]() | |
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; … | |
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) { … | |
plz help me how to make this code that accepts 10 integers and display the largest.thanks in advance ...hoping for your positive responds | |
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 … | |
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 … | |
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] … | |
can someone kind give me a sample code it will be highly appreciated thanks! | |
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 … | |
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 … | |
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 | |
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: … | |
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 … | |
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> … | |
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']; … | |
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 … | |
![]() | [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 … |
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 … | |
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 { … | |
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', … | |
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 … | |
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... | |
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 … | |
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 … | |
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 | |
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 … | |
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 ... … | |
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 … | |
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] … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
[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 … | |
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 … | |
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 … | |
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, … | |
How to allow user to add images to display at his/her profile area? | |
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? | |
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???????????? | |
How do I convert the [I]this[/I] object to an array. Please help me, many thanks. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
i need the difference between i++ and ++i, where is i++ used and where ++i is used |
The End.