199,114 Archived Topics
Remove Filter ![]() | |
Hey guys! I really need your help. I need assembly language codes to check if a string is a palindrome or not.. Pls. help me.. Thanks~! God bless! | |
Hello. i want to develop a chat application,but i want to develop the ability of private chat between 2 users. multiple users chat is very simple,but private chat is very complex ,but if we use database it become simple and very flexible. so i need your expert opinion before i … | |
Hello all, I am working on a Blackjack program, but am having a bit of trouble with the finer details. At the moment, I have a list of the cards and their values, as follows: [CODE] Jack = 10 Queen = 10 King = 10 Ace = 11 # card … | |
I have written a small client server program using tcp sockets, and i ran into trouble in retrieving the data brought in by the receive function. Like down below. [CODE] char *rec; int buff=1024; recv(a,rec,buff,0); [/CODE] You need a char buffer to get the data, but after that i wanted … | |
[CODE] cout<<"What HTH level are you (1,2,3): "; cin>>hthLevel; switch(hthLevel){ case 1:out<<"Hand to hand level= 1"<<endl;break; case 2:out<<"Hand to hand level= 2"<<endl;break; case 3:out<<"Hand to hand level= 3"<<endl;break; default: cout<<endl<<"Incorrect"; }[/CODE] Need to know how to loop this so if 1,2 or 3 is entered it continues but if an … | |
I have a date picker that give me this result: e.g. 2011-29-08 When it is inserted in mysql, it outputs '0000-00000'. What can I do? I know "strftime("%Y-%m-%d %H:%M:%S", time());" But I have no timestamp to put as an argument. The only data I can use is the data that … | |
Can any one say why the [B]break[/B] state does not work. [CODE]#include<stdio.h> #include <stdlib.h> int main() { int n; loop: scanf("%d",&n); if(n!=42){ printf("%d",n); goto loop;} else { break; } return 0; } [/CODE] this is my code. | |
Hi, Actually I don't know if my question belongs in this topic or in the mysql topic. But I'm making a VB.net application with a mysql database and i have to make a trigger but I don't know where I have to use or implement it in my application. I … | |
Im creating a time-base site wherein the timestamp should rely on the global time and not to my PC's time (because it can be out-dated somethimes). How can I do that? | |
Hey Am new to PHP need help, if I want to create a list, and only want to add an item one below the other what would be the best method in using Sessions. If there any examples that would really help. Thanks ![]() | |
Below is my code connection to my database..I highlight with red color my target database. And I would like to ask, what is the safest way to target the database. Because Im thinking, what if my database is change to another directory. If that happens, it will cause trouble to … | |
I have this code: [CODE]import java.sql.*; import java.util.ArrayList; public class Car { private int id; private String model; private String color; private Double price; public void setId(int id) { this.id = id; } public int getId() { return this.id; } public void setModel(String model) { this.model = model; } public … | |
I am new with session. What i am trying to do is that if someone doesn't visit my site for lets say 5 day i want the session to expire. is there a way to do this as i am not aware of it. | |
Which one should I install on my desktop? EasyPHP or AMPPS? | |
Greetings expert programmers, Can someone guide me on how i will connect my vb.net 2008 to ms sql 2008 r2? I already installed mssql 2008 r2, and when i try to add the connection it says i need to call the administator something like that even though i checked all … | |
Hi, I need to write a system that simulates buying and selling on the stock market with just text outputs. I need to create a menu so the user can register and delete thier account. Also be able to buy and sell shares. So far I have my classes and … | |
Hi, I have a .txt file containing information about 1000 events; each event lists 10-15 hit information. This number is not fixed. The format is given below: ================================================================= begin of event: 45 Hits(): X = 1.01101 Y = 1.01101 Z = 0.048 Hits(): X = 1.00502 Y = 1.02509 Z … | |
Hi I am using a php script for converting avi,mpeg files to flv with ffmpeg.my code is [CODE]$srcFile = "uploads/flame.avi"; $destFile = "uploads/flame.flv"; $ffmpegPath = "/usr/bin/ffmpeg"; $flvtool2Path = "/usr/bin/flvtool2"; $ffmpegObj = new ffmpeg_movie($srcFile); $srcWidth = 320; $srcHeight = 240; $command = $ffmpegPath . " -i " . $srcFile . " … | |
Hi frendz, Can we set a value for a session variable through javascript onclick event? (or) How can we set a global variable for the whole website using javascript? | |
[ICODE]if val(text1.text) <> "0" then or "" then c = val(text1.text) * 1 + c [/ICODE] but it show an error somebody help me | |
HELP! I lost count of how many editors I tried! I don't understand why non of them work. I'm trying this editor [url]http://nicedit.com/index.php[/url] very simple. but when I type words in the textarea and click submit nothing is saved in the DB..empty that's what I get. all I want is … | |
Hello, I have been working on an assignment using codeblocks with the GNU GCC compiler. The assignment must compile using Visual Studio 2008. I have not been able to get my hands on Visual Studio 2008 as of yet, but I was wondering if anyone thinks I should be concerned. … | |
Hello, I'm trying to do a very basic page that allows me to edit a single column in a MSSQL database. For whatever reason I can't figure it out and am hoping that you can help. Here is my front page (sorry about the silly names) [CODE]$ninja_conn = odbc_connect('XXXXX','XXXX','XXXX', SQL_CUR_USE_ODBC); … | |
As the title stated i want to show tooltip when the user press up and down keys in combo box, Please any hint ..... Regarding to problem | |
Hi I am having trouble at finding a way to iterate through a string of alphabets until a digit is reached. e.g. iterating through [CODE] //Using a scanner, I can use scanner.getNext() to get the first word. //There may be more than one word; there is no way to tell; … | |
I am at my wit's end with this thing. I just can't figure out, why I cannot set the WNDCLASSEX.lpfnWndProc equal to my class's function. Can someone help? Here's my code: system.h [code] #ifndef SYSTEM_H #define SYSTEM_H #include "stdinc.h" class System { private: void initD3D (void); void cleanD3D (void); LRESULT … | |
I'm working on learning GUI development, I'm attempting to utilize the GUI for a user to search the dictionary: my code so far is[CODE]from tkinter import * class Interface(Frame): def __init__(self, master): super(Interface, self).__init__(master) self.grid() self.create_widget() def create_widget(self): self.pwrd= Label(self, text='Address Book') self.pwrd.grid(row=0, column=2) self.searchlbl= Label(self, text='Enter Search Query:') self.searchlbl.grid(row=2, … | |
Hello Everyone, I am working on a program that will write random numbers to a file. I am getting the following error on line 31 of the filer.cpp file. "error: no match for 'operator<<' in 'outstream << srand((( srand(((unsigned int)time(Ou)))'" I believe the code used to generate the random number … | |
I want to do x=[1,2,3,1,1,2,] y=[1,2] x-y=[3] but when I write z=[set(x)-set(y)] if gave: z=[1,1,2,3] how I can do it? | |
[CODE]#include <iostream> #include <fstream> #include <string> #include <sstream> using namespace std; int main(){ fstream First("firstt.txt"); fstream File("file.txt"); string firsttime; string blah1 = "enable"; string blah2 = "disable"; getline(First, firsttime); if(firsttime!="not"){ First << "not"; cout << "first time settings (to be changed at file.txt)" << endl << "allow every one enter? … | |
I have seen on many sites using PHP some sort of id system where they can have a main page and then have different ids that will display completely different content. I am just wondering how you do this as I am in the process of making a screenshots gallery … | |
Hello. I have tried numerous string permutation methods, and they work, but not for what I need. I need to permute a string such that I don't get any reversals: abcd abdc acbd acdb adbc adcb * bacd badc bcad bcda * see how these are reversals of each other? … | |
I am having a bit of trouble with general PHP video uploads and then converting them into a FLV flash file for playback. I have heard something about installing something called FFMPEG but I cannot not find any tutorials any where for doing this. So basically what I am looking … | |
Hi guys! I'm working on a script to manage newsletter and I'm actually thinking how to manage eventually freat amount of mail deliveries when they are sent. What I mean if that i'm pretty sure that send something like thousands emails at once could be seen as spam from server … | |
hello guys i am stuck in a small but horrible problem.i am redirect page to itself using [ICODE]$_server[''PHH_SELF][/ICODE] method but the problem is that i apply the insert query at the top of my html page but it shows me that you are not connect to the DB. [CODE] <?php … | |
Hi Guys, I noticed that in some apps people tend to use the following method in classes without instantiating an instance or defining objects, but this works, could someone explain whether this is a correct way of doing it. (its for a simple data management and interface app) For eg. … | |
hi, please help in my project in visual studio 2008 and connecting it to mySQL, I'm going to create a simple identification system, can you please help me with the codes? (Form1 - Log-in, Log-out) Here's my project proposal, I need to identify an ID number and a password. Like … | |
Hii I have been converting a file into its hex value.But cannot convert it back into same exe value Let me get in detail Here is the code [ICODE] Imports System.IO Sub Main() Dim fileName As String = "ABC.exe" Dim data As Byte() = File.ReadAllBytes(fileName) Dim fs As FileStream = … | |
I am going mad trying to sort this logic out lol [CODE] Public Sub Panels() If RadPanelSearchCur.Visible = True Then RadPanelTenant.Visible = False 'RadPanelProp.Visible = False RadPanelTenantEdit.Visible = False ElseIf RadPanelTenant.Visible = True Then RadPanelSearchCur.Visible = False 'RadPanelProp.Visible = False RadPanelTenantEdit.Visible = False ElseIf RadPanelAddTenant.Visible = True Then RadPanelSearchCur.Visible = … | |
Here's what I'm trying to do. I'm making a program that uses an array to store a deck of cards. I have other code written that converts a number between 1 and 52 into numbers and suits. My only issue is that my code to randomly put numbers into the … | |
I'm just starting out in C/C++, and I want to make a simple socket server script. It will be compiled on mac/linux and executed from terminal. Just want a simple script that will: - allow multiple clients to connect to the server on a specified port (they will be using … | |
is it possible to use the Fkeys, i.e. F1, F2,...F12, as input in any way? | |
Hey :D So I got two forms, form1 and form2 when i click on a button on form1, it will show form2 and hide form1 once, on form2 i got a button "cancel", when i click on that button i need to close it and unhide form1 and not open … | |
So, I'm trying to get an image from the webbrowser in C# and for some reasons every second / third time it does it, it return a blank picture with the right canvas, instead of just getting the image, and I cant just download it, unfortunately thats not possible, so … | |
I wrote the following code for inserting the value in table company_db & database is Company_DB but the value are not inserted into the table table shows null values the code is below: [CODE]Imports System.Data.OleDb Imports System.Data.OleDb.OleDbConnection Imports System.Data.OleDb.OleDbCommand Public Class Newcompany Inherits System.Windows.Forms.Form Private Sub Button1_Click(ByVal sender As System.Object, … | |
Hi all, I really need your help on this as I am just learning Java. I do have an error message which says "cannot find symbol on line 23. Many thanks. [CODE] import javax.swing.JOptionPane; public class averageRainfall { public static void main(String[] args) { //declare variables String[] Month = new … | |
hi, i have asked something similar to this before. basically i have looked around and i can see that it seems it is possible to send email from a different email account using php. but what is the best way to stop the server being blacklisted? it want be used … | |
![]() | Error C2662: 'Event::GetTime' : cannot convert 'this' pointer from 'const Event' to 'Event &'. This is my code: [CODE] #include <iostream> #include <queue> #ifndef Person_h #define Person_h #include "Person.h" #endif using namespace std; enum EventName { _SendMessageToUserInterface, _SetPNOld, _IntroduceInfection }; class Event{ int time; EventName name; Person person; public: Event(int … ![]() |
This is what i've made so far. [CODE]#include <iostream> #include <conio.h> using namespace std; int main() { int b=1; for (int i=1; i<=5; i++) { for (int k=1; k<=i; k++) { cout<<b; b++; } cout<<endl; } getch(); return 0; } [/CODE] The output is as below 1 23 456 78910 … | |
Hello everyone. I'm an expert html5/css3 designer, but when it comes to javascript, I don't know anything... I need some javascript code that detects a browser engine (webkit, gecko, etc.) and redirects based on that. I need webkit and gecko to redirect to home.php and all others to redirect to … |
The End.