199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for cousinoer5

I'm taking an advanced C++ class now, and everything up to now has been pretty simple (mostly review stuff), but now we got to binary file io and it's kicking my butt. This program is supposed to read from a file called "Hardware.dat" (or create it if it doesn't exist), …

Member Avatar for cousinoer5
0
485
Member Avatar for reemhatim

long seats; long no_of_guests; long fact=1; cout<<"Enter the number of seats nn"; cin>>seats; cout<<"nnEnter the number of guestsnn"; cin>>no_of_guests; for(int i=0;i<seats;i++) { fact*=no_of_guests; no_of_guests--; } cout<<"the possible combinations : "<<fact<<"nn"; this code has run successfully but there is a something that I couldn't get first this program will run this …

Member Avatar for Momerath
0
86
Member Avatar for Tellalca

Hey; I am trying to keep a data file but I'm getting confused with the sizeof(char) = 2 bytes. I understand that it is a unicode char but why does class BinaryReader's function ReadChars(int count) function just increases the streams position by count bytes ? If that is not clear …

Member Avatar for Momerath
0
191
Member Avatar for Dasharnb777

Hi, I have a matrix. And I need to get 1D arrays from my matrix. For example, I have follow matrix: 123 456 789 So it looks like 3 [B]arrays[/B]: 147, 258, 369. But I got "Index out of range exception" in this code: [CODE] int[] b = new int[n]; …

Member Avatar for Dasharnb777
0
135
Member Avatar for fawadkhalil

Hi i was installing sql 2000 on win 7 but it gave a message something like "sql have compatibility issues with this version of windows". I want to use sql 2000 with vs2005. Is it possible to run sql server 2000 on win 7? If yes how can i run …

Member Avatar for JemB
0
227
Member Avatar for john0563

Hello, I was hoping for some help in the right direction. I am creating a PHP/MySQL script and I was wondering what is the best way of being able to use it as a standalone application on a local computer. It's a little complicated, but let's say it's an online …

Member Avatar for vsmash
0
599
Member Avatar for ptara1

I have a script that calls up a picture stored in a database. I then have a script that displays said picture on another page. If there is no picture in the database I would like for their to be a no picture icon displayed. New to php but I …

Member Avatar for ptara1
0
2K
Member Avatar for frank33

In my code I am trying to draw/define a line but despite my best efforts I cannot make it appear as thick as I would like. To be more exact I cannot do that INSIDE A GROUP BOX, although outside that box the definition is exactly as required. The full …

Member Avatar for frank33
0
191
Member Avatar for musikluver4

How do you allow an action to be performed when a user selects a specific item on a Choice() component? For example: If a user selects a specific item on the Choice() component, I want a JTextField() to be set to .setVisible(true) and appear. Anyone?

Member Avatar for musikluver4
0
85
Member Avatar for WildBamaBoy

I'm doing a client and server program and I am having issues getting my computer's local IP address. [ICODE]Dns.GetHostAddresses(Dns.GetHostName());[/ICODE] returns 2 addresses for me. My computer is behind a router with 2 others on the network. The code returns 192.168.1.2 (I know this is my computer), and 192.168.56.1 (I have …

Member Avatar for WildBamaBoy
0
1K
Member Avatar for JaviP

Hello, I am new to C++ programming. I need to do this problem for a class but I'm a bit stuck, it's giving me many errors, could anyone point out what the problem is please? This is the problem: A country club, which currently charges $2,500 per year for membership, …

Member Avatar for JaviP
0
623
Member Avatar for Neversleepin

Hi, i'm trying to copy and paste 12 last modified files from a folder to another one. my code is working but it gets every files in the folder with any dates. any help will be appreciated. Thank you very much [CODE]import java.io.*; import java.text.*; import java.util.*; class FileFilterDateIntervalUtils implements …

Member Avatar for Neversleepin
0
248
Member Avatar for addlou

Write a method called newTest(String input) that accepts one input. Input is a string stored as a variable called input and returns nothing back. Method should test to see if the string’s first and last characters are the same and should disregard case. Use a string method that converts to …

Member Avatar for mKorbel
0
163
Member Avatar for baziili

I tried to import a table intro a database and MySQL give me the next error message: "[COLOR="Red"]MySQL said: #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''table_ro2' INSERT INTO 'table_ro2' …

Member Avatar for mwasif
0
303
Member Avatar for spencer.kindt

I'm in a beginner Java class at school and I'm having a hard time getting this to work. Most of our problems require JOptionPane and for or while loops and if statements and those kinds of things... For #6, I'm thinking about using a while loop and a for loop …

Member Avatar for spencer.kindt
0
181
Member Avatar for TheAgent1982

I am newbie in programing, and learning it... I need to know how do i make that program: Examples will help... I need to use UDP communication to connect to server by client and search, at server,for the longest directory, get the longest directory path and number of deepest level, …

Member Avatar for TheAgent1982
0
261
Member Avatar for sipchen

In reference to this post [url]http://www.daniweb.com/forums/thread43763.html[/url] I have another more specific question about passing data between forms in VB.net I have a form with over 50 variables that I need to access on a second form and if i followed the method above, my form 2 will end up way …

Member Avatar for Mariandi
0
2K
Member Avatar for annndrey

Hi all! I have a question about PyQT4. How can I get an index of current cell, in which the cursor is whitout clicking on it? According to official documentation of QT there are only signals that send current index when you click on it. But if you just enter …

Member Avatar for annndrey
0
275
Member Avatar for alex55

on line 32 how would i go about inputting a file name to be called by my function which im using a const char pointer for the file name line 33) error C2664: 'calculationOutput' : cannot convert parameter 1 from 'char' to 'const char *' [CODE]#include<iostream> #include<fstream> #include<string> #include<iomanip> using …

Member Avatar for jonsca
0
109
Member Avatar for oliminator123

Hi, new here but would appreciate some sort of help. I have to create a program that takes 20 random strings from a string array of 40 words I made, and store them into a new string array called second. Directions: -create random # generator -generate random # between 0 …

Member Avatar for oliminator123
0
816
Member Avatar for priyamehta

Hello, I am new to programming and I have to write a program to perform a fast search on address book. The address book records are in csv file and contains 4 fields - first name, last name, phone number and company name. My problems are - 1. How do …

Member Avatar for priyamehta
0
323
Member Avatar for alex55

how would i go about doing the std output to a file for this line? to be more clear i want it to append to the file not overwrite because i run the function multiple times outputting to the same file [CODE]std::outFile << "The area with the highest average temperature …

Member Avatar for alex55
0
136
Member Avatar for codeblock

Hi all, i have a problem in writing a block of SQL code in mysql. The block of code will have too delete a single row/record from about 23 related tables all at once. The code that i have written so far will only delete 1 row/record in 10 related …

Member Avatar for codeblock
0
138
Member Avatar for addlou

I need help showing me where I went wrong. Given problem is. Print to System.out a new string composed of every alternate character in sentence starting with the first. Use a loop to go through a string and retrieve characters from alternate index positions. Append these characters to another string …

Member Avatar for addlou
0
4K
Member Avatar for shadyabhi

We have to login to a http page so that I can surf the net. But, that login page also requires me to keep that page open which is very irritating. The page have javascript that checks if the page is loaded every 180 seconds, it its not loaded, I …

Member Avatar for Agarsia
0
311
Member Avatar for zeeshan_kust

i retrieved data from mysql table into html page i.e [code]$query="select * from student"; $result=mysql_query($query)or die(mysql_error()); while($rs=mysql_fetch_array($result)) { ?> <tr> <td align="center"><?php echo $rs['st_id']; ?></td> <td align="center"><?php echo $rs['name']"; ?></td> <td align="center">&lt;input type="checkbox" name="check" <?php if($rs['checked']==1){echo "checked"; } ?> /></td> <td align="center"><a href="delete_student.php?id=<?php echo $rs['st_id'];?>"><img src="images/delete_icon.png" alt="Delete" /></a></td> <td align="center"><a …

Member Avatar for diafol
0
117
Member Avatar for niranjan889

Sir, i have done this code but an error is coming...... [B]the function getline should have a prototype undefined symbol 'string' [/B] what shoul i do? I am compiling this code in turbo c++ compiler..... [CODE]#include<string.h> #include<iostream.h> #include<conio.h> using namespace std; int main() { string number; string name; cout << …

Member Avatar for VernonDozier
0
93
Member Avatar for Muhammadlodhi

Hi .. i want to print this pattern of number using loops . if input is 5 then output should be ... 155555 224444 333333 444422 555551 i have solved 1 22 333 4444 55555 but another reflection is not coming in my mind ... and making me confuse need …

Member Avatar for Muhammadlodhi
0
109
Member Avatar for aaronmk2

I am putting 20 objects in an array then I am using a bubble sort (not the most efficient, I know) to organize the set from highest to lowest. I am wondering if there is a way to do this without using sets (mutators)? Code is below. using System; using …

Member Avatar for aaronmk2
0
96
Member Avatar for public-image

Hi there :) I am doing a login log script and at first I didn't record the timestamp unlike all my newer logs, I was wondering is there a way to turn the date d/m/Y (15/02/2011) turned into a timestamp? I would appreciate any help given Thank you in advance!

Member Avatar for diafol
0
89
Member Avatar for RicardoE

Hi, Today I was reviewing traffic for one of my websites, I found out that someone linked a jpg image into a forum, and now its getting huge bandwith I mean a lost of hits even when the image was deleted, hits I could use, is there a way for …

Member Avatar for RicardoE
0
152
Member Avatar for nrkumarvj

Hi I am preapring a website form where the resume needed to be uploaded and it should send an email to me along with upload as attachment. Please let me know the error in this below forms: == HTML Form: [CODE]<form method="post" name="mailform" action="emailnew.php"> <table width="200" border="0" cellspacing="0"> <tr> <td …

Member Avatar for diafol
0
302
Member Avatar for saira-nazir

i want to use if within while loop plz check it out and point out the mistake [CODE]$n=2; $e=8; $n=$e; while ($n<=$e) { if ($n%2=0) { echo"result is " .$n $n=$n+1; } else { echo "invalid"; } }[/CODE]

Member Avatar for diafol
0
108
Member Avatar for -acir-

[ICODE] here's my code below and i cant seem to find out how to return to public static void main after selecting yes in the dialog box. this cud be a very damn question however i get confuse about how to resolve this. thanks. by the way, this program is …

Member Avatar for -acir-
0
886
Member Avatar for james6754

Ok..I am asking a similar sort of question... If I have a Form...I then take the values of of textboxes(user entered) and pass them in to the constructor of the class and set the attributes to the values passed in to the constructor. I know I can create objects myself …

Member Avatar for james6754
0
93
Member Avatar for nice_candy

hi, i have created an ASP.net web service that contain a webmothod that return the string. now i want to add an other method into that method. like following [code] [WebMethod] public string hello() { sum(); return "abc"; } public int sum() { return 10; // it does not make …

Member Avatar for Fortinbra
0
129
Member Avatar for Asim Javaid Far

I am asim, hi, i have uploaded my site first time and but unfortunately i got errors in web.config file that is as below: [CODE]<?xml version="1.0"?> <!-- For more information on how to configure your ASP.NET application, please visit http://go.microsoft.com/fwlink/?LinkId=169433 --> <configuration> <connectionStrings> <add name="ConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient" …

Member Avatar for Fortinbra
0
250
Member Avatar for judithSampathwa

hi there i have a database called employee and in that there is a table called EmpDetails and in that there is column namely firstname awhat i want to do is to return all the first names in the database. i am using the 3 tier architecture. from the dbcommection …

Member Avatar for Mitja Bonca
0
324
Member Avatar for villalandron

Hello! I am trying to finish this Recursive multiplication program and I am stuck. What I need to do is write a recursive function that accepts two arguments into the parameters x and y. The function should return the value of x times y. I used this program from the …

Member Avatar for jon.kiparsky
0
184
Member Avatar for Dexxta27

Well first of all. I am pursuing my associates in CIS, and wanted to continue by getting a bachelors in CIS. The university I am able to go to(UWI*) does't offer that, instead it has MIS and CS. I have done one year of CS(CAPE*) before, and MIS does too …

Member Avatar for Dexxta27
0
164
Member Avatar for Python_nooby

Hi, I was hoping to create an application where the user can open a file from their hard drive (using the askopenfile dialogue from tkFileDialog) and it would display information such as file name / size. I managed to get everything working correctly except for displaying the information. I tried …

Member Avatar for slate
0
887
Member Avatar for TheOnlyNemesis

Hey, i am struggling with this program, i have tried everything i can think of but it still says missing return statement on public String processInput(String theInput){ [CODE]package clientserverassignment; import java.net.*; import java.io.*; public class Protocol1 { private static final int WAITING = 0; private static final int SENTTOS = …

Member Avatar for jon.kiparsky
0
214
Member Avatar for davidmhollis

I am running a batch file using msxsl to take an input xml file like below <ns1:invoicedata> <data1>1</data1> <data2>2</data2> </ns1:invoicedata> I need to copy this original output and replace the values with the input file values <ns2:invoiceoutput> <data3>3</data3> <data4>4</data4> <data5>5</data5> </ns2:invoiceoutput> so that it ends up with the following data …

Member Avatar for davidmhollis
0
246
Member Avatar for barizon

Hello everybody! I need to get the values of two hidden fields and values that make a query in my database and return this column to a text field in the same form, I have already informed the forum here that can do that with Ajax, researched and made an …

Member Avatar for UzuNarU
0
96
Member Avatar for manju11

hello, I am new in perl..i am just trying to connect perl with mysql database. for this i installed xampp server in my system..and now perl,apache and mysql are running on my system. i also check server by running cgi program on it.. evrything is right.but i dont know why …

Member Avatar for mitchems
0
231
Member Avatar for nagmvs

Below i attached an attachment. This is an Interview question.Can u people please help me ?? Thanks, Nagesh.

Member Avatar for Ezzaral
0
119
Member Avatar for sjones1025

Hi there, I am somewhat new to Python and I am writing a test that passes in URLs. I want to have a loop that will pass in different parameters. I cannot get past the error "TypeError: float argument required, not str" What am I doing wrong? [CODE]url3 = "http://standardsService/Standards.svc/Standards()?$filter=Authority%20eq%20'%s'&$inlinecount=allpages" …

Member Avatar for sjones1025
0
106
Member Avatar for Martje

I have been trying to capture the enter key in a windows.net textbox but i have no idea how to do it, i googled searched but the only examples i find are visualbasic and c# ones and when i try to do thesame thing in c++ in doesnt work. I …

Member Avatar for Martje
0
469
Member Avatar for arelius

Hello All, On my local machine, my website works perfectly. All the functionality that I have made works great. I then copy my folders from my local machine to my test development web server. Once this occurs, certain functionality of my website no longer works, yet it is a direct …

Member Avatar for Fortinbra
0
112
Member Avatar for JerieLsky

Hi, i don't know if i'm in the right category in posting this thread. I'm only newbie in creating webpages. I created just a simple web page made from wamp server(php & mysql), now I just want to try how to deploy it, like posting it in a free web …

Member Avatar for sudeepjd
0
228

The End.