64,152 Solved Topics
Remove Filter ![]() | |
Having a problem with assigning a string in this linked list, any ideas? the line that reports an error is highlighted in red. I would expect this to work as variable 'name' is a char array and i am simply assigning the string "Vin" to it. [CODE]#include<stdlib.h> #include<stdio.h> typedef struct … | |
I am just beginner in c++ so I am weak in debugging c++ codes. I am having problem with the code below. It is showing segmentation error and i am not able to remove in from the code. I am using g++ editor in linux. #include<iostream> #include<string.h> #include<stdio.h> #include<stdlib.h> using … | |
Dear All I am a newbie Java Learner.I try to learn over Java API Docs.But still I need some help. I have a gui which consist of four textfields(tf1,tf2,tf3,tf4) and a button(b1). If I press the button(b1)"Register", I want my action write whole textfield sources into a text.txt file by … | |
Hai, I am new java developer. Now i am doing one struts application. In my application, at the User registration time, i need to Encrypt the password field and then i like to store into the database. After that the same user will be logging, at the moment the database … | |
<body> <p> <?php $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("select", $con); $result = mysql_query("SELECT * FROM view"); ?> </p> <form id="form1" name="form1" method="post" action=""> <table width="100%" border="1" cellspacing="0" cellpadding="0"> <?php while($row = mysql_fetch_array($result))?> <?php { ?> <tr bgcolor="#F5F5F5"> <td > <?php echo $val['name']; … | |
its a simple car parking fee calculator that uses timer start and stop value to calculate hourly fee.... | |
Dear all, I need to send a string value along with an 'Enter' keystroke from an active form to a multi-line text box in an inactive form. Tell me a way to do this in VB6. Thanks. | |
Dear Experts I have loaded a picture in PICTUREBOX1 by this command Me.PictureBox1.Image = Drawing.Image.FromFile("D:\C2007\BITMAPS\pict.jpg") How to store this picture SQL server 2005 table1's IMAGE column? I do not want to store image path in table. I want to store picture in image column in any format. Reason: If I … | |
Hey everyone. BKJ here, need some help with a homework, really appreciate some help. Heres the question: Write a program that reads one line of text, one character at a time, and then prints it with all its blanks, commas, astricts (*) and periods removed. Heres my answer:[CODE] #include <iostream> … | |
I am writing Spring web MVC app whereby the client and the server communicates by sending json messages. On the client I am making asynchronous calls to update textboxes. Could you please let me know if I am using the right syntax? I have hit a brick wall and cannot … | |
[CODE]#include<stdio.h> int main() { int i,j,k,c; char s[1000]; //array to store the input string for(i=0;(c=getchar())!='.';++i) //string to be ended with '.' { s[i]=c; for(j=0;j<=i;++j) { if((s[j]==s[j-1])&&(s[j]=='\n' || s[j]=='\t' ||s[j]==' ')) { j=j-1; } } for(k=0;k<=i;++k) printf("%c", s[k]); } return 0; } [/CODE] I am trying to create a program that … | |
Hi all ! I 'm working with my friends in a basic game project ( it 's just a newbie one, though ) I 've searched and tried all tips that I 've found : setting the include Directories, adding the Linker, copying SDL.lib and SDLmain.lib to VC++ lib folder, … | |
So, I'm having another problem this time... I'm on Windows 7 x 64, working with VC++ 2008 Express I've been working on this DX10 tutorial up to this point where I tried to build my project and got this : [CODE=CPP]error LNK2019: unresolved external symbol _D3D10CreateDeviceAndSwapChain@32 referenced in function "void … | |
I have this error when debugging called Debug Assertion Failed , does anyone know what that means? Im using Visual C++ 2008. [CODE]void merge (string alpha, string beta) { string temp; string temp2; stringstream insert(alpha); stringstream insert2(beta); // Insert the string into a stream ostream_iterator<string> output(cout, " "); vector<string> words; … | |
[code]def main(): splash() wordTotal = 0 longestWord = 0 fin = open("constitu.txt") for line in fin: #n = fin.readline() wordLine = line.split() #word = wordLine.split() wordTotal += len(wordLine) #if len(word) >= 15: #longestWord += 1 #print word print "This constitution has ",wordTotal, " words." def splash(): print "This program is … | |
Hi, I am using c# to update and view the student_Teacher simple database in sql. I used textboxes with binding navigator to view and update the teachers info and datagridview for the students, so 1 teacher per many students is the output. I have no problem for searching, editing and … | |
I have python 2.5.2 on my Debian system n want to upgrade it to python 2.6. Got to know that apt-get install package searches for package in /etc/apt/sources.list I have downloaded python 2.6.2. How to add an entry to the file /etc/apt/sources.list ? :( | |
Hi all, I've written the code to create a digital clock using a label and it's all working dandy. Now though, I want to take it to the next level and use images for each of the digits instead of a simple label to make the clock fit more with … | |
i'm planning to put an image before the name of the file. how to do that? for example i have IMAGE1.jpg filename i want to put an JPG image before the filename. | |
I have been all over the web (and through several books) in an attempt to get an answer to my problem. Briefly, I am trying to get the contents of a string array expressed as the header text for datagridview columns by the calling that array from a listbox. There … | |
I have a question that I can't seem to find a satisfactory answer to by searching the site, and I'm not entirely sure I am searching with the correct keywords. Anyway, here goes. I am working on a free membership script, and would like to use the members username as … | |
Hi all, Thanks for reading my post! So up until now I've been using Emacs (or Aquamacs on my Mac - essentially the same thing) for software development and I really do find that I can work very quickly with it. Recently, I've been thinking that maybe there is something … | |
im doing this project to work it prints out all information except the radius it just gives 0,0 but needs to give locations provided in code. [CODE]#ifndef SHAPE_H #define SHAPE_H #include <iostream> using std::ostream; class Shape { friend ostream& operator<<(ostream &out,Shape &s); public: Shape(double = 0.0,double = 0.0);//default constructor double … | |
I am very very new to perl and am not even sure if awk is what I should be using instead. Hopefully someone out there can help me put together a script for this problem. Here is some sample data (it is tab delineated in my file): 20 scaffold189_125 13634 … | |
I am currently trying to write a C++ program. The intent of the program is to guess what side a coin is going to fall on, heads or tails. I feel like I am very close to making it work. But I can not seem to figure out how to … | |
![]() | Hey, For a while know i have been using Microsoft components and look and feel. I want to change that i want to be able to build my own components in c#. I thought i would start with something simple like a label and then move up to a text … ![]() |
Hi! Sorry for may bad english! How to add a function that will add some text in textarea, when someone clicks on button, where the cursor is? (Like here, on daniweb textareas!) eg. There is bold button! The user clicks on it, and the text "[BOLD][/BOLD]" writes where curser/caret is. … | |
Hi! Sorry for my bad english! How to delete some text with javascript? Example: I have this in textarea: [LINK=http://www.someurl.com]Link - click[/LINK]. I want that the text between "[LINK=" and "[/LINK]" deletes (output will be "[LINK=[/LINK]"). How to do that? | |
Hi there, ok, im fairly new to c++ and have been trying to figure this out for ages: I have a text file i want to read in that contains lines and lines of lat long points; N50 42.22 W002 55.33 N50 42.22 W002 55.33 N50 42.22 W002 55.33 i … | |
Hi, How do I find the frequency of each item in a list in Python? For example if there are five 'apple', two 'banana', and so on in the list, how do I write a program so that it displays the item as well as the number of times it … | |
Hey just wondering if someone could help me please with the following: board.h [CODE]public: Piece* Player1Pieces; Piece* Player2Pieces;[/CODE] (a section showing the initialization of the arrays) board.C: [CODE]Player1Pieces = new Piece[18]; Player2Pieces = new Piece[18]; char arrX[9] = {'a','b','c','d','e','f','g','h','i'}; for (int FootCount = 0; FootCount < 9; ++FootCount) { --->> … | |
Hi, new to this so go easy. I'm trying to store a function i wrote in a file and call it with a header file rather than copy and paste as ive been doing but i keep getting error messages from the compiler. Can anyone point out what i'm doing … | |
If I'm creating a new char[] to read in a text file: [code]char* pbuffer; pbuffer = new char[length]; [/code] what is the maximum size length can be? Would a std::string be better? pbuffer will only be allocated one time in scope no matter what, and length is not known until … | |
Hello! I would like to be able to change the sequence of rows in the JTable by clicking on arrows, which will be placed on the right side of the JTable. Please, see an attached file to understand the idea. Well, could someone please give me some advices on how … | |
Please Help, I am creating a Simple Crystal report that views outstanding logs for our call centre,I have a stored procedure that retrieves all the Info I need.Here is where it gets interesting.The Report retrives all the relevant data and shows me page One.When i try to view the second … | |
Hi guys first off i want to say i really enjoy this forum i just signed up but i have referenced it before. so i have a question i need help with. here is the task at hand [QUOTE]A file called [URL="http://www.cs.oswego.edu/~odendahl/coursework/csc212/201009/assignments/03/tables.txt"]tables.txt[/URL] contains ranges that describe multiplication tables. Each line … | |
Hi there, I used code to fetch email address record from table abc on server but shows " Access denied for user 'mysqluser'@'serverip' (using password: YES) " [code] /********code ********/ <?php include "connection.php"; $tableName = 'abc'; $todayDate=date("m-d-Y H:i"); $backupFile = '../backup/abc_'.$todayDate.'.csv'; $query = "SELECT email_address INTO OUTFILE ".$backupFile." FIELDS TERMINATED … | |
Hi All Can anyone tell me about some good tool to auto indent the code c++/objective-c/c with some customization features. | |
Hi I am battling for days now to send and receive the correct characters to hardware from my code. It works fine in tera term. I have to send ASCII 4 " alt 004" in tera Term to poll the datalogger to return the data stream saved in memory. The … | |
codes pls. the format should be like this. DATE: TEXTBOX1 = month/date/year TIME: TEXTBOX2 = time DAY: TEXTBOX3 = day today pls help me. needed ASAP. | |
Ive got a big problem. I need to read data from the serial port Ive used serialport from the toolbox , but dont know how to use it. I used to do it on a Amiga like this open serial("serial.device".0.2400.0) rem(open port) repeat GW.w=readserial(0) if gw>29 and gw<128 gewicht$=gewicht$+chr$(gw) rem(at … | |
Greetings;) I have a conversion program with a combo box miles to kilometres kilometres to miles .... type of thing. I have two labels and two text boxes From: Says what converting from typed in To: Outputs the conversion What I want to happen is the label From to match … | |
I am new to vb.net and am using visual studio 2008. I am sending data back and forth using the serialport module. I am wondering if there is a way to send a hex byte, rather than having the module ALWAYS convert everything to ASCII. This is extremely obnoxious, and … | |
I heard that in order to sell a software created using VB, we must buy a license from Microsoft. Is there anyone know where I can buy it? Or maybe someone can tell me how much it costs? Thanks in advance. | |
Hi, I have managed to create a connection via SQL Compact server to a local SDF database. I am able to query the data and retrieve the information. The only problem is trying to delete a record. When I run the code no error's are produced but the record is … | |
Hi all, In my C# application I have a SQL database with a table called Customers. In this table I have several columns like Name, Street, ZipCode and City. I already managed to get data in and out the database with the use of datasets, tableadaptors and bindingsources and get … | |
Hi! I have a question regarding the SQL Select and "try...catch". The problem is that my SQL Select statement could sometimes return empty sets. For this reason I'm using "try...catch" statement. However, it doesn't work - the error message is generated for the empty set. So, how could I solve … | |
Could someone please help with an issue that's preventing my video from showing in IE8. It play's on all other IE versions...and plays fine in Firefox & Chrome. [code]<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0" width="768" height="466"> <param name="movie" value="../media/video/anassa.swf"> <param name="quality" value="high"> <param name="allowScriptAccess" value="sameDomain" /> <param name="allowFullScreen" value="True" /> <embed src="../media/video/anassa.swf" quality="high" … | |
Hi I installed visual studio 2008 64bit.and i need MS sql server express 2005/2008 64 bit. plzz help me.i tried one.but installation is not completed.Is there a special way to install it. | |
I am trying to figure out how to set a float for a project I am doing. Example I am trying to set a float for a score but I would like the input to be set where you can't input a number over a 100. This is the code … |
The End.