199,114 Archived Topics
Remove Filter ![]() | |
Hello guys, I am new to this forum and I'm going to put my code here. [code=cplusplus] #include <iostream> #include <string.h> using namespace std; const int MAX_ACCOUNT = 12; const int zero = 0; bool validAcctNumber(int acctNum, int size); bool checkAccountUsed(int acctNum, double check[]); bool saveAccountUsed(int acctNum, double save[]); void … | |
I am doing my school project, and I cannot copy the linked list correctly. When I assigned temp to this, nothing happens. I believe I put all the related code below, any help will be appreciated. void poly::read () { // Pre: None. // Post: A new value is read … | |
What way(s) can I reread the same file in C? I've only been able to find C++ tutorials. I tried: [code] fclose(infile); infile = fopen(argv[1], "r"); //error checking [/code] but this code didn't go to the beginning of the file. | |
Hi, To speed up development of a certain procedure inside our company, I was wondering if it would be possible to 'undress' a templated word file (so we could use our stationery), mark it's dynamic regions, and fill these in using a C# program coupled to some sort of DB … | |
anyone here who can help me on this? I need to create a program that can output the location of 5 inputted values. sample input/output; enter 5 values: 4 5 9 8 3 enter no to search: 8 8 found in location 4 HOPE YOU GET IT> pls give me … | |
I have some more basic questions about using overloaded operators. This is just a hypothetical question. Say I have 2 overloaded operators functions defined for a class. The overloaded operator= function and the overloaded+ function. Now I want to create the overloaded operator+=. Can I define that function in terms … | |
Ok how would i be able to set a color palette to some variables....i need it to change the color of all these vars at one time :S [code]Call ShockwaveFlash1.SetVariable("_level0.holder_mc.GLOBAL_CRUMBS.player_colours.1", "0xD4AF37") Call ShockwaveFlash1.SetVariable("_level0.holder_mc.GLOBAL_CRUMBS.player_colours.2", "0xD4AF37") Call ShockwaveFlash1.SetVariable("_level0.holder_mc.GLOBAL_CRUMBS.player_colours.3", "0xD4AF37") Call ShockwaveFlash1.SetVariable("_level0.holder_mc.GLOBAL_CRUMBS.player_colours.4", "0xD4AF37") Call ShockwaveFlash1.SetVariable("_level0.holder_mc.GLOBAL_CRUMBS.player_colours.5", "0xD4AF37") Call ShockwaveFlash1.SetVariable("_level0.holder_mc.GLOBAL_CRUMBS.player_colours.6", "0xD4AF37") Call ShockwaveFlash1.SetVariable("_level0.holder_mc.GLOBAL_CRUMBS.player_colours.7", "0xD4AF37") Call … | |
hi guys wondering if you can help i have thrown together a rough and ready project using winsock, now it is just thrown together to see if i could get it to work the problem is (well it does work first of all) when i receive data it is in … | |
the program im trying to make will select a random movie from a list of movies and tell the user which 1 he should watch. first the program will ask how many movies there are. it will then ask for the titles of each movie and then it will output … | |
Hi .. I need a c++ program dealing with sales and marketing ... the program should contain some products where we enter the details of sales and it should yield a result of product as gud or a bad sales as profit.... | |
so im making the project and there is two pictures one that shows a light bulb on and the other is off. ur suppose to be able to type ur name in a text box and it will display turn on the light, what u type and turn off the … | |
[B]Need Help To Make First Letter Of All Words In A Textbox To Uppercase[/B] so, i have this code to convert first letter of word to uppercase: [CODE]Private Sub txtFields_Change(Index As Integer) txtFields(Index).Text = UCase$(Left(txtFields(Index).Text, 1)) & LCase$(Mid$(txtFields(Index).Text, 2)) txtFields(Index).SelStart = Len(txtFields(Index).Text) End Sub[/CODE] but, this was before i realize … | |
hi all, N good morning! I am developing an application in vb. I had developed my application on my PC in 1024*768 screen resolution. When i rum my application in the same screen resolution then it runs properly but when i run my application on 800 * 600 sreen resolution … | |
hello Is there any way to change numeric to figures? for example if the user input is 134, the program output must be one three four. thanks in advance, Bluebird | |
Hello there! So I have created a project for school. I have this program running without errors. The problem is it doesn't perform the math. Any ideas or suggestions? Here is the output when ran...and the code as well. Please choose your operator : + (addition) - (subtraction) * (multiplication) … | |
help needed to solve this series E(x)=1-x^2/2!+x^3/3!-x^4/4!+x^5/5!+.................... | |
[code=cpp] #include<iostream> using namespace std; int main(){ int a; int b; asm("jmp c\n\t"); a=7; b=12; asm("d:\n\t"); cout<< a<< endl<< b<< endl; return 0; } int pewp(){ int a; int b; asm("c:\n\t"); a = 3; b = 2; asm("jmp d\n\t"); } [/code] this will output [code] 3 2 [/code] what I … | |
I am facing a problem when i tried to run the python code. The error is " Name error:global name 'receive' is not defined". May I know how can I solve the problem? I am using this code in my mobile phone to communicate with microcontroller to control ON/OFF ports … | |
HI I am trying to work on a very simple recursive function but i get o/p as some negative values.. can u please help and tell me what mistake i am doing ? [CODE]#include<iostream.h> void countdown(int x) { using namespace std; cout<<x<<endl; countdown(x-1); } int main(void) { countdown(10); return 0; … | |
Hi all. I have a small script that creates and removes elements from an html form. This script also renames some elements upon deletion of another element. But this does not seem to be working properly. The problem is that i can't really figure it out so i was wondering … | |
hello every one i was just wondring if someone can help me to show me how i can design a menu like in the website [url]http://www.comparethemarket.com/[/url] i mean the middel menu where u move the mouse cursor and the contet change.... | |
Hi, I am writing a prgram in php.when i click "log out "button ,it redirects to my first page "index.php".(username & password) and then by clicking back button in the browser ,it showing all my previous pages that i visited. I want to disable back button in the browser (javascript … | |
I found a demo version of a jQuery accordion menu that I liked. I want to implement it on my soon to be published home page, What it does not do is that it pushes and pulls the content below it, as down as the accordion expands and contracts. I … | |
So the assignment is to create a Sorted Linked List, not doubly, and not using a tail. I am using a SortedListNode Struct in the private area of the SortedList class. I think this is causing problems. I have the logic, and I was on the verge of succeeding, but … | |
Here is the Data: [QUOTE] Department Name: Cool Casino # of Employees: 543 Cost Per Employee: 0.75 Sales: 1000.432 Department Name: Trumpola Burgers # of Employees: 43 Cost Per Employee: 19.725 Sales: 50 Department Name: Donoldio Clothing for Cats # of Employees: 4.0001 Cost Per Employee: 5.233 Sales: 100 Department … | |
Hello everyone, I need help. I have two table name: Table 1: resortid resortlocation Table 2 resortid resortname Now I want to get the maximum of resortlocation then getting the name of that specific resort also. I am having a hard time. Can someone please help me? Thanks. | |
Hi I had a database and a column called "details" in it. I need to select data from that column and show only limited characters of it. For eg: Original : The quick lazy fox jumps over a lazy dog. Display : The quick lazy ... How can I do … | |
I am totally stuck. I have worked on this for a week. I clean up the bugs and find more. It didn't look too hard to start with. I have to write an OOP program that displays the default info and then asks users for input. I have two headers … | |
Hi there..I have been given the daunting task of taking years of tournament scores and develop a database to calculate the bowlers tournament average. Each bowling season bowlers bowl in 3 mandatory tournaments and one optional. Each tournaments' scores and number of games (usually 6 or 10) are kept to … | |
Public Class Form1 Dim coin As New Random Dim heads, tails, outcome As Integer Dim totals As Double Dim frequency As Decimal Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load heads = 0 tails = 0 totals = 0 End Sub Private Sub Button1_Click(ByVal sender As … | |
Ok, so im having trouble with this program and dunno where to start, or end. if anyone is bored and can help out would be great. 1. The regular rate for a call is $0.10 per minute 2. Any call started at or after 6:00pm (1800 hours) but before 8:00 … | |
I'm using BufferedReader to read a string, which is converted into a character array. My program works find with short strings, but not long ones? Is there a limit to the char array's? Thanks in advance! | |
Following are my prototype definitions: [code] int fillArray (double commission[], int salesID[], int employeeCode[], int numUnits[], double numDollars[]) ; void printReport (ofstream& fout, double commission[], int salesID[], int employeeCode[], int numUnits[], double numDollars[]); void printHeader (ofstream& fout); [/code] The two void functions are the one's that I'm getting errors on … | |
Right now Im still beggining to learn the idea of pointers,basically I just want to ask a question about the code I have found, I mean I want to know what is happening right here...the comments on the code serve as my question just look at below... [CODE=cplusplus] #include<iostream.h> struct … | |
Good day. As the title sais, i am trying to extract pixel colors from images, in Python 3. I know that for python 2.x, PIL (Python image library) can do that, via Image > getpixel((x,y)). It returns the colors as a list with 3 parameters, Red, Green and Blue. This … | |
hi when I logged in, the details (user ID & last loggin in time) should show in each pages... can anyone please help me how can I do this? I have got login page with user name and password. when I logged in, it shows the details in the in … | |
Hi all, I recently finished working on a project that was to create a database type system for a student registration system. I created my own list class and stack to store the data... i create multiple classes, person (store student data: name, ssn, etc), student (student ID number), courseInfo … | |
Hello dear forum friends. I know that this subject has been dealt with before. I read the threads about this issue in this forum however I still couldn't make it work. So I'm bringing this up again and hopefully you'll find it in your hearts to forgive and help me. … | |
how to create a w64 structure in c++? im want to try to implement a memory model for the a simulator. so basically, the memory will be implemented as an 8 associative set array : meaning a two dimensional array where the first dimension is the 2^14 ( that is … | |
i have to invoke a servlet from jsp and pass many variables to the servlet. my jsp code is:: [code] <%@ page import="java.io.*" %> <%@ page import="java.lang.*" %> <%@ page import="java.sql.*" %> <%@ page import="javax.servlet.*" %> <%@ page import="javax.servlet.http.*" %> <%@ page import="java.util.*" %> <% String flag1=(String)session.getAttribute("flag"); out.println(flag1); if(flag1=="signin") { … | |
![]() | Greetings, I have reached a point where I need some help. I have a tivo at home, and I'm trying to script something that will allow me to 1.) pull the XML off of the tivo, and save the file, 2.) Take the text in the XML, and pull out … ![]() |
Hi, I am trying to implement a non_recursive version (bottom-up) of mergeSort. When I compile my code, however, my x-code brings up numerous errors that have to do with some files that I did not think I was messing with (stl_algo.h, and stl_algobase.h, and stl_iterator_base_types.h) -I will attach a picture … | |
Hi, im having trouble with simple problems with c++ and i just started up. I am trying to Determine what shirt size a person will wear if they weight from 100 - 199 lbs but i just dont know how do run it, the screen goes blank after i type … | |
Hey! I'm pretty new to programming, and since I'm a little too young to join any sort of course, decided to self-teach myself, and decided to start off OO programming through Java, seeing as I'll be picking up Computer Science next year as a subject, and it has quite some … | |
Has any one ideas about developing PHP pages that includes Microsoft's Silver Light? More specifically, generating pages like the graphics on the micirosft home page. | |
[CODE] String deleteString = e.getPath(); File deleteListFile = new File(deleteString); deleteListFile.delete(); [/CODE] so to talk you through it, the File object is obtained by the results by system.out.println (not shown here) ...and then I am getting the path of the file by using getpath() then i want that file path … | |
HI all Can anyone help me with this algorithm (I ned to write the code in java)......The java code would also be helpful [B]Describe a recursive algorithm for enumerating all permutations of the numbers {1,2,...,n}. [/B] I'd appriciate it if somebody could explain this problem to me and give me … | |
I installed successfully, it is in python26/Lib/site_packages but it won't import. Here's the error message: [CODE]>>> import pygame Traceback (most recent call last): File "<pyshell#0>", line 1, in <module> import pygame File "C:\Python26\lib\site-packages\pygame\__init__.py", line 93, in <module> from pygame.base import * ImportError: DLL load failed: The specified module could not … | |
Hello to alll programmers out there. Here i am trying to design a custom pascal triangle where the user can specify the TOP ELEMENT as well as both the CORNER elements. The problem i am facing is that the prog works well till the 3rd row but starts giving rubbish … | |
I wish to connect 2 computers together using a crossover Ethernet cable and then write a program in Visual Basic 6 to send data between them. How do I do this and are there any Vb examples? How do I know the address of the ethernet port to open? |
The End.