199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Eddrian

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!

Member Avatar for thines01
0
343
Member Avatar for cocoll

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 …

Member Avatar for dnanetwork
0
101
Member Avatar for tristanbacon

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 …

Member Avatar for TrustyTony
0
250
Member Avatar for Digitalwolf

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 …

Member Avatar for Digitalwolf
0
190
Member Avatar for werdna347

[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 …

Member Avatar for Cross213
0
290
Member Avatar for rakwel10

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 …

Member Avatar for rakwel10
0
142
Member Avatar for Anuradha Mandal

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.

Member Avatar for Anuradha Mandal
0
103
Member Avatar for klenne

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 …

Member Avatar for klenne
0
722
Member Avatar for rakwel10

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?

Member Avatar for cereal
0
302
Member Avatar for tapuwa2002

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

Member Avatar for diafol
0
132
Member Avatar for khentz

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 …

Member Avatar for gearup4it
0
140
Member Avatar for nera1981

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 …

Member Avatar for nera1981
0
122
Member Avatar for ashneet

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.

Member Avatar for Balajipala
0
410
Member Avatar for EW12
Member Avatar for EW12
0
248
Member Avatar for Jake.20

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 …

Member Avatar for Oxiegen
0
103
Member Avatar for jinglylime

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 …

Member Avatar for JamesCherrill
0
117
Member Avatar for cppman

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 …

Member Avatar for cppman
0
179
Member Avatar for alimziyan

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 . " …

Member Avatar for alimziyan
0
170
Member Avatar for karthik_ppts

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?

Member Avatar for karthik_ppts
0
7K
Member Avatar for king_saqib

[ICODE]if val(text1.text) <> "0" then or "" then c = val(text1.text) * 1 + c [/ICODE] but it show an error somebody help me

Member Avatar for Deepak Shitole
0
73
Member Avatar for 54uydf

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 …

Member Avatar for 54uydf
0
965
Member Avatar for coolbeanbob

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. …

Member Avatar for coolbeanbob
0
306
Member Avatar for agr8lemon

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); …

Member Avatar for agr8lemon
0
154
Member Avatar for Majestics

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

Member Avatar for mKorbel
0
129
Member Avatar for thompsonSensibl

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; …

Member Avatar for NormR1
0
259
Member Avatar for hondros

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 …

Member Avatar for hondros
0
197
Member Avatar for JoshuaBurleson

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, …

Member Avatar for JoshuaBurleson
0
288
Member Avatar for coolbeanbob

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 …

Member Avatar for coolbeanbob
0
208
Member Avatar for zpzp16

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?

Member Avatar for woooee
0
143
Member Avatar for matanking

[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? …

Member Avatar for venomxxl
0
219
Member Avatar for Chub97

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 …

Member Avatar for sv3tli0
0
372
Member Avatar for davetheant

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? …

Member Avatar for NormR1
0
195
Member Avatar for Chub97

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 …

Member Avatar for Chub97
0
179
Member Avatar for shella

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 …

Member Avatar for eXpertPHP
0
134
Member Avatar for extemer

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 …

Member Avatar for sv3tli0
0
152
Member Avatar for stevenbaron1

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. …

Member Avatar for stevenbaron1
0
168
Member Avatar for kheijhei

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 …

Member Avatar for adam_k
0
84
Member Avatar for kylelendo

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 = …

Member Avatar for thines01
0
791
Member Avatar for mikejs

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 = …

Member Avatar for codeorder
0
148
Member Avatar for bubbinos

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 …

Member Avatar for Adak
0
215
Member Avatar for rom.

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 …

Member Avatar for rom.
0
399
Member Avatar for JoshuaBurleson
Member Avatar for JoshuaBurleson
0
225
Member Avatar for Jazerix

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 …

Member Avatar for ddanbe
0
102
Member Avatar for Jazerix

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 …

Member Avatar for Jazerix
0
122
Member Avatar for jigarsangoi

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, …

Member Avatar for debasisdas
0
132
Member Avatar for MissJava

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 …

Member Avatar for MissJava
0
231
Member Avatar for mrhankey

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 …

Member Avatar for mrhankey
0
117
Member Avatar for michelleradu

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 …

Member Avatar for michelleradu
0
362
Member Avatar for aloi93

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 …

Member Avatar for Anuradha Mandal
0
388
Member Avatar for niconico96

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 …

Member Avatar for niconico96
0
235

The End.