64,152 Solved Topics
Remove Filter ![]() | |
HI can u plz help me with this? [CODE=c]#include<stdio.h> #include<conio.h> void main () { int i,j; printf ("\t*"); for (i=2; i<=5; i++) { i=i+1; printf ("*",i); for (i=3; i>=1; i--) { printf ("*"); } printf ("\n"); } getch(); }[/CODE] its suppose to give an output in the form of diamond … | |
I need to add a column to a list of strings and then print it back to a new text file without [] or "". I tried this below but it is not the result I wanted. infile looks like this: 23 CL 006 2004 DBA8ORPU 41 8Y S0111P 2 … | |
Hi I have two tables that I want to use to build a third. They have a many-to-one relationship for one of the columns. Table A has the "one" side of the many-to-one relationship. Table B has many rows that have foreign keys referencing Table A. I want to write … | |
i am using this code to send pm, after i send a pm it says "You have successfully sent a private message!" and the boxes under for user to send again if they like but i would like to show only "You have successfully sent a private message!" if the … | |
I changed the name of a folder so that it would meet the requirements for my assignment submission and now my program wont run in the command window. its saying it can't find the .txt files. However, the program runs without any problems in JCreator. i have a folder called … | |
HI guys, I have file with 6 values in: [code] 1060276 2211546 7544.941158316 1060276 2211606 7545.960677177 [/code] I put those numbers into variables: [code] obyte1=`cat $TMP | sed -n 1p` rbyte1=`cat $TMP | sed -n 2p` snapt1=`cat $TMP | sed -n 3p` obyte2=`cat $TMP | sed -n 4p` rbyte2=`cat $TMP … | |
Hi, I have this website which uses javascript to compute some mathematics... However, the script appear not to be working on firefox whereas the I.E and safari are working well, can someone help me with this, does Firefox have problems executing javascript? Thanks... the below code is where the problem … | |
After numerous issues with my first hosting I got new deal. Now I want to get my blog move to its new home, but I hit the wall with simple WAR deployment Here is catalina.log [code]INFO main org.apache.catalina.core.StandardService - Starting service Catalina INFO main org.apache.catalina.core.StandardEngine - Starting Servlet Engine: Apache … | |
Hi Ive been using the nl2br function on text that users input... which has been great, but if they want to edit that text later, its riddled with <br />'s etc... is there a way of stripping these html tags out of the code before its displayed in the 'edit' … ![]() | |
/*this program counts the number of transitions and tranversion occur between two *genes when two DNA strings from a source file are compared using threading.*/ [code] import java.io.*; import java.util.*; import java.lang.*; public class Gacer021109{ public static Vector<String> DNA = new Vector<String>(); public static int cnt=0; public static void main(String[] … | |
Hello everyone, Can someone kindly explain me what is the basic difference between python statements and expressions? I'm too much confused about them and cannot upgrade my knowledge about Python until I get a full grasp on them because they are everywhere! Some explanation with example may help me a … | |
I am trying to make a 8 x 8 grid of boxes to manipulate for a matching game. I started with wxPython since I have no experience with pygame. I have it laid out with: [code] WINDOW_WIDTH = 1200 WINDOW_HEIGHT = 1200 class MainFrame(wx.Frame): def __init__(self): wx.Frame.__init__(self, None, title = … | |
target.php: xas xjahs dajdh ajdhjas da d xxxx na dh ada hd main.php: <?php // removal malicious script by forzadraco $filename="target.php"; $existfile=@fopen($filename,"w"); if($existfile){ echo "file berhasil dibaca \n\n"; }else{ echo "file gagal dibaca \n\n"; } if( false == ($str=file_get_contents( $filename ))) echo "Could not read file."; else echo "File contents: … | |
Can anyone help me write a program in java that: Has a user enter their name then enter their last 4 weeks hours worked Then have it display the: -total hours worked -average hours per week -full time equivalent: 2 weeks 3 days 7 hours This would help me out … | |
(I have installed both MSDN and VC++ 2008 Edition How do I access MSDN? Thanks all | |
Hi iwould like to check if there is any function that allows me to take the last 4 char or a String? Or the 1st two char of a String? I require this because i require to have a auto increase product id. Example current productid stops at WA0059. When … | |
Hi all I searched forum but couldn't fine the right answer I was looking for. I found a script online to help me with uploading a record to my database and the file to directory and name to database. I cannot get it to work and I cannot pin point … | |
I send mail in asp.net using kerio .It work fine when i use string variable to get id But i use textboxes to get id it gives following err: [code]Read from Stream threw an System.Exception: System.IO.IOException: Unable to read data from the transport connection: A connection attempt failed because the … | |
hi can anybody tell what the error is Fatal error: Call to a member function insertseeks() on a non-object in php | |
I wish to perform a sort of an XML document, and have the output be in the same structure as the existing document. The reason for doing this, is I need the resulting document to be transformed into a new document. My source XML is: [code] <?xml version="1.0" encoding="UTF-8"?> <Msg … | |
I really need help in copying the root node. I have been spending far too much time on this, and I can't beleive that it should be that difficult. I can't use 'copy-of', as that will copy all the children as well. I need to copy the root node, and … | |
would you know why would a text comes back in one line, i am trying to implement this pm system where i posted for some other isue, but this one is strange. when i am composing a message and keep writing, in the message body i have the similar window … | |
i have a question on how i could calculate the overall score of the users input using five instance variables, three for three quizzes, one for a midterm and one for a final exam. the quizzes are graded between 1 and 10 while the midterm and final are graded between … | |
I am writing a 2-part program, a main program and a test program that figures the area and perimeter of a rectangle from an users input. I have my main program with no compile errors, but my test program has a couple errors and they both have to do with … | |
So the point of the other thread (java compiler) was I could not test any solutions I came up with at home for my next question. My assignment is to create a Binary Tree (done), and write the output to a file name (out.dat). The assignment is for one of … | |
I'm trying some code with classes but get these errors: overloaded member function not found in 'Point' 'Point' : no appropriate default constructor available [CODE]#include <iostream> using namespace std; class Point { public: Point(float f_x, float f_y, float f_z); private: float x, y, z; protected: }; Point::Point() { cout << … | |
Hi All, I am mysql newbie. Please have alook at this querry. [code=sql]SELECT b.date as date, a.tirthankar_name as tirthankar_name, a.kalyanak as kalyanak FROM table1 a, table2 b WHERE a.mass = b.mass AND a.paksh = b.paksh AND a.tithi = b.tithi AND b.date BETWEEN CURdate( ) AND (CURdate( ) +9) ORDER BY … | |
Hey wizeguys, I am using windows XP and have VC++ 2008. I can make a simple GUI window and write text and add menus and all that n00bish crap. I want to move further. Firstly, i atleast want to know how to change the color of the text that we … | |
Hi! I'm really fed up with my program. I'm trying to write a JAVA simulation of a traffic jam. In the beginning the user inputs the length a of Road n (problem with the constructor) and the number of cars c. The Road is an object- simply an array filled … | |
Hi im new to C# and I have a form with customer data on it. There is a combo box with the customer name and some address fields. When I select the customer name I would like the address field to be automatically updated from the customer table. Can anyone … | |
Well this is probably a really stupid question but i was doing pygame tutorial and i dont know what a vector is and they keep talking about them, there were special vector classes and things like that, im rather confused, so if someone could teach me what a vector is … | |
hi, i need to add the information into the datagridview manually. i searched in google and books. they fill the datagridview by using Datasource method. but i need to add at compile time please share ur ideas....... | |
I'm having trouble getting this while loop to stop and look for a new input. Obviously the while loop is infinite because I don't get new input. I know this is easy but I'm still stuck here is my while loop [code] while (guessInt != randInt){ setPrevGuess(guessInt); guessInt = Integer.parseInt(GuessGame.numberField.getText()); … | |
Hi I have the following PHP search results page I am trying to configure the results page so that regardless of what is searched or what search fields have or do not have data the results are allways ordered by lastname. If I use Order by lastname in the initial … | |
hi, P1 c1 c2 p2 c3 c4 (pls consider this is treeview: P1,P2--Parent, c1,c2,c3,c4---Child nodes) task is , when i select the item from treeview. i like to show in the datagrid view. if user selects one parent item from treeview. i like show in datagrid view that entire parent … | |
how do I send a text file to a printer connected to the client's computer. I have a vb.net app. running currently with internet explorer only browsers. I constructed some texts based on the inputs from the user and need to (a) save it on the client file system (b) … | |
hi, i am new to .net. i like to add the datagridview into the datagridview. please share ur ideas, | |
A user have to register to the site using Her existing email address as a user name so I need to send an email to the user's email address once her registration to my site is successful can anyone provide me with a code ASAP please | |
hello, learner here. I have a function that checks a textbox for a value if it is below 500 or above 1000 it comes up with a message box. To invoke this I have the function at the top of a action for a button... [code] void Cal2Click(object sender, EventArgs … | |
Hi, I am writing a program that has 3 files: File 1: One.java File 2: abstract1.java File 3: child.java Child is a subclass of abstract1 and abstract1 is an abstract class. I am trying to call a method in the Child class from One.java . Currently i have this: One.java … | |
If I know the sizes I'm using, I can declare the array as: [code]char arr[20][20];[/code] Is this correct? Well, I want to know how to insert a full string into the array of strings. I thought it might be: [code]fscanf(infile, "%s", *arr[i]);[/code] but this line gave me the error "warning: … | |
Can anyone help me get started on this instruction for a for loop: Ask the user for 2 integers. Print all the numbers BETWEEN them and also this one When everything else works, implement a for loop that is an infinite loop I have no idea where to start with … | |
Hello everyone! I had a quick question on how to use pictures in a VB program. What I'm trying to do is when someone selects an item in a listbox, to show the corresponding jpg file. I selected the relevant jpgs from the desktop, copied them to the clipboard and … | |
Hello everyone! Im new to the language Php and i need your help. Please help me on how to generate a text document or an *.xls file using Php. Data to be generated are taken from the database. Thanks and hoping for your response. | |
I want to enter in a bunch of integers like so: 1 11 2 12 3 13 4 14 5 56 6 80... How would I get them into an array of int? [CODE]Console.WriteLine("Enter in numbers"); string answer = Console.ReadLine(); int[] myArray = new int[answer.Length]; for (int i = 0; … | |
Firs of all hello guys.And then straight to the point :) Ok so my trouble is with creating a password function that will display '*' instead of normal chars.So here is my code: [code=language] string EnterPass() { string Pass=""; char ch=getch(); while (ch != '\r') { if(ch=='\b') cout<<'\b'<<' '<<'\b'; else … | |
Hey there. I am taking a programming class using C++ and my assignment is to create "Tictactoe" using ObjectOrientedProgramming... The problem is I have no idea what I am doing... I need to have a "tictactoe" class file and a "player" class file - each with their own header files … | |
Hey, I got an array with float values from 0 - 120. How can I find the first element over 100 and which element it is? | |
Hi, Is there a way to stop the user from rezising to window ; so the user won't be able to make the window any bigger or smaller just the size i give to the window. I tried looking it up on this forum and MSDN , but MSDN is … |
The End.