199,125 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Sadako

Hello! :p I don't fully understand how the Fall-Through method works. I’m making a Calendar and I’m using the switch statement to find which season it is for the month. Here is the book code: [CODE]switch (month) { case 12: case 1: case 2: Console::WriteLine(S" [Winter]"); break; case 3: case …

Member Avatar for Sadako
0
240
Member Avatar for tuskyballer

I'm about 3 weeks into my C++ class. I already made a simple program below that calculates grade averages and received an A. Now my teacher wants me to turn in three variations of it, replacing the goto with a while, do while, or for loop. I have experimented and …

Member Avatar for Stack Overflow
0
716
Member Avatar for SquirrelProdigy

What I'm looking for is where to look for how to set the size of the console window automatically, as opposed to the default. I've searched through the MSDN library's Console reference for any function that would set it, but nothing seemed relevant to me, granted I'm not very proficient …

Member Avatar for prog-bman
0
115
Member Avatar for deejay400

Hi, Trying to get my head around constructing an array of pointers (I think this is what its called). Been reading lots of online tutorials etc and just getting confused. Basically what I'm trying to is set an array of chars, with each array cell pointing to a linked list …

Member Avatar for Tight_Coder_Ex
0
107
Member Avatar for Tom Pilk

I've produced an exe file in visual basic - (recently downloaded as beta version) When I run it it will start up an excel file - runs fine on my computer but when I try it on another I get error message that dotnetfx must be installed. Can I alter …

Member Avatar for mcldev
0
152
Member Avatar for kon_t

Hi, I am interested in comments / experience people have wrt writing a tcp server in .net. We currently have existing an existing server, written in native c++. It communicates with our own browser client using a proprietery protocol and services hundreds / thousands of concurrent connections. The server uses …

Member Avatar for mcldev
0
101
Member Avatar for nanodano

Hey guys, I am trying to write a section of a program that reads in data from a file and stores the data into an array. The problem is the length of the file can vary, and I need to know how many items to store in the array.(I really …

Member Avatar for Tight_Coder_Ex
0
101
Member Avatar for ohnbabygal

hi im tryin to read some info (both characters and integers) from an input file and save them into the sorted list. it is a big project and i cant put all the files i have over here. so i'll just put the part im having a problem. i have …

Member Avatar for Dave Sinkula
0
112
Member Avatar for seeplusplus

alright, here i have this code i wrote....but it tells me now i have to have a public member function that will add two rational numbers, and have the result be stored in reduced form.......hmmmmmm......heres my code: RATIONALL [code] #include <iostream> using std::cout; using std::cin; using std::endl; class rational { …

Member Avatar for Dave Sinkula
0
120
Member Avatar for cap2361

ok, help!!! I'm totally lost. I have to use a file stream program and add names to file, then keep count of file names, then display the count of names entered and the names entered. Use a loop to enter names until prompt to end. these are just two of …

Member Avatar for cap2361
0
149
Member Avatar for server_crash

I have this problem with graphics, actually I know it's with my compiler... If I try to set the background of a button or something I get erros that's not even in my code.. I have this: [Code] btnCalc.setBackground(Color.blue); [/Code] and I get theses errors [Code] //g is already defined …

Member Avatar for server_crash
0
143
Member Avatar for OurNation

I have a GUI that displays a graph and I want to have some help with a code that allows you to click a point and then another point and then it draws a line. I need some help with this because I don't know were to start. ;)

Member Avatar for server_crash
0
103
Member Avatar for VSBrown

Here is a link to some ASM Code that I did while I was in college. Thought I would post it because maybe it will help someone else. [url]http://www.vsbrown.com/asm.asp[/url] :)

Member Avatar for VSBrown
0
192
Member Avatar for sindhu_at

hi I am just a beginner to ASP and at my work got this task to complete.There is an existing website with around 1000 asp pages.Now i have to add one table in all the pages in very short time. Can u please help me with ideas and codes, how …

Member Avatar for VSBrown
0
95
Member Avatar for ghaney1
Member Avatar for ghaney1
0
1K
Member Avatar for DaveSS

:?: Hi i am in my first C++ class and have already written two simple C++ programs. Im working on another using functions. I have to write 3 functions to calculate the area, cost, and retail price for wooden boxes and a main function to have the user input information …

Member Avatar for DaveSS
0
122
Member Avatar for Lapari

Hello, can anybody help me please? I am new to C++. I need help with assignment that calculate income tax. thank you. instruction: ******* 1.Set up a project called CTax. 2.Add to your project a class called GRTax. 3.The member variables for this class are: float mTaxableIncome, float mTaxRate, and …

Member Avatar for murschech
0
111
Member Avatar for Swashbuckler

Hi guys, hope you can help me. I've created a form in Dreamweaver (using the insert record wizard) which is linked to a MYSQL database. Trouble is once all the information is inputted and submitted I want the page to reload itself again so I have a fresh form to …

Member Avatar for mcldev
0
103
Member Avatar for MrTorch

I know the server is there, I used an install php to create the tables on the database. And Tables made it there. But this is what I get when I try to create a user. I'm Stumped. Warning: mysql_connect(): Unknown MySQL Server Host '<mysql29.secureserver.net>' (2) in /home/content/J/D/e/JDenham/html/connect.php on line …

Member Avatar for mcldev
0
160
Member Avatar for odee

i can't connect to mysql. the error is [code] Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client in C:\Documents and Settings\... [/code] im using the script here in the php tutorial: [code] $Host = "mysqllocation"; //location of mySQL on server $User = "username"; …

Member Avatar for mcldev
0
172
Member Avatar for boujibabe

I have been given an assignment to write a class to accomodate the following code: [code] int getMenuOption (); int main () { int option; int id; char name[80]; //create a Salesperson object and sets all 12 monthly sales to 0. Salesperson sp; cout << "Enter name: "; cin.getline(name, 80); …

Member Avatar for boujibabe
0
285
Member Avatar for Justup

i am pretty new at programming but i want to make a program that will download a file from a TFTP server and then execute that file in command prompt with specific paramete. Can someone give me some general coding i should use?

Member Avatar for Justup
0
72
Member Avatar for ultimate_fusion

code is below int average(){ //method in class int total = 0; int NOS=5; System.out.println(""); for(int i=0;i<10;i++){ if(ID ==" "){ NOS = i; break; } total += mark;// total is the problem, tried printing it // while thefor loop was running and at the end // and its says "0" …

Member Avatar for server_crash
0
125
Member Avatar for cwickam

I am trying to find the best way to program a timeshare inventory. Here is the problem, one unit has the possibility of being sold annually, odd or even years. If the unit is sold for just even or odd, I then need the open inventory to reflect the opposite …

Member Avatar for cwickam
0
125
Member Avatar for rporter1

I have found out through the compiler that you cannot declare and initialize an array within a class header file. I was trying to figure out how I might go about getting a 5 by 14 array initialized as a private mamber within the class. I have included the header …

Member Avatar for Tight_Coder_Ex
0
204
Member Avatar for lodacy

I will appreciate any help on the following. Please reply to [email]lotbook@telus.net[/email] as well. I am trying to program something that use huge integer matrices, say 100x1500. I can do it in Unix pascal, but the Unix machines are slow. I also have borland pascal 7.0, but all I could …

Member Avatar for geoclock
0
196
Member Avatar for VeG

was wondering if someone could help me on this slight problem my rogram compiles but a section doesnt seem to run.. } void main() { clrscr(); int one, two, three; char choice=' ', input[5]; while (choice != 'e') { cout<<"\nPlease enter +,-,*,/ or sqrt and then two numbers,\nsepperated by spaces, …

Member Avatar for Acidburn
0
116
Member Avatar for MrScruff

Is there anyway of actually changing the length of a slider. I have a some sliders in a grid layout and im wondering wether the grid layout will stop the sliders from expanding.

Member Avatar for paradox814
0
240
Member Avatar for onauc

Hello everybody, I am very curious to see the source codes that describe an image. I want to actually check the source-codes of gif, jpeg etc. files. Also, I am very curious to see the source codes that describe an sound. I want to actually check the source-codes of mp3 …

Member Avatar for frrossk
0
178
Member Avatar for notdumb

Hi, My assignment for class was to produce a program that runs the seive of eratosthenes to determine all the prime numbers between 2 and n, with n no larger than 100. I tryed to write the program with a boolian array that will turn all non-primes to false up …

Member Avatar for Siersan
0
90
Member Avatar for alastair18

I am rather inexperienced at C/C++ so hopefully my question will be easy to answer. I have created a struct which contains vectors. I read in data from a file into the various vectors in each struct do a bit of maths, write the results to another file, clear the …

Member Avatar for Siersan
0
103
Member Avatar for jillas

I have a question on how to program my nested loops. This is the output i am supposed to have. Enter the number you want to sum to: 8 0 = 0 0 + 1 = 1 0 + 1 + 2 = 3 0 + 1 + 2 + …

Member Avatar for jillas
0
110
Member Avatar for kubota

hi, in order to install my php gallery, i have to "Run the photos.sql script in your MySQL database" what does this mean? i know i have mysql, as i have a phpBB2 forum running. but how do i do this? thanks

Member Avatar for Gary King
0
151
Member Avatar for ultimate_fusion

I have two erros which I have tried everything to fix them C:\Documents and Settings\java:14: array required, but java.lang.String found ID[count] = ID; ^ C:\Documents and Settings\java:15: array required, but int found mark[count] = mark; heres the code class Module { String[] ID = new String[10]; int[] score = new …

Member Avatar for server_crash
0
111
Member Avatar for dani1982

I can't get this correct for the life of me please help!! one part (the one thats wrong) says to write it to determine the day of the week for a given day. I don't know how to do this?

Member Avatar for Dani
0
110
Member Avatar for Jason Marceau

Hi, I am learning Java and I have decided that I should create my first project. I have the application code for a Tax calculator and I would like to add a GUI to it but I am struggling to work out how to enable the text field box to …

Member Avatar for ecyarter
0
3K
Member Avatar for mcldev

My simple HTML script below uses SELECT to create a list which should be accessed by the PHP script as an array. Note the `products[]` definition below. BUT.... I can't seem to get the script to read the array from` $_POST` - anyone know how to solve this? <HTML> <TITLE>Input …

Member Avatar for mcldev
0
121
Member Avatar for the b

Hi all, does anyone know of a good compiler I can download for java? It would be nice if it was an IDE but it does not have to be. I currently have the j2sdk-1_4 compiler [url]http://java.sun.com/j2se/1.4.1/download.html[/url] and it does not seem to work that well. Also I know that …

Member Avatar for Jason Marceau
0
260
Member Avatar for syphyr_0707

Hello all, I am taking a C++ class after not touching it for about 4 years now... I am rather dusty. My book is horrible, I am trying to randomly select a switch case for a word output. This is my latest attempt: ******************************************************* [code] void right(); void wrong(); int …

Member Avatar for syphyr_0707
0
98
Member Avatar for samwelly

I am trying to write a piece of javascript so that numbers appear on the page as follows: 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 1 2 3 4 5 6 etc,etc up until 100 Have been scratching my head over this …

Member Avatar for Comatose
0
104
Member Avatar for echelon

I have a project due involving a problem from my textbook. In the text they want a list of all students for a carpool. They want me to get the info from an input file and print only the students from the local city (Huntley). They also want me to …

Member Avatar for echelon
0
206
Member Avatar for s47221288

Hi, I'm a thai student ... now i have a premiership project but i can't pass this problem that is , How to random matching football team ? example I have 4 team in `vector<string>` name [0]=a [1]=b [2]=c [3]=d I want to matching them such as week 1 : …

Member Avatar for s47221288
0
108
Member Avatar for migthyjohn

i hate C++. i have been working through the C++ for dummies book, and i have yet to make any sense out of it. the only thing that i have been able to grasp is the i/o parts. it is so hard. maybe i havent given it a chance to …

Member Avatar for Siersan
0
117
Member Avatar for zizi

i would be plzed that some1 tells me why doesn't my program run?and gives this massege [COLOR=Red]"could not creat process!"[/COLOR] [CODE] #include<stdio.h> #include<stdlib.h> #include<conio.h> struct list { char alph; int freq; }; struct list a[256]; /////////////////////////////////////////////////////////////// int main(){ int j,m,f,k; FILE *fin; char ch; clrscr(); fin=fopen("a:test.txt","wt"); printf("\n enter characters($ for …

Member Avatar for Tight_Coder_Ex
0
92
Member Avatar for autocrat

Hi all, I've been looking at forums, I've got my hands on phpBB... (it was free!)... yet not sure about it... does alot of things I don't need.... and is a pig to alter the layout, styles etc. (my being useless with php is the main cause for this!). So, …

Member Avatar for autocrat
0
103
Member Avatar for cdt1983

Hi, I have set-up a while loop to iterate an amount specified by the user. However, is it possible to compare two numbers entered by a user inside the loop and then have the larger number replace the smaller? I am having trouble because I have the first result being …

Member Avatar for cdt1983
0
117
Member Avatar for jasweb2002

Hi everyone, I need to write a compiler with Yacc that will basically perform minor algebraic commands. Here is the code so far for the Yacc part. [code] %token INTEGER VARIABLE READ WRITE %left '+' '-' %left '*' '/' %{ #include <stdio.h> void yyerror(char *); int yylex(void); int sym[26]; int …

Member Avatar for vegaseat
0
129
Member Avatar for samyn

hi .. im doin an assignment on edlin text editor.. while implementing the insert new line function i need to exit a loop when a key combination is pressed.. inside the loop there will be some lines reading input from the user..so will be somting like below while( ? ) …

Member Avatar for samyn
0
119
Member Avatar for evilmonkey29

in php i came accross the function [url=http://us3.php.net/checkdnsrr]checkdnsrr[/url]. optionally, you can enter one of the following dns record types: A, MX, NS, SOA, PTR, CNAME, AAAA, or ANY. The default is MX. i have no idea what any of them mean but wanted to use this function to verify e-mail …

Member Avatar for mcldev
0
161
Member Avatar for dannyshi

hi can anybody please help me with this, i had install a php script but i got some problem with mysql_connect the below is the error message: Warning: mysql_connect(): Access denied for user: 'maximus_dbwebnews@localhost' (Using password: YES) in /home/maximus/public_html/webnews/WebNews/admin/func/db.inc.php on line 25 Database error: Link-ID == false, pconnect failed MySQL …

Member Avatar for mcldev
0
166

The End.