199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for trinetra31

Hi, hello everyone. I am having troubles modulating these dtmf codes in visual studio 2008 in C. After going to Properties and selecting compile as C code, i complied it( F7) and then debuged it(F5) and then i was stopeed by this error window saying: Unable to start program 'C:\Users\Trinetra\Documents\nltvc\dtmf\Debug\dtmf.exe.' …

Member Avatar for Ancient Dragon
0
289
Member Avatar for t2ac32

Hi every one well i have this problem: Im creating a method for multiplying two different lists sorted in arrays example: MyList a [9,9,9,9] * MyList B[1,1,9] the problem is that i was told not to convert to a large int and then multiply like this 9999*9 +9999*1+9999*9 Since the …

Member Avatar for t2ac32
0
1K
Member Avatar for luftey

I'm currently on my final C++ project for the semester. My assignment is: =================================================== Programming Assignment 6 Attached Files File data.txt (0.628 KB) File sample_dynamic_array.rtf (33.957 KB) The attached text data file contains a list of numbers between 50 and 150. Create a program that reads those values into an …

Member Avatar for Schol-R-LEA
0
235
Member Avatar for iGuardian

[code]/* File: Rainfall.cpp Description: Write a program that reads in the average monthly rainfall for a city for each month of the year and then reads in the actual monthly rainfall for each of the previous 12 months. The program then prints out a nicely formnatted table showing the rainfall …

Member Avatar for iGuardian
0
1K
Member Avatar for jankeifer

guys, can you please suggest a 2 player game? any 2 player game as long as the difficulty of coding is at an intermediate level. thanks! :D hope for some replies soon.

Member Avatar for Sgt. Pepper
0
180
Member Avatar for ctoz

I have a switch function with four cases: each case executes a sequence of six css changes. How to stop it, if the viewer wants to abort, by choose another menu option? I've done a trawl, and the closest I've come to finding something which could be adapted is from …

Member Avatar for ctoz
0
146
Member Avatar for dwinn

Hi Everyone, I am currently devleloping a web site in VB and ASP.Net... I have got a dropdownlist box that contains a lot of centre names (being retrieved from an SQL Server database). I want to end up so that a user selects the name from the dropdownlist, clicks to …

Member Avatar for hericles
0
914
Member Avatar for jatinder_44

hello, I have written some code for it but it's not displaying date's in <td> where is the problem can any body tell me. [code=php] <?php //Get year 2008 $year = date('Y'); echo "Year $year</br>"; //get month $month = date('n'); echo "Month $month</br>"; //get day $day = date('j'); echo "Day …

Member Avatar for shamsidah
0
3K
Member Avatar for Sphiros O'kelli

Hey!! I'm new to C++, this is the final program of my semester and I am stuck sooooo hard... I have the code laid out and it will compile but my functions wont work like I want them too. here is the code: [CODE] #include<iostream> using namespace std; void getlist(int[], …

Member Avatar for Sphiros O'kelli
0
344
Member Avatar for rse

Hello, I need to show the date picker in an input field that is inside a form. I have index.php which has the code for the date picker, I just need to link it to the input field. I have the form in another file as follows: [icode] <form id="inputArea" …

Member Avatar for rse
0
215
Member Avatar for salsashark

I am trying to do a simple chat client for the Android (running 2.3.3 on an emulator on my computer and programing in eclipse. Below is a copy of my client code which is working fine as a normal java app. Below that I have what I have been working …

Member Avatar for mustafaneguib
0
388
Member Avatar for abyss776

I've been searching the internet for a way to specify the size of a component within a JPanel, but I haven't been able to find anything that has worked. The best answer I came across was to override the getPreferredSize(), getMaximumSize(), and getMinimumSize() methods of the component, but the component …

Member Avatar for abyss776
0
215
Member Avatar for ibthevivin

My issue is with the "if" statement. Basically I want the program to have proper grammar when it states, "1 [COLOR="red"]hour[/COLOR], 1 [COLOR="red"]minute[/COLOR], 1 [COLOR="red"]second[/COLOR]", instead of "1 [COLOR="red"]hours[/COLOR], 1 [COLOR="red"]minutes[/COLOR], 1 [COLOR="red"]seconds[/COLOR]". See what I mean? I gave it a go with "hours" but with no success. Plus any …

Member Avatar for hfx642
0
183
Member Avatar for jmercer23

I keep getting this error code on the code I wrote up for the array assignment in pgr. C:\Users\niffer\Desktop\weekfour.java:49: error: reached end of file while parsing } ^ 1 error Tool completed with exit code 1 I have looked over the code and can not see where the brackets are …

Member Avatar for NormR1
0
370
Member Avatar for mxa92

Basically, the game goes like so- User types a word they want player to guess (I've done this) each letter in the word is displayed by "-"'s (I've done this) Player guesses a letter in the word (I've done this) Check guessed letter with each position in the word (I've …

Member Avatar for hfx642
0
137
Member Avatar for aecha

Hi. I want to ask is it possible to do break statement first then to the continue statement? Like example, I want to do counting and have a break at the certain time then continue the counting back and stop back.Is it possible for me to do that? I already …

Member Avatar for markdean.expres
0
115
Member Avatar for carmstr4

So for my intro to programming class our final project is designing a simple game in Python. i picked Lingo but I'm running into a huge problem. Lingo is played by the computer picking a random 5 letter word (from a .txt file) then the user guessing 5 times until …

Member Avatar for carmstr4
0
2K
Member Avatar for jantrancero

I want to build a script that does the following: The script should do make an arry from the directory where the script is with os.listdir(). Then the script has to test if the value in the array already excists in the outcome file, if not the name in the …

Member Avatar for jantrancero
0
248
Member Avatar for asif49

I'm attempting to iterate over a list and when a chosen value is found remove it but I can only remove 1 value (the first one found). Why is this and how can it be solved. Here's the code I use [CODE] for (int i = 0; i<list.size(); i++) { …

Member Avatar for asif49
0
678
Member Avatar for minghags

i need to sum anything that is input in input form numbers. And this has to be in order like 5,4,3 and then it has to sum like 5+4+3 = 12. Can anyone help? I came as far as the code shows above. this is the example of how it …

Member Avatar for minghags
0
381
Member Avatar for ayocam

Hello, I have been working on learning Python and I have been writing a game(CLUI not GUI) that has gone through a few phases. It started out as a 3-4-5 variant assuming 3 rows with 3 objects in the first row, 4 in the second, and 5 in the third …

0
105
Member Avatar for suhnako

what's wrong with my coding?please help. [CODE] <?php $a= $_POST['ques']; $sql="SELECT * FROM $question WHERE question=$a"; $query=mysql_fetch_array($sql); while($result=mysql_fetch_array($query)){ $result['id']; } ?> [/CODE] or this one [CODE] <?php $sql="SELECT * FROM $question WHERE question='".$_POST['ques']."'"; $query=mysql_fetch_array($sql); while($result=mysql_fetch_array($query)){ $result['id']; } ?> [/CODE]

Member Avatar for diafol
0
311
Member Avatar for asif49

I have an Employee and a Job class, only up to 10 employees can be attached to a job so I store all the employees doing a specific job in the job class within a List (of max size = 10) The problem is, that the program is meant to …

Member Avatar for JamesCherrill
0
204
Member Avatar for harde

The program should calculate the average of the values stored in the [B]rates[/B] array. It then should display the average rate on the screen. Display the average with two decimal places. Complete the program using the [B]for [/B]statement. Save and then run the program. Complete the program and also have …

Member Avatar for Schol-R-LEA
0
235
Member Avatar for dave086

Hi, I have a website that I'm trying to embed a blogger feed into. My client doesn't want the user to be taken to the blogger site, but to click a link in the left hand side bar, and the relevant post load in a new page. What is the …

Member Avatar for diafol
0
209
Member Avatar for popsyjohnson

[CODE]//package import java.util.*; // the main class BinaryToDecimalCalculator public class BinaryToDecimalCalculator { public static void main(String[] args) { Scanner input = new Scanner(System.in);//scanner object for input //declaration of input variables int binary, exponent=0; float decimal, total=0 , currentNumber ; boolean error =false;//check for input errors //the user inputs a binary …

Member Avatar for Ezzaral
0
99
Member Avatar for deshazer.jad

It makes since that, when working with javascript, document.getElementById() can't find the Id of an object that hasn't yet been added to the DOM, however when I nest document.getElementById() in a function and call it after the object has been created, document.getElementById() still can't find the object. is there a …

Member Avatar for deshazer.jad
0
166
Member Avatar for Draucia

I have a question secuirty. Is it safe enough to do: [CODE] $fname = mysql_real_escape_string(htmlentities($_POST['fname'])); $lname = .....($_POST['lname'])); etc [/CODE] and insert it into the table like: [CODE] mysql_query("INSERT INTO North_America (first_name, middle_name, last_name, email, phone, country) VALUES('$fname', '$mname', '$lname', '$email', '$phone', '$country') ") or die(mysql_error()); [/CODE] Or do I …

Member Avatar for jlego
0
241
Member Avatar for dinhunzvi

how do i rewrite the following code using the ternary operator [CODE] if ( isset( $page_title ) ) { echo $page_title; } else { echo 'Welcome to Auto-Zim'; } [/CODE] thanks in advance

Member Avatar for pritaeas
0
134
Member Avatar for Psyho

Hello all. The problem: I have started a session. Now I would need to set an expiry time (24 hours) on the cookie it creates (if it creates it). How do I achieve this? Thanks to all, who anwsers.

Member Avatar for Stefano Mtangoo
0
119
Member Avatar for Thermalnuke

Alright, I am trying to count words in a file. The user running the program can choose a file that the program can count how many words are in the file. I have it working, but.... it keeps looping the last sentence [CODE]cout<<"There are "<<words<<" words."<<endl;[/CODE] over and over and …

Member Avatar for Thermalnuke
0
167
Member Avatar for vectro

I have a block of JavaScript code that is designed to be embedded into any web page. It displays a list of items from a database. In the .js file is actually a lot of PHP code within JavaScript. The problem: The cut-n-paste widget does not actually show up. It's …

Member Avatar for vectro
0
226
Member Avatar for moroccanplaya

hi i just started php, my code works on ie, bit when i open the webpage on firefox and chrome the image does not display?, can anyone help [CODE] $car = "C:\wamp\www\porche.jpg"; $banner = "<img src=\"$car\" "; $banner .= "width=\"380\" height=\"110\" border=\"0\" >"; echo($banner); [/CODE]

Member Avatar for pritaeas
0
199
Member Avatar for cool_zephyr

hello..i've made a structure given below and the objects of that struct are stored in an arraylist [code] struct node { public int x; public int y; public int cost; public object parent; } [/code] now when i'm adding a new object this type..i want to check if the arraylist …

Member Avatar for cool_zephyr
0
6K
Member Avatar for mridul.ahuja
Member Avatar for mridul.ahuja
0
4K
Member Avatar for lrnzsmok1

i need to write a Selection Sort program using the following functions: Get data(), Smallest(), and Exchange(). The program should include pointers. The following data should be included in the output: 23, 78, 45, 8, 32, 56. SAMPLE OUTPUT: 23 78 45 8 32 56 8 78 45 23 32 …

Member Avatar for shubhamhaowa
0
212
Member Avatar for asif49

Basically in my switch case, I'm trying to get it so if a String is typed in I want to return a message saying "Please enter an integer". I've tried using the try { } catch { } to do this but what happens is that in some of my …

Member Avatar for gusano79
0
6K
Member Avatar for iacosar

I have a problem with this code too. right now I have a segmentation fault but before I couldn't get the correct maxValue. [code] int maxValue(node* head, int max) { node* p; if (head == NULL) { return(1); } else { p = head; max = p-> item; while(p != …

Member Avatar for iacosar
0
160
Member Avatar for lastbencher

[code=c] #include <stdio.h> int main (void) { float a; a = 7/3; printf ("%f\n", a); } [/code] Result : 2.000000 Why is gcc compiler printing 0 after decimal?

Member Avatar for mridul.ahuja
0
147
Member Avatar for vaironl

Hello Forum, Vaironl here. I'm going to ask a question, that will most likely annoy you all, but first let me say this, I did some research but cannot use a Jscrollbar efficiently. That being said, I want to give more details. I'm trying to add a scrollbar to a …

Member Avatar for vaironl
0
122
Member Avatar for furlanut

I am trying to send results to a new page.The results are fine. i.e. once the form is submitted and all input validated I want the result to appear on the results.html page. I have been able to display the results.html but no data displayed. I attach some relevant code: …

Member Avatar for moneeshot
0
149
Member Avatar for aphide

Every day on his way home, little Billy passes by his great aunt Clara Mitchum's house. Generally he stops in for a chat with his aunt and sometimes he asks for some lollies. When he does, she generally gives him some, but then adds now don't be asking for any …

Member Avatar for WaltP
0
213
Member Avatar for sharathg.satya

i referred a site which said that using the include() we can include code of another page into the current page But i am not getting the output as they showed. this is my code [CODE] <html> <head> <style type="text/CSS"> body { background-color:#696565; font-style:italic; } h1 { color: green; text-decoration:underline; …

Member Avatar for moneeshot
0
115
Member Avatar for koolhawk

So Im trying to make a boggle program. It loads a text file for the word list. So my question is, How could I allow the user to specify a word and then have the program check if that word is on the game board. Heres my code so far: …

Member Avatar for NormR1
0
172
Member Avatar for jacob501

Hi, I want to make a specific program and I was looking around the internet for some help. I came here but wasn't sure what section to post in...so I chose this one for now! What I want to do is make a program that uses the internet and retrieves …

Member Avatar for Warezov
0
215
Member Avatar for terence193

This is what the question is stating: Write a program that inputs a line of text using function fgets() into a char array s[90], then it outputs the line converted to uppercase. For function [ICODE]fgets[/ICODE] to be used, am i correct if I understand that the user doesn't have to …

Member Avatar for WaltP
0
192
Member Avatar for HASHMI007

[CODE]#include"stdafx.h" #include <iostream> #include <conio.h> using namespace std; class LinkList { protected: struct node { int exp; int info; struct node* next; }; typedef struct node * NODEPTR; NODEPTR listPtr; public: LinkList(){ listPtr=0; } int IsEmpty(); void PushPoly(int cof,int ex); //void Mult(list); void Add(LinkList Poly1 , LinkList Poly2); void Display(int …

Member Avatar for HASHMI007
0
187
Member Avatar for MrJewbagel

[CODE]#include <stdio.h> int fill_array(void); int display_array(int count); typedef struct { char worker_name[20]; float hourly_pay; int hours; }WorkerRecord; int main() { WorkerRecord info[50]; int count, k; float average_wage; count = fill_array(); display_array(count); for(k = 0, average_wage = 0; k < count; k++) { average_wage += info[k].hourly_pay; } average_wage /= count; printf("\nAverage …

Member Avatar for MrJewbagel
0
97
Member Avatar for vani krishnan

Consider there is a string [COLOR="Red"]"hai welcome..."[/COLOR] I need to [COLOR="red"]print the string [/COLOR]as such [COLOR="red"]leaving the first three characters..[/COLOR] I should not use in-built functions or others... It should b [COLOR="red"]done in a single printf statement [/COLOR]by [COLOR="red"]changing the control string pattern..[/COLOR]

Member Avatar for vani krishnan
0
143
Member Avatar for Dakot

hello, I have a problem.I want to search by color , gender (these are the options) in a text file (called text.txt). My text file looks like that. How can i do that?) ex. cin>>s , then find for "s" , if found cout all data about him (gender , …

Member Avatar for Schol-R-LEA
0
136

The End.