64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for mikedeomon

The code below works but does not loop through each name in the txt file (loops only when i just want to print their names from the text file) , it only returns the details of the last user in the list rather than returning individual user details one by …

Member Avatar for woooee
0
198
Member Avatar for sirlink99

I am learning C++ and I learned that you can create your own types. I decided to try this in java. I am wondering if there is an easier way to make a bunch of variables private other then typing out private for each of the created variables. for example …

Member Avatar for sirlink99
0
119
Member Avatar for gujinni

anybody know how to explain this??? set_difference(a.begin(), a.end(), b.begin(), b.end(), result.begin()); std::=is this algorithm??? how thus this code work??? vector<char>=how vectors work??? cassert=how thus this work??? back_inserter(setDifference)->i don't know how this code work???

Member Avatar for gujinni
0
270
Member Avatar for zifina

I HAVE A PRINT BUTTON IN MAIN FORM. THERE ARE many child forms.when we click the print on the main form, it has to print the details in the form that was open previously (because,when we click the print button,the main form gets focus.So,the form to be printed is actually …

Member Avatar for zifina
0
133
Member Avatar for jdstone550

Can anyone see why the function "option3" isn't calculating the values for pmt and totalRetirement? The program runs, but I get 0's for those values. If I remove the function and place the code directly into the case option, the calculations work. [CODE]#include <iostream> #include <string> #include <cmath> using namespace …

Member Avatar for jdstone550
0
100
Member Avatar for gujinni

Anybody know how to remove the duplicate characters in turbo c++. the output is like this: enter string1:abc enter string2:bcd result:ad

Member Avatar for theguitarist
0
266
Member Avatar for rhuffman8

I am still relatively new to Python and don't think I'm familiar/comfortable enough with my understanding of the datetime functions... I want to take just the current month from the datetime function so I can use the number to send the string of the month (ex, datetime would give me …

Member Avatar for griswolf
0
201
Member Avatar for zifina

hi all, i have forms with 2 or more tab pages in them. i would like to know how can we open or display "tabpage1", when we click a button "btn"in "tabpage2"... please help me..i need a reply soon.. thanks all..

Member Avatar for zifina
0
94
Member Avatar for bklynman01

I have a training program that is used by MANY different people. I have encountered many formatting issues already (like not allowing initials) but now I have a new one that I'm not sure about. When the code tests the name in the TextBox.Leave function, I can find if there …

Member Avatar for bklynman01
0
160
Member Avatar for bobytch

Hello everyone ok straight to the point i have to do this a text or a word that is blinking and have color and while it is blinking it is automatically changing its color i know how to do a text with color and blinking but i don't know how …

Member Avatar for Ancient Dragon
-4
3K
Member Avatar for Zedith

Must need coffee or something :/ Cant figure this out. I have a table with following info: [CODE][B] unique_id block_id column_id order_id user_id[/B] 1 block-1 column-2 0 1 32 block-2 column-3 0 7 7 block-1 column-1 0 2 8 block-2 column-2 0 2 10 block-6 column-2 1 1 11 block-7 …

Member Avatar for Zedith
0
244
Member Avatar for jeanyl

Thus someone know how to solve my problem? I am going to make a program which is set_difference without using predefined functions???

Member Avatar for Narue
0
115
Member Avatar for bibiki

Hey there, I might not be able to accurately describe my problems, but I'll do my best. I am taking these tutorials on adobe website that walks me through building a flex web application. In order to take the tutorials, I needed to previously deploy a war file that sets …

0
243
Member Avatar for mbarandao

Hello, I'm trying to write a sql statement that would update a record only if a particular row column is empty; else, insert a new record. Is this doable? Currently, I have this update statement: [CODE]//query for additional cars 1 $mysql_query=("UPDATE additional_cars SET clientID='$edit_clientID', registeredstate='$edit_registeredstate', dhtmlgoodies_category='$dhtmlgoodies_categoryupdate', dhtmlgoodies_subcategory='$dhtmlgoodies_subcategoryupdate',caryear='$edit_caryear', servicearea='$lastservice', currentmileage='$edit_currentmileage', todays_date='$date2', …

Member Avatar for mbarandao
0
186
Member Avatar for moni94

Hi. Let's say I have the following method: [CODE] void createNewObject() { MyClass myObject = new MyClass(); } [/CODE] If I call this method 1000 times, how many instances of MyClass will be left in my program's memory by the time all calls have been made? 1000, 1, or 0? …

Member Avatar for JamesCherrill
0
201
Member Avatar for b1izzard

Hi all, I need a little bit help in creating a small thesaurus like application in java. The application consists of some 50-100 categories and each category have some 2-10words of similar meaning. e.g Close-{shutdown,fold,end,come together} The words are hard-coded but I don't know which data structure suits the best. …

Member Avatar for JamesCherrill
0
200
Member Avatar for Danny159

Hey, I have the following script... [CODE]if(!opendir($image_dir)){ echo info_msg("Ooops... This Album contains no images"); }else{ /* step one: read directory, make array of files */ if ($handle = opendir($image_dir)) { while (false !== ($file = readdir($handle))) { if ($file != '.' && $file != '..' && preg_match("/t/",$file) && $file != …

Member Avatar for pritaeas
0
208
Member Avatar for canadaussie12

Hello, I am very new to PHP and hope that someone here might be able to help with a challenge I cannot solve (yet). I have created a simple hmtl form and corresponding php file which send some information to the designated email. However, I am not sure how to …

Member Avatar for canadaussie12
0
180
Member Avatar for Aardwolf

How would I do this in 1 line [code] $name = $firstName + " " + $lastName; //output: 0 [/code] the problem is what I think it is, is that its trying to add like mathematics. whilst I want the '+ " " +' to become a space in between …

Member Avatar for karthik_ppts
0
131
Member Avatar for mogaka

Hi brothers,i am creating an application that i want to load a pre-designed crystal report from database records and print it in pdf format and send it as e-mail attachment. I know how to send it as an attachment but i don't know how to print it in pdf automatically …

Member Avatar for mogaka
0
129
Member Avatar for f_atencia

I'm trying to get the properties for the following objects: 0: [object Object] 1: [object Object] 2: [object Object] 3: [object Object] This was generated by using the following code: [CODE] var s = ""; for (var property in this.oProducts.Product) { s = s + "\n "+property +": " + …

Member Avatar for Airshow
0
84
Member Avatar for divakar.it

Hi, My requirement is to delete a selected row in the datagrid from SQL server. If no row is selected then nothing should happen. Below is my code [CODE] Private Sub BT_Remove_Click() On Error GoTo ErDsc: Dim MyConn As ADODB.Connection Dim MyRecSet1 As New ADODB.Recordset Set MyConn = New ADODB.Connection …

Member Avatar for divakar.it
0
1K
Member Avatar for klemme

I have this code, which creates the pages, taken from the DB: [CODE] function subject_navigation($connection){ $sqlCommand = "SELECT id, linknavn, pos FROM subjects ORDER BY pos ASC"; $query = mysqli_query($connection, $sqlCommand) or die (mysqli_error()); while ($row = mysqli_fetch_array($query)) { $sid = $row['id']; $linklabel = $row['linknavn']; echo '<li><a href="index.php?sid=' . $sid …

Member Avatar for klemme
0
103
Member Avatar for Thropian

I was thinking of doing some simple animations in python,Tkinter and my biggest problem was getting things to move together. so I was wondering if there was a way to make say an arc and rectangle into one object to rotate and such. thanks in advance

Member Avatar for Thropian
0
184
Member Avatar for scrivomcdivo

Hey folks. I'm tying to carry out a simply task of writing a variable double value to a label on my form. The label is called 'lblTotalSeats'. Here's my code below: [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace ABCDEFG { …

Member Avatar for scrivomcdivo
0
350
Member Avatar for varoluscu_prens

Hi there; I've received a irritant problem in my php code. Here is "index.html": There are some javascript functions defined in the "head" tag. [CODE] <form autocomplete="off" action="result.php" method="post"> <p> <label>Name:</label> <input type="text" id="name" /> </p> <p> <label>Nachname: </label> <input type="text" id="surname" /> </p> <p> <label>Abteilung</label> <input type="text" id="department" /> …

Member Avatar for varoluscu_prens
0
187
Member Avatar for MagnetoM

I created a new item > local database. I'd like to access the data from the database but I can't open a connection. I have, [CODE]SqlConnection con = new SqlConnection("DataSource=|DataDirectory|\\testDB.sdf");[/CODE] debugging will always halt at [CODE]con.Open();[/CODE]

Member Avatar for MagnetoM
0
201
Member Avatar for baby_c

hello friends..got a problem again.. I'm developing a software for one of our assignments.I have coded that program using Netbeans but we have to upload the assignment as one java file.So I created one java file and again checked in netbeans as a single file.It works perfectly.And then I tried …

Member Avatar for baby_c
0
216
Member Avatar for intes77

Hello im currently having problems with the storing of String to an array im currently using a GUI output so it reads inputs from the textfield here's my code: [CODE]import java.util.*; import javax.swing.*; public class Contents { int listLength; String []word; String []meaning; String []sentence; String []classification; public Contents(int l) …

Member Avatar for intes77
0
806
Member Avatar for barriegrant1

im trying to enable a button that is disabled within an itemTemplate, if theres a session then the button will be enabled. however i cannot access the button object in the code-behind file. HTML CODE ---------- [CODE] <div id="gal_wrap"> <asp:ListView ID="ListView1" runat="server" EnableModelValidation="false" OnPagePropertiesChanging="listItems_PagePropertiesChanging"> <LayoutTemplate> <asp:PlaceHolder ID="itemPlaceholder" runat="server" /> </LayoutTemplate> …

Member Avatar for barriegrant1
0
533
Member Avatar for MagnetoM

I'd like my form to remain in the same place the entire time until closed or not opened. How do I make this happen?

Member Avatar for MagnetoM
0
91
Member Avatar for atfOnly

Hello people :) i'm trying to insert query result into 2 dimensional array i have tried the following way.. [CODE] $query=mysql_query("..."); while($row=mysql_fetch_array($query)){ for($i=0;$i<=$index;$i++){ if(isset($myarray[$i]['array1'])|| isset($myarray[$i]['array2'])){ array_unshift($myarray[$i]['array1'],$row['study_period']); array_unshift($myarray[$i]['array2'],$row['test']); }//endif }//endfor }//endwhile [/CODE] But, it failed i also tried.. [CODE] $query=mysql_query("..."); while($row=mysql_fetch_array($query)){ $myarray=array( array("array1"=>$row['study_period'],"array2"=>$row['test']) ); }//endwhile [/CODE] it failed too since it …

Member Avatar for atfOnly
0
272
Member Avatar for DrunkMunki

i have no idea where to start but; i'm looking for a way to change all emails from [email]suppliers@test.domain.com[/email] to [email]title@test.domain.com[/email] in a MySQL DB. DB Name: simons_directory Table: listing Fields: title, email caveats - title has words with spaces, if possible to remove the spaces so "My Business Name" …

Member Avatar for DrunkMunki
0
368
Member Avatar for Voldemort2

I have the input string "textfile\foldername\text.txt" Now i need to convert given string to: textfile/foldername/text.txt I went through string.replace(oldchar, newchar) methods, but i actually couldnt remove the " and \ characters from the string. Need help

Member Avatar for stultuske
0
135
Member Avatar for PomonaGrange

Hi all, I want to sort some sql results by a certain list. I don't want it sorted alphabetically or anything. I want to specify a certain list. eg "order by `office` = 'president', 'vise President', secretery'" ect. Is there anyway to do this? I didn't type this example exactly …

Member Avatar for theb3s7
0
143
Member Avatar for johang_80

Hi Everyone I need some help. I would like to remove characters from a string that are contained in brackets. For example string (Hello)World, I want to remove the (Hello) part. Is there a way. I can't solve it with the replace or remove methods. I am new to C# …

Member Avatar for johang_80
0
411
Member Avatar for 54uydf

Hi, how do I add (using SQL) string that has the char ' ? I have many words that look like this- dsf'dfdf or dfsdf' but when I'm trying to add them the query command thinks that the ' is the end of the string and then messes up everything …

Member Avatar for 54uydf
0
121
Member Avatar for PHIPH
Member Avatar for thecoolman5

hi, i have this code [CODE]#include <fstream.h> #include<iostream> using namespace std; int main (char argc) { for(;;) { fstream file; file.open("file.txt"); cout << "Enter new high score." << endl; double n2; cin >> n2; double n1; file >> n1; if(n1 > n2) { cout << "You didn't beat the high …

Member Avatar for thecoolman5
0
1K
Member Avatar for shurshot

Hi all, I'm new to this forum and I am also new to Python and coding in general. While I've gotten through basic tutorials on most general topics of Python such as series, dictionary, parameters, loops, and so forth I am still very much a newbie (as you will see …

Member Avatar for TrustyTony
0
353
Member Avatar for clickspiker23

i got c++ off amazon, no solutions are provided for the end of chapter exercises my problem is with getting larger numbers to be only two decimal places. i know about setprecision and how it works for the smaller numbers but when i enter a large number for days worked …

Member Avatar for clickspiker23
0
147
Member Avatar for tomtetlaw

I have a pure virtual base class called IVSystemDLL. I also have a class called CVSystemDLL which inherits from IVSystemDLL. When I create a [icode]new[/icode] CVSystemDLL and convert it to a IVSystemDLL *, and try to use one of it's functions, I get an access violation. It's not something inside …

Member Avatar for tomtetlaw
0
2K
Member Avatar for gujinni

anybody know how to remove the repeated characters/// The output is like this.. string:aaaaanffddddgjkh result:afdgkh

Member Avatar for gujinni
0
190
Member Avatar for Geowil

Hey everyone, I need some major help. I was going to get some development time in on one of my projects when I found that my installation of VS2008 Pro no longer wanted to compile any projects. I have tried making empty problems with just the int main(), nothing else …

Member Avatar for Geowil
0
527
Member Avatar for amanu092

I am working in a joomla project.Suddenly i see a unwanted link as [url removed] is added to some text of some pages. i can not understand and cannot fix the problem. please help me removing the unwanted link.

Member Avatar for jsolutions
0
151
Member Avatar for baby_c

Dear friends, I'm developing a software for one of our assignments. But the problem is I's still learning these things.But since I have bunch of Java expert friends I have no fear to face it ;) .So friends this is the code. [CODE]package census; import java.io.*; public class Main { …

Member Avatar for baby_c
0
163
Member Avatar for RazorRamon

Hello all, I'm trying to build a forum site. The code below works fine but I dont know how to catch it from the address bar. I'm having trouble finding tutorials to help me with this. viewtopics.php [CODE] echo "<tr bgcolor='#6698FF' ><td><a href='viewcomments.php?id=".$rows['topic']."'> ".$rows['topic']."</a></td><td>".$rows['username']."</td><td>".$rows['timestamp']."</td></tr>"; [/CODE] Address Bar [CODE] http://localhost/testsite/viewcomments.php?id=Cowboys%20Dancehall [/CODE] …

Member Avatar for RazorRamon
0
289
Member Avatar for haranaboy

[CODE]<html> <head> <script type="text/javascript"> function test (){ //refer tst to a new Objy object. var tst = new Objy(); alert(tst.display()); } function Objy(){ try{ this.prototype.display= function() { this.text="yoyo"; }; } catch (err){ alert (err); } } </script> </head> <body onload="Javascript: test()"> <div id="display" > </div> </body> </html>[/CODE] Hi, I'm basically …

Member Avatar for haranaboy
0
142
Member Avatar for gauravk_bhanot

[CODE]#include<iostream> #include<conio.h> using namespace std; class base{ public: base() { cout<<"base constructor"<<endl; getch(); } virtual void out() { cout<<"I AM BASE"<<endl; getch(); } }; class derived : public base { public: derived(){ cout<<"derived constructor"<<endl; getch(); } void out(){ cout<<"I am derived"<<endl; getch(); } }; int main(){ base b,*bp; derived d; …

Member Avatar for gauravk_bhanot
0
207
Member Avatar for teo236

I want to redraw a JPanel while my program is running. Here's a fragment of my code: [CODE]public class Graph extends JPanel{ public void redrawSomething() { getGraphics().drawRect(15, 5, 20, 5); repaint(); }[/CODE] I tried to call "redrawSomething" but nothing happend. How do I fix it? Is something wrong?

Member Avatar for teo236
0
246

The End.