199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for thefaceofk

I need help in this c program i need to have a delete function that will delete a specific string(or a line) in my FILE Is reading the string from the file and putting them in an array, okay? #include <stdio.h> #include <string.h> struct { char title[100]; char author[100]; char …

Member Avatar for Adak
0
240
Member Avatar for PsychicTide

Hey guys. I'm having a problem with changing the CSS of a div tag. I've done a bit of syntax/semantic research on this, but this situation seems a bit too specific to nail down. Goal: I have 4 checkboxes 1st: center text (turn off 4th checkbox if it is checked) …

Member Avatar for PsychicTide
0
234
Member Avatar for NidhiSree

Hi, I am trying to customize default windows scrollbar in combobox like below. public partial class ComboEx : ComboBox { internal ScrollbarEx vScrollBar; NativeListWindow listControl; public ComboEx() { InitializeComponent(); DropDownHeight = 100; vScrollBar = new ScrollbarEx(); } protected override void OnPaint(PaintEventArgs pe) { base.OnPaint(pe); } protected override void OnHandleCreated(EventArgs e) …

Member Avatar for NidhiSree
0
2K
Member Avatar for Kareem Klas

Hallo everyone, I've been studying C++ active for a couple of days. And I was thinking about that all my codes and with: { return 0; } So I wanted to know why and in my book I found: > The only statement in this block is a return, which …

Member Avatar for PrimePackster
0
1K
Member Avatar for meenal9

I tried to understand for loops but still not getting it....? please help me with its dry run i know its syntax etc but still not getting it i know it is used for multiple execution...until condition is satisfied please help me understanding in making patterns

Member Avatar for csk19
0
151
Member Avatar for luke.belleghem

What if I set up a database table for an ad form that has optional fields. Do i need to select anything when creating rows for these fields other then the type?

Member Avatar for drjohn
0
255
Member Avatar for Angel78

Been trying this for a while and even searched the net but didn't get what I am doing wrong, I got the function but it's just that it won't print the two first digits that is supposed to be 0 and 1 followed by what's get printed by my code. …

Member Avatar for Angel78
0
154
Member Avatar for bCubed

This program is supposed to shuffle a Deck of cards and display them so I know it is working correctly. But one of the values displayed is -858993460 which is not possible when it should only be between 1 and 52. Obviously there is some sort of data loss going …

Member Avatar for bCubed
0
208
Member Avatar for hous3aholik

Hi! Lets say i have this expression I10I20I-3++ which should give me 27. I just cant seem to find a way of removing those I's or if it is any other letter from the string. Not forgetting i have to then evaluate the expression. I tried using regex but no …

Member Avatar for csk19
0
165
Member Avatar for mallikaalokam

**I Know Main is a primary funtcion in C...But Is there other reason ..like why they named it as main only and not other??? ..and why we have to write main() compulsory in prgoram...Any histroy behind it??** Help ME Please.......

Member Avatar for deceptikon
0
146
Member Avatar for hambu

How to generate random number in Free Pascal between 1 and 1,000,000? I have used a variable type as LongInt, Real, Integer, but there is always an RangeError. But random number between 1 and 33,333 is working correctly. Program Random; var a: ...; begin a:=random(1000000); end.

Member Avatar for cereal
0
338
Member Avatar for pinkesh25gar

#include <stdio.h> #include <stdlib.h> #include<LPC214x.h> #define ledon IO1SET #define ledoff IO1CLR void delay(int x); #define READY 1 typedef int (*compfn)(const void*, const void*); struct task { int task_id; int period; int wcet; int arrival_time; int deadline; int state; int ceu; }; int sim_time=10; struct task array[3] = { { 1,4,1,0,4,1,0 …

Member Avatar for pinkesh25gar
0
153
Member Avatar for cyberdaemon

Good day, I just want to ask how could i start to create a simple database using SQL server 2008. I have all the employee images that was on the folder, if i create a table for let say employee table. All i want is to create a link or …

Member Avatar for cyberdaemon
0
104
Member Avatar for Fredszky

So i'm trying to make multiple clients logon to a server through filesockets, and perform simple commands like ls -l, ls, mkdir. I've managed to make one client recieve output of ls -l command, sometimes, its buggy. Now i've been sitting for days trying to figure out how to fork() …

Member Avatar for Fredszky
0
6K
Member Avatar for fheppell

I've got this htacces code RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.html -f RewriteRule ^(.*)$ $1.html I can load html files without the extension (test.html becomes test) but a php file in the same directory gives a 404 error …

Member Avatar for cereal
0
2K
Member Avatar for wonderland

Hi, My problem at the moment is a bit different than specified in topic title. I have an Iframe which displays .html file with js/ content slider when i click a link inside of that iframe I want for pop up window (greybox) to appear, but not inside of iframe …

Member Avatar for Airshow
0
291
Member Avatar for paigewms

**My assignment:** Write a program that extends the example that we have done in class. Create a class called Trapezium, which is determined by two parallel sides “a” and “b” and the height “h” between them.The area of the trapezium can be calculated as Area = (a+b)h/2 The perimeter = …

Member Avatar for tux4life
0
823
Member Avatar for hunterious.latham

So Heres The problem code i get a Parse error: syntax error, unexpected $end in /home/crysta21/public_html/4dM1n1STr4+10nB4nk.php on line 149 from <?php /* MCCodes FREE cyberbank.php Rev 1.1.0c Copyright (C) 2005-2012 Dabomstew This program is free software; you can redistribute it and/or modify it under the terms of the GNU General …

Member Avatar for broj1
0
474
Member Avatar for <M/>

I have a simple Do While loop that doesn't work. What I am trying to do is to collect an integer and if the number is even, continue looping but if it is not even stop looping. I can't get it to work with my code: int xyz = 0; …

Member Avatar for <M/>
0
122
Member Avatar for djcrab

I'm sure everyone has seen this at one time or another. I'm having trouble with the selection sort class. It should take this input: apple Apple Zone apple And return it as: 1:a:Apple 0:a:apple 3:a:apple 2:z:Zone I'm getting it as #0,1,3,2. here is the snippet I'm working with. Thanks for …

Member Avatar for bguild
0
242
Member Avatar for OsaMasw

Hello there, today I noticed there are two operation in PhpMyAdmin, Replication and Synchronization. and now I want to use these operation as the following scenario. I have local db, I want to copy its content to remotly db so when I connect to any db I see the same …

Member Avatar for OsaMasw
0
274
Member Avatar for Landoro

Hello everyone!I have started the book Algorithms in C by Robert Sedgewick and at the end of each chapter there are additional practice problems for solving.I stumbled on one that I can't seem to understand.It goes as follows: Write a function int convert() that reads a decimal number one character(digit) …

Member Avatar for rubberman
0
138
Member Avatar for anisha.silva

HI Part 1: I have 4 classes Handler, ResultE, QueryE and the HealthMonitor. The Handler, ResultE, QueryE classes have to send a message every 1 min (for example, the time is defined in each class) to the HealthMonitor. So i implemented the Observer patter. The Handler, ResultE, QueryE as Subjects …

Member Avatar for anisha.silva
0
204
Member Avatar for Dani

I have an API that supports both JSON and JSONP. Obviously, being a data provider, I want the people who request my data to cache it. However, jQuery's $.ajax() function says the following about their caching feature: >cache (default: true, false for dataType 'script' and 'jsonp') Type: Boolean If set …

Member Avatar for Dani
0
437
Member Avatar for christinocasio

Hello everyone: I am new here. I am taking an entry-level programming class at an online school. We are in our 5th week of pseudocode and learning to use loops and sentininels. I have just completed and individual assignment and was wondering if anyone would be nice enough to look …

Member Avatar for christinocasio
0
4K
Member Avatar for lewashby

In the following html/php page why is my "select" tag not showing all the options? <html> <head> <title>Learning PHP & HTML</title> </head> <body> <form action="somefile.php" method="post"> <form> <table width="25%"> <tr> <td>First Name:</td> <td align="right"> <input type="text" name="fName"></td></tr> <tr> <td>Last Name:</td> <td align="right"> <input type="text" name="lName"></td></tr> <tr> <td>Phone Number:</td> <td align="right"> …

Member Avatar for lewashby
0
291
Member Avatar for ffej2ffej

I am working on a series of web pages and I would like to be 100% certain that users cannot jump around to any page they like by typing a URL into their browser. I have used $_SERVER['HTTP_REFERER'] to check at the top of most pages and if the referer …

Member Avatar for diafol
0
289
Member Avatar for anisha.silva

hi i have an drop down list in the web paage and it has Item A, Item B, Item C as items in the drop downlist. when i run the page how can i make it to display the Item B which is the 2nd item to be displayed in …

Member Avatar for anisha.silva
0
223
Member Avatar for helloworld1234

my professor has asked us to solve the following problem but im having trouble understanding it **Write a function that takes in a 2 dimensional array of integers and returns the third largest number. Let the number of columns of your 2 dimensional array be 5. Call this function from …

Member Avatar for zeroliken
0
234
Member Avatar for pjns19

Hi All, I know this is probably going to be very simple but looking for some help. Currently i have a program that can put a website such as "www.google.co.uk" and pull all the HTML and put all that HTML inside a textbox unformatted. Is there a way i can …

Member Avatar for TnTinMN
0
168
Member Avatar for rocky.maivia.7161

interesting ideas to develop money making websites? i am a website developer, want to develop something that would make me financially good and idea should sound interesting and attractive to customers, help me , regards

Member Avatar for HunainHafeez
0
146
Member Avatar for jay889000

#include <stdio.h> #include <stdlib.h> #define PRECISION 3 double absD(double n) { asm( "_absD: \n" "pushl %ebp \n" "fldz \n" "movl %esp, %ebp \n" "fldl 8(%ebp) \n" "fxch %st(1) \n" "fucomp %st(1) \n" "fnstsw %ax \n" "sahf \n" "jbe L2 \n" "fchs \n" "L2: \n" "popl %ebp \n" "ret \n" "fldl …

Member Avatar for jay889000
0
482
Member Avatar for SamJo22

I'm trying to write a web server but with the code I have I'm getting 'open failed'. The html document (ht.html) which is supposed to be opened in the browser. It seems as though the code I have is not opening the file received through the socket hence it's saying …

0
187
Member Avatar for anisha.silva

HI i have a entity class vehicle and a entity class Customer. A customer has many vehicles, so in the vehicle entity class is as below @Entity @Table(name = "VEHICLE") @XmlRootElement @NamedQueries({ @NamedQuery(name = "Vehicle.findAll", query = "SELECT v FROM Vehicle v"), @NamedQuery(name = "Vehicle.findByMiles", query = "SELECT v FROM …

Member Avatar for anisha.silva
0
207
Member Avatar for Angel78

I am trying to make a movie list for myself, I got everything working like add and delete but the edit gives me some headace. I get all the values fine, id, movie title, director and year are all filled in, well not what category I added using radio buttons …

Member Avatar for broj1
0
259
Member Avatar for cdsr

Alright so I've been struggling to find the error but I simply can't. Given the following code: #include <iostream> #include <vector> enum ScriptType { SCRIPT_TYPE_CREATURE_SCRIPT, SCRIPT_TYPE_PLAYER_SCRIPT }; class Script { private: ScriptType type; public: Script(ScriptType type) : type(type) { } ScriptType getScriptType() const { return type; } }; class CreatureScript …

Member Avatar for cdsr
0
300
Member Avatar for jrotunda85

I have a javascript login box on my site ([url]www.cigardig.com[/url]) that a user can click on and login on any page. The way I would like it to work is that once a user hits submit, they are redirected back to the page they logged in on. So, for example, …

Member Avatar for bakhtn
0
2K
Member Avatar for luke.belleghem

Hi, I have a script that sends uploaded images to my images folder on my web server. Im not sure but I think it also renames the images (which is what I want to happen). Could someone please take a look at this script for me and tell me if …

Member Avatar for luke.belleghem
0
227
Member Avatar for DeepAnalyzer

Hi, i wanted to install maven in my windows 7 laptop.so i downloaded maven bin.zip file from maven website.then i extracted it to the program files as they have said.then i gave the relevant environment variables.but when i'm trying to check that the maven has successfully installed by running the …

Member Avatar for peter_budo
0
148
Member Avatar for Valiantangel

Hi I know couple of programming languages. I have been juggling for months with the question, if its worth taking a Cert in Android application development and /or IOS application development. I have asked around and got responses such as its a fad, tech will change in a few years …

Member Avatar for peter_budo
0
207
Member Avatar for engrjd91

whenever i try to install plugin in eclipse ... from help->install new software... when i give the download link in the workspace it gives the error of multiple problem and says "unable to read repository" .. what that mean ? any solution ?

Member Avatar for engrjd91
0
625
Member Avatar for Vish0203

Hi everyone! i'm getting strange outputs for the following code.. can anyone explain the reason for such output?? :/ I use DEV c++ int color_choose(void) { char clr[10]; int i; /*enum { green,aqua,red,purple,yellow,white }a;*/ printf("\n\n\tText color can be changed here! This the list of available colors: "); printf("\n\n\t Green\t Aqua\t …

Member Avatar for rubberman
0
122
Member Avatar for BARI DANIYAL
Member Avatar for on93

anyone know how to use bubble sort and also binary search ? this program cannot search out the name that user insert. anyone know how to fix it ? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #include<iostream> #include<string> #define size 5 using namespace std; struct student { string name; int id; string prog; double cgpa; }; …

Member Avatar for rubberman
0
175
Member Avatar for onkarpathak833

I need idea for some basic java program based on some real life examole using encapsulation,inheritance and polymorphism. Can you just give me outline and I will code the problem statement..?

Member Avatar for onkarpathak833
0
85
Member Avatar for javanoob101

Hello, I suck at programming, so I'd like some help on createing a .vbs script to disable right mouse clicking on the entirely Is this even possible? Google searching yeilded me nothing usefull... javanoob101

Member Avatar for javanoob101
0
374
Member Avatar for NFS1

I am creating a online car booking system, where a user is able to rent a car by per hour or all day. Below is the form i have created using formview: [IMG]http://i697.photobucket.com/albums/vv333/POLO_GTI_6N2/booking.jpg[/IMG] And here is the C# code i have created so far to transfer the data to the …

Member Avatar for NFS1
0
372
Member Avatar for sgnark

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\trail\index.php:1) in C:\xampp\htdocs\trail\index.php on line 2 whenever i run this file.... i will get a warning like this... i will attach the login page... after i will logged in i will get this same warning.... …

Member Avatar for broj1
0
3K
Member Avatar for asaness
Member Avatar for kimangel

Hi experts, I have an update form, even without changes made in fields the form will still be updated. How can I code that the form will not update without changes made. Pls help me. Thanks alot. below is my code. Private Sub cmdUpdate_Click() If Trim(txtLastname.Text) = "" Or Trim(txtFirstname.Text) …

Member Avatar for kimangel
0
146

The End.