132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Kaushalya

Hi all, i'm getting following error messege when i use switch(temp.month) { //work fine with case 8: case 08: amonth=temp.day/30; temp.day%=30; temp.month+=amonth; break; default:break; } error:illegal digit '8' for base '8'. I can't understand why it is.could someone help me out asap.

Software Development c++
Member Avatar for vmanes
0
86
Member Avatar for Mark515

[code=cplusplus] #include <cstdio> #include <cstdlib> #include <iostream> using namespace std; static const int password=1705898; int main; { int secondnumber; while(true) cout>>("Enter Password") cin<<(secondnumber) if(password = Enter Password) cout<<"Welcome Lukus"; else cout<<"Password Rejected"; system ("PAUSE") return 0; } [/code] i am getting the error C2447: '{' : missing function header (old-style …

Software Development c++
Member Avatar for Ancient Dragon
0
236
Member Avatar for wrichardson530

Hi all. I'm having difficulty making a log-in screen. i am using an adoc contorl called adoClerk, which contains only two fields and ClerkId and Password. The ClerkId is a autonum and password is text. I Have two text boxes that need to be read from this screen txtClerId and …

Software Development visual-basic
Member Avatar for choudhuryshouvi
0
212
Member Avatar for emilio

how can i make my combobox to show it's max index at all times?

Software Development
Member Avatar for emilio
0
84
Member Avatar for Nemoticchigga

Does anybody know where I can get some basic source code on the creation and use of threads (I know about threads, just never coded them, and reading up on them, some of the inputs into CreateThread are confusing)?

Software Development c++
Member Avatar for Nemoticchigga
0
106
Member Avatar for D boss

hi guys, i am working on applets, below is a bit of coding i am working on, it compiles with out any problem, but when i run it i get an error msg saying: `"Exception thread "main" java.lang.NoSuchMethodError: main"` if any one can advice it will be appreciated a lot... …

Software Development java
Member Avatar for D boss
0
87
Member Avatar for muguus

need help on adding a photo to a form and connect it to a database.thanx

Software Development visual-basic
Member Avatar for Jx_Man
0
80
Member Avatar for Chiciuc_Maxim

Hello, can someone tell me how I can use the atexit() function with class members?

Software Development c++
Member Avatar for vijayan121
0
984
Member Avatar for Merumi

Hey guys I hope you can help me with this problem, its like a minor problem. ----PROBLEM----- I don't know how to generate the secret code... meaning if the input was: { c.println (generateCipherAlphabet ("COMPUTER SCIENCE)); } Above only outputs "COMPUTERSINQVWXYZABDFGHJKL" which is the cipher alphabet only I want it …

Software Development java
Member Avatar for darkagn
0
124
Member Avatar for Scott Marchione

Hello all, I have a VB Script that creates a phone list for my company, and I have been asked to alphabetize the names listed under the department headings....I am so new to VB that this is the first time I have used it.....ever I've done a great deal of …

Software Development engineering visual-basic
Member Avatar for Scott Marchione
0
155
Member Avatar for knewc

Just some challenge code for ya, and some help for me on my independent study of C++ code a program that checks whether a string is a pseudo-palindrome.(a sentance that is spelled the same backwards/forwards. first code the following functions: char * remove_punct(char * str, char * remstr); char * …

Software Development c++
Member Avatar for ithelp
0
162
Member Avatar for Black Magic

Hi, I've been reading "C++ In 21 Days", I read functions a while back and decided to write some, i wrote the code and it gave me a error, so i copied and pasted code from the book and still got a error, you must see from my point of …

Software Development c++
Member Avatar for Black Magic
0
251
Member Avatar for amhadi

> Write a program that defines a class to keep track of student grades.The information the student class includes are the student’s first name, last name, a six-digit ID number, and a struct marks the struct marks contains five programming assignment scores, a midterm score, a final exam score, and …

Software Development c++ data-structure
Member Avatar for ithelp
0
145
Member Avatar for cyberman111

HELLO i HAVE A SCRIPT THAT TAKES INFORMATION FROM 2 FILES AND PUT IT IN ONE, NOW I NEED TO PUT ALL THE INFORMATION(OUTPUT) INTO A NEW FILE , THIS IS HAS TO BE DONE IN THE ORIGINAL SCRIPT NOT COMMAND LINE, CAN ANYONE TELL ME HOW TO DO THIS …

Software Development shell-scripting unix
Member Avatar for ithelp
0
117
Member Avatar for John83

Hi, I would like to write High perfomance server using C#. It would be desirable to hear offers and advices on this subject

Software Development c#
Member Avatar for Renegade83
0
113
Member Avatar for tristanmaturan

i want to create a program about record keeping system.. please do help me!! thanks everyone.. by the way I'm using VB.NET (^^)

Software Development vb.net
Member Avatar for jbennet
0
47
Member Avatar for Adrian99420

Hi, I created 2 window form using visual C++, I am trying to display the string typed by user in second window form's textbox. Here is what i wrote, but the code is not working: Form1.h private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { tabPage1->Text=Form2().textBox1->Text; }

Software Development c++
Member Avatar for mitrmkar
0
100
Member Avatar for Andy130

Hi everyone. i have a problem that's killing me here. (as everybody else...) this is friggin rediculouse though and i really need to understand what's up. i have a project due tomorow, and i got basically nopthing to turn in because it does not actually run... the problem is i …

Software Development c++ os-x visual-studio
Member Avatar for mitrmkar
0
122
Member Avatar for DARKSTAR

hi .......... how can i simulate the barcodes without a barcode reader.

Software Development java
Member Avatar for jasimp
0
557
Member Avatar for G-Do

Hi all, I add a pygame implementation of the Game of Life to the Code Snippets section. I was actually kind of surprised that we didn't already have one in there! The program only has about 60 lines of code, but I buttressed that with a lot of comments and …

Software Development python
Member Avatar for nish88
0
117
Member Avatar for Noliving

I basically have the entire program done except for one little problem my maxDepth output is wrong! But the rest of the assignment is after your program gets the correct answers, add static variables calls, depth, and maxDepth to your class and add code to your implementation of Z to …

Software Development java java-swing
Member Avatar for Noliving
0
86
Member Avatar for Acidburn

Hey guys, I've got a class defined has the following: [code] class TData(object) : #Overriden constructor def __init__(self, oc, via ): self.oc = oc self.via = via [/code] now in a separate file I'm trying it iterate through that using recursion. [code] def search(critia, searchSpace, value) : print "Calling search …

Software Development python
Member Avatar for Acidburn
0
257
Member Avatar for shilp

Hi, Can we inherit windows controls in a form? If yes, how to do that? Thanks. Shilp

Software Development vb.net
Member Avatar for shilp
0
101
Member Avatar for alexhkleung

i want to frd the[COLOR="Green"][B] MainControl[/B][/COLOR] with the derived class [COLOR="Green"][B]food [/B][/COLOR] [B][COLOR="Green"] objects.h (abstract base)[/COLOR][/B] [CODE=C++] #include "maincontrol.h" class objects {...}; [/CODE] [B] [COLOR="Green"]food.h (derived)[/COLOR][/B] [CODE=c++] #include "objects.h" using namespace std; class food: public objects {...}; [/CODE] [COLOR="Green"][B]maincontrol.h[/B][/COLOR] [CODE=c++] class objects; class food; class MainControl { public: friend objects; …

Software Development c++
Member Avatar for alexhkleung
0
123
Member Avatar for Farisnet

Hi... I am a bit new to programming, and I'm trying to learn C++. I was wondering if there was a way to copy the contents of one variable into another... So that, for example: [ICODE] int x=5; int y; (Some fancy code here involving x and y); (y=5 but …

Software Development c++
Member Avatar for dougy83
0
20K
Member Avatar for nurulshidanoni

what is the =' : left operand must be l-value means? error C2106: '=' : left operand must be l-value [code=C++] #include <iostream> // std::cout #include <fstream> #include <iomanip> #include <string> // std::string #include <vector> // std::vector<> #include <algorithm> //std::for each() using namespace std; // import "std" namespace into global …

Software Development algorithm c++
Member Avatar for nurulshidanoni
0
437
Member Avatar for sahil_itprof

Can any onbe say me the exact difference between a pointer (*p) and the array p[]???? I mean to ask that when we pass an array to a function by reference, we can have both in the function definition, the * or we can manipulate the array too... But there …

Software Development c
Member Avatar for Aia
0
182
Member Avatar for swapna7999

hi thanks for ur suggessions now i got mysql connection with vb but i need to use the mysql Queries in this application hope i wil get solution thank u very much

Software Development mysql visual-basic
Member Avatar for swapna7999
0
843
Member Avatar for 9107you

im new to java help me wit this question (you might think what the hell am i doin) question is: Using a series of methods, output the popular song "My Bonnie Lies Over the Ocean". However, instead of using "Bonnie", allow the users to enter a name of their choice. …

Software Development java
Member Avatar for javaAddict
0
127
Member Avatar for swapna7999

hi there thanks guys now im able to connect to the mysql database and know how to use select statement to access the the data in the database but what to do to view the data retrieved by the select statement

Software Development mysql visual-basic
Member Avatar for swapna7999
0
79
Member Avatar for santoo

Hi, I am sorry if I am posting ...at wrong place.I donno where to post this. I have developed a windows service which uses a timer...to run the SQL Server for exactly 30min.If sqlserer service is stopped it starts the service and stops it after 30min and vice versa. I …

Software Development windows-server
Member Avatar for santoo
0
142
Member Avatar for shadwickman

Hi, I'm using wxPython (the latest version) and was wondering how to get rid of the scrollbar on the wx.TextCtrl (multiline) object. I couldn't find anything with Google or the search on the forums. Thanks!

Software Development python
Member Avatar for kushyer
0
139
Member Avatar for shreka

Hello, I have been asked to create a pascal program but I am finding it really difficult because I haven't dealt with text files or binary searches before. The program is supposed to read a Student ID and then the program should display the Student's details. All of the data …

Software Development pascal
Member Avatar for another guest
0
522
Member Avatar for moltenice

Assignment - [url]http://condor.depaul.edu/~ntomuro/courses/262/assign/hw2.html[/url] [code]Write a class called Loan, which simulates the money you borrow from a financial institution, and a main function (i.e., an application program) which tests the class. You write ONE file, which should be named "myLoan.cpp". 1. Class Loan The class Loan should have the following members: …

Software Development c++ ios session
Member Avatar for Agni
0
277
Member Avatar for Noliving

In this assignment you will implement the following recursive function in a ZFunction class. You must implement a main that will gather the parameters for the recursive function and display the result. Use JOptionPlane for the input and output. Given the function Z(x,y) where x and y are (small positive) …

Software Development java
Member Avatar for Noliving
0
167
Member Avatar for lemond

helo what is the right coding to link my databse(sysbase) to vb.net?and how to insert the txt box value into database table value?the problem is when i put the [CODE]Insert into ad_Report values("' + txtName + "',"'')[/CODE] as example into the coding,it wont appear in database and error will display …

Software Development vb.net
Member Avatar for lemond
0
150
Member Avatar for Moporho

I am trying to solve a problem from a lab challenge. I can not get the program to compile correctly. Please look over and let me know where I need to be looking to solve this Use a two-dimensional array to solve the following problem. A company has four salespeople …

Software Development c++ ios
Member Avatar for Moporho
0
4K
Member Avatar for CaffeineCoder

OK, this should be easy (in theory) but I'm having issues with the java applet showing up in the HTML. The applet works when I run it within the IDE, but when I try to run the applet, a message in the bottom left of the applet window says that …

Software Development html-css ide java
Member Avatar for CaffeineCoder
0
122
Member Avatar for Arne Kristoffer

Hi! I have this function (well, it's pretty good explained in the code-tag, but okay.) which is supposed to see if a string is found first in a line in a text file. Anyway, this code gives the message (while running in debug mode in MSVC++): "Debug assertion failed. Expression: …

Software Development c++ storage
Member Avatar for Ancient Dragon
0
865
Member Avatar for Jennifer84

I opened the command promt inside VC++ and this solved it. I have encountered a problem. When I compiled a program it came up an Error Message and the VC++ 2008 Express Edition was closing. When open VC++ again and press on my project that I work with. This message …

Software Development c++ ide visual-studio
Member Avatar for Colstel
0
625
Member Avatar for petzoldt01

It has been a long time since I have used C++ (I am only 20, so maybe not that long) I have been using several languages in the last couple years(Java, ActionScript2 and 3, PHP), polluting my mind with many different idioms, and now need to hop back to C++. …

Software Development c++
Member Avatar for Ancient Dragon
0
153
Member Avatar for aquariusdragon2

So I know how to delete a descriptor from an array, but I can't seem to edit the code to add a new line to the data. The line consists of a name, one space, and then a 3 digit number. I was wondering if anyone could help me edit …

Software Development c++
Member Avatar for Ancient Dragon
0
105
Member Avatar for Ryano24

I am trying to do a program that produces random limericks and this is what I have so far... I am posting this again, because I don't think the first one went through. Sorry if it did... #include <stdio.h> #include <time.h> #include <stdlib.h> #include <string.h> #include <ctype.h> int main(){ char …

Software Development c
Member Avatar for jephthah
0
91
Member Avatar for rock_rocks

Hi all, I have read an YCbCr image by using fopen, fread using C. I wanted to extend this to read multiple frames like in a Video. How should I proceed? I should take a while loop, but then what is the limit of the counter. After reading those images …

Software Development c image video
Member Avatar for jephthah
0
118
Member Avatar for cmoney12051

I am trying to firgure a way to store test scores to a arr or something so i can sotre 20 different scores and twenty different possible points values. but i cant seem to get it right i have almost everything done acept storeing the vales so i can recall …

Software Development c++
Member Avatar for cmoney12051
0
97
Member Avatar for h0neydip

ok i have this program dealing with date Class. im having trouble with the overloaded operator % which returns a date with smallest component month, day, and year for two given dates. your help is very appreciated. For Example: d1 is May 5 , 1942 d2 is August 1, 1970 …

Software Development c++
Member Avatar for Ancient Dragon
0
372
Member Avatar for angleyz14

I need to write a program, that if anyone ever played memory when they were younger does exactly that, that asks a user for 8 numbers. the numbers the user inputs need to be scattered across a 4x4 array. for example if a user enters 4 there need to be …

Software Development c++
Member Avatar for vmanes
0
80
Member Avatar for mikky05v

this is simulated data on daily vehicle traffic crossing a bridge for one week. From Monday through Sunday the daily vehicle counts were {986, 818, 638, 763, 992, 534, 683}. Create an input file named cars_data.dat containing these numbers. Write a program that will read these values from the input …

Software Development c++
Member Avatar for hammerhead
0
150
Member Avatar for Islandstone

I'm having trouble running my compiled program on other computers. The script is a wxPython GUI app that creates a task bar icon. The script works perfectly on my computer both standard, in the pdb and compiled. But on two other computers it gave two different errors. The first one …

Member Avatar for Islandstone
0
328
Member Avatar for samush

The problem is that my program crasches when at line 13. Pot10 i an int and lgth is an int so whats the problem? I can't figure it out:( [CODE=c]typedef struct ArrInt{ int intM[100], lgth; } megaint; void scanMeg(megaint *x){ int Pot10 = 0, ret,IntArr[100]; char c; while( (c = …

Software Development c
Member Avatar for Salem
0
245

The End.