199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for RaCheer

I have written a program that allows the user to insert scores and the program then provides the average score, the number of scores entered, the amount of each letter grade, and the highest and lowest score. I've also used a sentinal to exit. I'm new to C++ and this …

Member Avatar for ~s.o.s~
0
156
Member Avatar for fesago90

;) Hey guys, I have another simple question today: Lets say I have a structure: [code=c++]struct Info{ string name; string id; double telNum; }; //.... Info person; //....[/code] Now, if I had a function in which I told it to output one of the elements in the structure, how would …

Member Avatar for Ravalon
0
138
Member Avatar for ryy705

Hi, I just installed MySQL on my computer and went though a decent MySQL tutorial. Now I need you guys help me out so I can get my java programs to connect to MySQL. I am using the following code from a book to connect. [code] import java.sql.*; public class …

Member Avatar for ryy705
0
469
Member Avatar for mattyd

Hello: I am interested in understanding recursivity; I have not knowingly used this much in my programming. I am reviewing certain areas of OOP in order to learn more and better about areas that I may not be[I] fully[/I] understood yet. Recursivity is one of these areas. I understand the …

Member Avatar for Infarction
0
186
Member Avatar for adhetola

can anyone help me with the simplest c++ code for solving the sudoku puzzle, without testing for correctness/uniqueness of entries?

Member Avatar for WaltP
0
86
Member Avatar for cusado

hi im still finishing a calculator program. the problem is i am wondering what command to use to break out of multiple loops. my code is [code=c] [COLOR=Gray]#include <stdio.h> #include <ctype.h> #include <math.h> double do0p(char op, float acc, float num) { switch (op) { case '+' : return acc+num; break; …

Member Avatar for WaltP
0
141
Member Avatar for charmee

I have to pass this assignment which calculates the income of workers using pointers and structures.. I'd be very glad if you could help me with this.. uhmm.. could you also please tutor me about this program if you got any answer..?? thanks!!:cheesy:

Member Avatar for WaltP
0
75
Member Avatar for megabutt

Problem background: I am writing a Visual Studio C++ app referencing an Api library provided by a third party. Problem: after calling the API function I am getting a 2059 "syntax error" that I don't understand. I have added the code exactly as the third party documentation has described. Error:c:\documents …

Member Avatar for megabutt
0
137
Member Avatar for ajaytee

Hello all, im a beginner to VB.Net and kinda annoyed at the "not able to print to the screen and clear the screen facilities". Anyways i need to make a program to display the numbers 1-10 (a counter) on the form, my code so far is Private Sub cmdStart_Click(ByVal sender …

Member Avatar for jbennet
0
83
Member Avatar for 2nick82

How to generate 50 distinct numbers in an array? I have the code for generating 50 numbers but thay are not different. I get same number sometimes twice or three time. Here is my code: [code=c] #include <iostream> #include <cstdlib> #include <ctime> using namespace std; int num; int main() { …

Member Avatar for Ravalon
0
113
Member Avatar for cusado

im writing a calculator program in c and having some trouble.. basically it needs to have + - / * ^ functions as well as an integer only mode the code so far [code=c] #include <stdio.h> #include <ctype.h> #include <math.h> int main(int argc, char *argv[]) { float acc, num; char …

Member Avatar for Ravalon
0
189
Member Avatar for arshad mohammed
Member Avatar for Firestone

I wrote this code to produce a fibonacci seqeunce to a cretain number. However, when you get to a certain number, it starts producing negative numbers, and I don't know what to do. [code] #include <iostream> #include <stdio.h> using namespace std; int main() { long lMax; lMax = 0; long …

Member Avatar for Salem
0
134
Member Avatar for Cudmore

Hi! I'm looking to learn something today, and I have just the question. In writing a recent program, I found no Java method suited to compare two byte arrays. Maybe the method exists, or maybe not. In any case, this is a learning expedition, and I came up with a …

Member Avatar for jwenting
0
124
Member Avatar for fonzali

hi everybody , I am new to python and interested in graphics . I like somebody to walk me thru monthly calendar using tkinter . I have already printed 07 calendar using python but I am stuck when it comes to use it with tkinter . it is no homework …

Member Avatar for vegaseat
0
4K
Member Avatar for norfazilah

Hi I'm using Visual Studio 2005 to write C# code. The codes are as below;(which i got fron C# book).But, it says "There were build errors...bla3",. And i didn't get the output. Can anybody here explain me,why this happen?Well i'm beginner in C#. For all,Thanks :) [COLOR=#000000][COLOR=#0000ff]using[/COLOR] System; [COLOR=#0000ff]class[/COLOR] [COLOR=#008080]TypesSample …

Member Avatar for campkev
0
124
Member Avatar for localshredder

Does anyone know a good c++ compiler equivalent for MinGW on Mac OSX (10.4x)? I just started a class that requires the use of MinGW, but since it's native windows I obviously can't use it. And just to clear the air, I would rather not install Boot Camp just to …

Member Avatar for Madd the Sane
0
15K
Member Avatar for jan1024188

Whats better? C++ or VB? Im sure C++ is much more powerfoul and portable than VB...what do you think?

Member Avatar for Ravalon
0
335
Member Avatar for EnderX

I know, I know, one of the big advantages of PHP is that the variables in PHP don't take typecasting but instead any variable can hold any data. Thing is, for something I'm trying right now I [B]need[/B] the ability to cast. I'm trying to add together financial values drawn …

Member Avatar for php_daemon
0
121
Member Avatar for slacke

I want to create a simple script for uploading files from local maschine (windows) to a web servers (linux) directory. I found on the net some example codes and make the two parts of that simple script. 1. The HTML form creation... [php] <html> <body> <form enctype="multipart/from-data" action="upload.php" method="POST"> Choose …

Member Avatar for php_daemon
0
130
Member Avatar for Shaabangbang

Hello, i am currently working on the Flapjacks problem, The program compiles correctly, only it keeps going into infinity when i input, it keeps asking for more inputs, and its supposed to stop when i input -1. Here is my Code. [code] #include <stdio.h> #define SIZE 30 int isinorder (int …

Member Avatar for Shaabangbang
0
79
Member Avatar for Nsin

Hi all, in one of the header file I have declared #define GPSINIT "version no" I need to find where this string is stored in memory location. I tried to test_string1 = &GPSINIT2STRING; LOG_Write(test_string1,sizeof((int*)test_string1)); /*this func writes the result to a new text file*/ Also is it possible to get …

Member Avatar for Salem
0
120
Member Avatar for micros5

Is there a way to enter in graphic mode when a process is running in the MS console mode in WXP?. I used to us graphical mode with old borland C, but now in VC++, I can not found the way, I found the SetTextColor, but is not graphical mode.:sad:

Member Avatar for micros5
0
99
Member Avatar for Sarah Lee

[URL="http://www.aspmessageboard.com/forum/printMessage.asp?M=863793&T=863793&F=36&P=1"][IMG]http://www.aspmessageboard.com/images/printer.gif[/IMG][/URL][COLOR=navy]hi all [/COLOR] [COLOR=navy]I am trying to implement exception handling in my application, where I come accross some questions [/COLOR] [COLOR=navy]I have set the customerror mode to renote only, and defaultredirect to a asp.net page.[/COLOR] [COLOR=navy]1) do I have to comment that out, till i release the project? [/COLOR] [COLOR=navy]2) …

Member Avatar for campkev
0
112
Member Avatar for quicknk

For some reason I keep getting the following error: [code=asp] error '80020009' Exception occurred. [/code] It applies to the line of code: [code=asp] If (cInt(objRS("User_ID")) = Cookie_ID) Then [/code] for some reason it freaks out with "cInt(objRS("User_ID"))" when it runs through the db to find a User ID that matches …

Member Avatar for quicknk
0
218
Member Avatar for h3ngh3ng

Currently, i created a datagrid that enabled user to insert , update and delete from the datagrid.. My problem is..How to validate the input when the user is inserting values into a new row in the datagrid. Any idea?

Member Avatar for kapil.goyal
0
98
Member Avatar for Rickenbacker360

Hello, before I post my question I just wanted to thank those who helped me last time I posted. I was seriously considering dropping my class thinking that I wouldn't be able to do it. However, with my last hw assignment I came here and Niek_e especially pointed out some …

Member Avatar for Nick Evan
0
102
Member Avatar for kantze

Hi there. Pointers confused me till the first day I used them (1 year ago) and still can't understand them 100%. My problem is: I've read from a book that when you have [B]a class with a char* member you must create your own copy constructor[/B],allocate memory dynamically... but this …

Member Avatar for Infarction
0
116
Member Avatar for darkeinjel04

Hi im new here...i am only an high school student, i hav a problem on my this output...im using turbo c, can u help me with ths?? i cant get it...pls help 1. 55555 4444 333 22 1 2. 12345 1234 123 12 1 3. ****5 ***4* **3** *2*** 1**** …

Member Avatar for Nick Evan
0
109
Member Avatar for dalvandi

hi. i really need 8-queens problem assembly source as soon as that you think! any body can help me?:?:

Member Avatar for simona66
0
129
Member Avatar for samernic

A container that holds 50 distinct integers has two ends: top and bottom. When an input integer matches one of the integers in the container, it is then moved to the top, and all the integers above the matched integer are moved down to fill the gap in the container …

Member Avatar for Nick Evan
0
119
Member Avatar for jan1024188

Hello, Sorry for my "n00bness". I finaly choosed qt. I made an .ui file with qt4 designer and written main file. First: -I included "ex.ui"...IS that right? Will compiler accept that? HEre is the code, [CODE]#include "ex.ui" #include <QtGui/QtGui> int main(int argc, char *argv[]) { QApplication app(argc, argv); app.setQuitOnLastWindowClosed(true); QMainWindow …

Member Avatar for jan1024188
0
110
Member Avatar for sree_asrl

hi, I am new to C++. I need to develop an application in VC++ 6.0 which can send an SMS using SMTP thru SMS gateways. i dont have any clue how to proceed. so pls help me out its very urgent. if possible cau u send me a sample code …

Member Avatar for sree_asrl
0
116
Member Avatar for Mushy-pea

Hello everyone. I need to write a Bash script to remove blocks of text from a given file. The idea is, the text to be removed will be marked by appearing between certain delimiter characters i.e. [code] Here's some text and ~this bit gets removed~, where tilda is the delimiter. …

Member Avatar for kuom
0
108
Member Avatar for raydogg57

Hi all. Eventually my program needs to prompt you to enter a year between 1800-2007 and then it will print off the calendar for that year. In order to do this I must create functions that determine what day of the week Jan 1 was that year, and a function …

Member Avatar for John A
0
252
Member Avatar for varundba

Hi GURUS, Sorry to disturb you and take your time, I have a small job to do, it is - We will be taking back-up's regularly at certain time intervals according to the non - business hours. Suppose according to the business logic we scheduled a back-up job that takes …

Member Avatar for kuom
0
118
Member Avatar for hariza

Hi Guys, I need to be able to print something like: [B]Player 2: Enter a word (1-20 char,blank line to quit):[/B] and then right after I have entered the word the output should look like : [B]Player 2: Enter a word (1-20 char,blank line to quit): apple[/B] My printf looks …

Member Avatar for John A
0
143
Member Avatar for Havokie

Hi guys, Been an IT student for a few months now, and I've been kinda struggling along until now, but my last assignement I can't do. I don't expect anybody to do my homework for me, but I do want to just be able to understand the code rather then …

Member Avatar for Havokie
0
212
Member Avatar for dont767

My problem is that i have been asked to try and find out how to, and to make a program in VB which is linked to an access database. I help out at a charity band thing which happens every week. there are three bands play (but that doesnt matter) …

Member Avatar for jbennet
0
84
Member Avatar for Paul.Esson

[B]Intro[/B] I'm not the best at this, but I thought we were lacking a SQL tutorial... [B]Test table[/B] My Little Test Table called "test" for this great exercise contains the following [B]FirstName[/B] [B]LastName[/B] [B]EyeColor[/B] Paul Esson Brown John Smith Blue John Howard Green Kim Beazley Gray [B]SELECT[/B] This selects data …

Member Avatar for shadowrider
0
257
Member Avatar for Talon

Hi, I've got a project in which I need the program to reject a sentence if it has a certain word in it using StringTokenizer. Here is what I have so far [code] import TerminalIO.*; import java.util.*; public class Censor { public static void main(String args[]) { KeyboardReader reader = …

Member Avatar for Talon
0
143
Member Avatar for pointers

Hi, I am a basic learner in C language.Could u please provide me a good link or tutorial or explanation regarding "order of precedence". I have the table of "order of precedence"........but needed some examples. I am always confusing with them. like, *ptr++=something; *++ptr=something i=i++................etc. Thanks & Regards.

Member Avatar for WaltP
0
200
Member Avatar for wnm

Really strugling to get an .ini file in to a DLL and still be able to edit it. Any one plz help send anything you can to help me to [email]michaelbrianlake@gmail.com[/email]

Member Avatar for jwenting
0
104
Member Avatar for jlord05

:cheesy: pls help me on my project!!! you must input 5 numbers and the program must find the smallest from the five inputs then subtract the smallest from the other inputs..pls help me and pls show the source code:cheesy:

Member Avatar for jwenting
0
74
Member Avatar for Mushy-pea

Hello everyone. I'm still working on that forum system I mentioned a bit ago (perlBB). Hopefully it'll be ready for Christmas :p . However, I ran into a strange problem while I was re-writing parts the two functions below. [code=perl]sub enter_post { my(@field, $input, $offset1, $offset2, $n, $name, $field_length, $flag_guest, …

Member Avatar for swampyankee
0
86
Member Avatar for crazynp

Can anybody help me to make a picture link counter. I have a field in databse call wall_views which is set to 0 at the beginning but should increment after the pic is clicked. Thanks in advance

Member Avatar for crazynp
0
302
Member Avatar for k3n

I'm having trouble writing a program. I have to determine the name of student who scores the highest marks for each module and the highest in the average score of 5 modules. Hence display them in a table form where 1st column is the modules and the 2nd column is …

Member Avatar for Lerner
0
199
Member Avatar for confussed!

Hi all. I am required to create a application which allows a user to drag images to a icon/ folder. This image file will then be copied. A thumbnail is then created and the thumbnail uploaded to an online Gallery. My first question is whether this is possible to achieve …

Member Avatar for confussed!
0
266
Member Avatar for Yuki H.

I was wondering- is xml sort of considered like a stylesheet? (example: css) or is it more considered something like html? where you make tables and such.

Member Avatar for meaculpa
0
359
Member Avatar for Rickenbacker360

Hello, this is my first time posting here, so I'm new to the site and C++. First off I'm not asking anyone to do my homework, but I'am having some homework troubles. I've been working at it for awhile and I'm not really sure where to turn next. so any …

Member Avatar for Nick Evan
0
109

The End.