199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Toila

[CODE=c]#include <stdio.h> #include <string.h> #include <stdlib.h> #define TRUE 1 #define FALSE 0 void Result (char *result, char string, char remove); char *RemoveChars( char *src , char *key ); int main(void) { char string[] = "Alesia"; char remove[] = "aeiou"; char result; Result (&result, string, remove); fflush(stdin); printf(" Press any key …

Member Avatar for WaltP
0
2K
Member Avatar for chaituu

this is dynamic rows code.when i click remove(-) any row i need to get respective checkbox id; for example when i delete row3 i need to get checkbox id as houseCheck3;when i delete row2 i need to get checkbox id as houseCheck2; once i get the id of that checkbox …

Member Avatar for anish.anick
0
83
Member Avatar for jakesee

Hi, I am setting up a cron using php. I have a file which I want to update by doing file_put_contents() on it via cron and via web browser (manual). everything via web brower works fine, but cron gives a "permission denied". I am overwriting the file each time it …

Member Avatar for jakesee
0
181
Member Avatar for functionalCode

Hello everyone I am working on a ftp uploader and I have the class and the form. I have a progress bar on the form, but I need the class to tell the form to update the progress bar with the proper percent complete. I can't seem to figure out …

Member Avatar for functionalCode
0
93
Member Avatar for BestJewSinceJC

I have a list of teams, it can be any length. Now, for each team, I want to create a 2D box that says the team's name in the box. And I want to match these teams up against each other. So basically I want to be able to drag …

Member Avatar for BestJewSinceJC
0
161
Member Avatar for denis1401

What is the best way to do system wide user mode (NOT KERNEL MODE) api hook on Windows NT?

Member Avatar for MosaicFuneral
0
83
Member Avatar for tgsoon2002

As I read some tutorial, I just get the idea to input to the file totally replace, overwrite or continue at the end. I wonder any code that in put text in the middle like this brown || I want a V dog.

Member Avatar for tgsoon2002
0
265
Member Avatar for sabian4k

I know I don't have much done, but I am really stuck and my grade does ride on this. I have used this website to write my other problems please help. I know I have the inputof the intergers wrong. and the program is due tomorrow. please help! [code] //************************************************************** …

Member Avatar for tux4life
0
175
Member Avatar for 3DProf4online

Could you please help realize the procedure of sending attached files in php. If it is possible, please, provide me with ready code examples. Thanks in advance!

Member Avatar for AyuBan
0
1K
Member Avatar for blackhawk9876

I am having trouble writing these recursive functions. I know I am on the right track, but also know that these functions are not right. Any help would be appreciated. Given the following declarations for a linked list: [CODE]struct NodeType; struct NodeType { int info; NodeType* link; }; typedef NodeType* …

Member Avatar for siddhant3s
0
110
Member Avatar for Bhoot

Currently I have started with my college project - Network monitoring, which may include features like keylogging, application blocking, h/w restrictions, catching snapshots, file operations surveillance, etc. (i mean as many as i would be able to add.) The platform for this project is C#.NET which is new to me. …

Member Avatar for Bhoot
0
645
Member Avatar for MJV

I have searched everywhere but im not able to determine if you can show two or more data fields in a combo box. If so can anyone help me with the code to do so as I am stumped. Thanks in advance.

Member Avatar for kvprajapati
0
66
Member Avatar for Hiroshe

Lately, I've been looking into cryptography, and I'm seeing if I can make a fun, maybe half-decent symetrical encryption alorithm. I am no professional, I've just seen a few algorithms online. I've came up with a few ideas: Version 1) I started of with simple xor encryption. I've learned that …

Member Avatar for thoughtcoder
0
148
Member Avatar for kiwihaha

>main.cpp [CODE] #include <cstdlib> #include <iostream> using namespace std; #include "function.h" int main(int argc, char *argv[]) { struct AXEMAN{ int lvl; int att; int hp;}; struct DEFENDER{ int lvl; int att; int hp;}; struct ARCHER{ int lvl; int att; int hp;}; struct SPEARMAN{ int lvl; int att; int hp;}; struct …

Member Avatar for kiwihaha
0
153
Member Avatar for Fishnetandlace

Hello All, I was wondering if anyone could help me. I am having trouble getting the text area on my site place in the area I want. The page looks fine when the web browser window is fully expanded, but the alignment messes up when the window is condensed , …

Member Avatar for Fishnetandlace
0
110
Member Avatar for Liszt

I have a general question about how it would be possible to protect a software from copying. I have done a software that will be able to download from a website, the user will install the software on his/hers computer. How could it be possible to protect this software from …

Member Avatar for Liszt
0
104
Member Avatar for waehake

to start off thanks for the help in advance, im trying to make a program that calls a function that i input integers into, then calling another function to calculate the total of the numbers entered. here is my source code: [code=cplusplus] #include <cstdlib> #include <iostream> using namespace std; const …

Member Avatar for NathanOliver
0
115
Member Avatar for #tbone

I was wondering if anyone was aware of a script that would reccomend products from a list on another individual products page? I would like something that will list three products that a customer might be interested in when they are viewing an item on my site. I have an …

Member Avatar for essential
0
350
Member Avatar for emanmae

So i have this homework assignment and im having a problem figuring out how to get the numbers from this file and finding the agerages. heres what i got so far. [CODE]#include <iostream> #include <iomanip> #include <fstream> #include <string> using namespace std; int main () { // Declarations string reply; …

Member Avatar for emanmae
0
187
Member Avatar for Erroneous Seth

Hello to everyone, I am having this problem with the following code: [code] typedef struct test { int i; char c[50]; } testStruct; int main() { char *pData; testStruct t; t.i = 5; strcpy_s(t.c, 50*sizeof(char), "hello"); pData = (char *)malloc(sizeof(t)); memcpy(&pData, &t, sizeof(t)); testStruct a; memcpy(&a, &pData, sizeof(t)); cout << …

Member Avatar for Erroneous Seth
0
246
Member Avatar for NathanOliver

Hi have made some code that will generate alphanumeric passwords and output them into a file. Each password size has its own function so i have 16 functions for sizes 1-16. The code works great its just that as you go up one size in the password size it will …

Member Avatar for NathanOliver
0
89
Member Avatar for sabian4k

what exactly is mean by paper to pencil algorithm and what is it? I am doing a program where two numbers are stored in an array, and are reversed in the array, and I need to add them together, how do I go about doing it with paper to pencil …

Member Avatar for siddhant3s
0
204
Member Avatar for MrDiaz

Hi, How can I code it so I can make a new window appear on my application? Let's say, user hits a "new user" button, a new window is supposed to pop with TextFields and labels and so on. In Dephi is something like, Form1.show; How do I do this …

Member Avatar for MrDiaz
0
77
Member Avatar for kingarabian

[CODE]public static RSString method50(byte i, int i_0_) { if (i > -36) anInt63 = -44; anInt55++; if (i_0_ < 100000) return (Class68_Sub20_Sub13_Sub2.method1166 (2, new RSString[] { Class85.aRSString_1556, Class68_Sub13_Sub24.method816(i_0_, 0), Class96.aRSString_1697 })); if (i_0_ < 10000000) return (Class68_Sub20_Sub13_Sub2.method1166 (2, (new RSString[] { Class21_Sub1.aRSString_2695, Class68_Sub13_Sub24.method816(i_0_ / 1000, 0), Class68_Sub13_Sub11.aRSString_3611, Class96.aRSString_1697 }))); return …

Member Avatar for kingarabian
0
128
Member Avatar for jimib

I am attempting to configure a datasource in an AJAX web page from an existing postgreSQL database that resides on our server. I have done this many times with MySQL, no problem. When I finish the configuration for the PostgreSQL Database in the "Add Connection" wizard of Visual studio 2008, …

Member Avatar for jimib
0
113
Member Avatar for Beuki

I am wanting to make a menu application. I want to duplicate the start -- all programs section of Windows. so, when the user clicks on the start button of my program, and goes to All Programs - there is a list of all the program folders, sub folders, and …

Member Avatar for Beuki
0
100
Member Avatar for justted

Dear members, I am after some help with a script I am trying to write/use! I am currently re-designing a website for an animal charity for which they would like to add a section in the members area where people can upload their own photos of their animals/pets. I have …

Member Avatar for balamca
0
102
Member Avatar for BlackStar

from the pointer problem thread. I got this, [ICODE]void is_valid (char& s) { return s=='1' || s=='2'; } void is_submenu(char& m) { return m=='x' || m=='y'; } // then i'm using it in my main. char choice; cout<<"enter your choice"; cin>> choice; if( is_valid(choice) { if(letter == '1') { // …

Member Avatar for BlackStar
0
229
Member Avatar for Adexter

Hi, im working on a project for school and Im having a little trouble. The problem states: Write a program that reads students names followed by their test scores. The program should output each students name folloed by the test scores and the relevent grade. It should also find and …

Member Avatar for Adexter
0
2K
Member Avatar for asweetroxxi

i have the shell of the code but im have some trubble i need to write the function that lets the user input a zero or a one. it have to be done in a loop the shell is shown: [code] #include <iostream> using namespace std; int const MAX_ROW=10; int …

0
149
Member Avatar for m-hrt

i have 4 input box of credit card number and 2 boxes of credit card expire date month and year and one for the card holder name i have some code but is it ok or i have to do some thing else [CODE=LANGUAGE]<?php $connection = mysql_connect("localhost","root","password") or die("error connect"); …

Member Avatar for m-hrt
0
110
Member Avatar for Tonkz

Anyone knows what I'm doing wrong here? I am getting supplied argument is not a valid MySQL result resource in line 34 [CODE=php]<?php //Connect to database server $conn=mysql_connect("mywebsite", "user", "pass"); if (!$conn) { die('Could not connect: ' . mysql_error()); } mysql_select_db("data", $conn); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" …

Member Avatar for Tonkz
0
198
Member Avatar for Concentus

When I use [code]<?php include("header.shtml"); ?>[/code] to display the header for my website files, I get a gap added above the header when I view it in internet explorer 7 and 8 (not in firefox v2). Some type of character that causes a linefeed is added at run time. I'm …

Member Avatar for itisnot_me
0
82
Member Avatar for smyth9957214249
Member Avatar for tux4life
0
62
Member Avatar for ganmo

Hello, This is probably a simple question. I have a class A, and a class B, class C class... which inherits from class A. Now I want to store it in a container e.g. vector [CODE=cpp] vector<*A> container; [/CODE] I have also created some objects of B and C, and …

Member Avatar for ganmo
0
114
Member Avatar for genieuk

Hi, could someone tell me what the correct syntax is to check is a user exists in my database. I got a login page and when user enters username and password i need it to check if they exist obviously in database and if so re-direct them to the page …

Member Avatar for genieuk
0
202
Member Avatar for Noraini

I success doing validation form before submit...the problem is I can't appear alert box for success submitted after validation and go to another page... When I doing alert box for success submitted (it's success)....but the alert box for validation does not working

Member Avatar for ShawnCplus
0
514
Member Avatar for lilballeer

hello, I am trying to change my current code to include the following class definition. class studentType { private: string studentFName; string studentLName; int testScore; char grade; public: void getData ( ifstream & inFile, studentType sList [ ], int size ); void calcGrade ( studentType sList [ ], int size …

Member Avatar for vmanes
0
234
Member Avatar for metalheart2003

Hello, I am doing an upload of my applet has my website, I works very well but I do not like putting a bar of Progress! (JPROGRESSBAR)! CAN PLEASE HELP ME! UPLOAD MY CODE! String targetURL = "http://localhost/swfupload/demos/swfobjectdemo/upload. aspx"; PostMethod filePost = new PostMethod(targetURL); filePost.getParams().setBooleanParameter(HttpMethodParams.US E_EXPECT_CONTINUE,true); try { File targetFile …

Member Avatar for metalheart2003
0
109
Member Avatar for Lukezzz

I am trying to create a folder under the "HKEY_CLASSES_ROOT" in the Registry Editor. I run this code but I cant find that "TestFolder" was created here. I wonder if I am doing this correctly ? [code] Microsoft.Win32.RegistryKey Test = Microsoft.Win32.Registry.ClassesRoot.CreateSubKey("TestFolder"); [/code]

Member Avatar for Lukezzz
0
137
Member Avatar for Killer_Typo

[B]Intro[/B] OK, there's going to be a lot here, but it's just something that I built as my own crapped down version of PHPmyAdmin. I know it's not great. but that's not the point ;) [B]Getting started[/B] db_management: [PHP] <html> <body> <table border="0" width="100%" cellpadding="0" cellspacing="0"> <tr> <td align="left" valign="top"> …

Member Avatar for pansylea
0
212
Member Avatar for ning2009

Hi, there I have resource lines and target lines here below resource lines: 1 J=2,7183 SEC=CON450X450 NSEG=2 ANG=0 56 J=7224,164 SEC=CON450X450 NSEG=2 ANG=0 Target lines: *element,type=b31,elset=CON450X4501 *element,type=b31,elset=CON450X45056 "elset=CON450X4501" in the target lines come from a combination of "1" and "SEC=CON450X450". Similarly, "elset=CON450X45056" in the target lines come from a combination …

Member Avatar for ning2009
0
178
Member Avatar for ning2009

Hi, there Thank you so much for reading my question. I have apart of a text file with a structure as following: LOAD NAME=LIVE TYPE=UNIFORM ADD=110 UZ=-4500 ADD=113 UZ=-4500 ADD=114 UZ=-4500 ADD=120 UZ=-4500 ADD=121 UZ=-4500 NAME=SIDL TYPE=UNIFORM ADD=110 UZ=-850 ADD=113 UZ=-850 NAME=CLADDING TYPE=DISTRIBUTED SPAN ADD=15470 RD=0,1 UZ=-4500,-4500 ADD=15471 RD=0,1 UZ=-4500,-4500 …

Member Avatar for ning2009
0
212
Member Avatar for sabian4k

hey guys i'm stuck big time, i need some major help. [code] // ************************************************************* // This program adds large integers that are stored in arrays. // The digits are stored in the array in reverse order so that // addition is easier. The program allows a user to keep doing …

Member Avatar for Salem
0
105
Member Avatar for Audette

Hi, I am currently running some C++ code in Windows. I am using Code::Blocks with mingw therefore using the gcc compiler. Can anyone tell me, is thespeed of execution of the final .exe file dependant on the compiler? e.g. will the speed change if I use Visual C++ 2008 Express …

Member Avatar for GDICommander
0
292
Member Avatar for kiddo39

I can't seem to figure out what's wrong with this simple code. I have a user input and if it matches prints out 'That's good', if not prints out 'Too bad' but how can I get the input to ignore being case sensitive? [code] ans=raw_input("Are you feeling well today? ") …

Member Avatar for kiddo39
0
107
Member Avatar for panda_pow

I'm writing a program that determines the population of the world between years 1975 to 2006. I found an equation for the world pop and i put it in my code, but i keep getting a '.class' expected. Can anyone help??? --Cassie P.S: The error is where pop is defined. …

Member Avatar for panda_pow
0
111
Member Avatar for VED_VYAS

hello! i wanna implement an text search engine ......... that will find the given text from all webpages of my website ..... .... is it possible to implement ??? (m newbye in jsp) . if not what are other options ??? any related idea ????? thanx in advance.

Member Avatar for lance7
0
110
Member Avatar for pygmalion

Hi I'm posting this here, because i'm not sure where else and i have a gut feeling i will be doing this with VB. My goal is the following: I have an Access database (with four fields, of which the first one is the key) which I'd like to use …

Member Avatar for timothybard
0
188
Member Avatar for Aamit

Hi, I have no1 to no30 product prices. I want to calculate combination for 30 product prices Suppose I have 30 different numbers.. I want to calculate their sum by using combination. But combination [COLOR="Red"]should not repleted[/COLOR] i.e. E.g for 4 numbers... [ 10 20 30 40] I want to …

Member Avatar for rush1
0
94

The End.