132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ArvindRaja

I am using MS VC++ '08, ad have run into a problem that stumps me : [code] void printtext(char **lotsoftext,int m,int n) { for(int i=0;i<n;i++) for(int j=0;j<m;j++) print(lotsoftext[i][j]); } [/code] The error is as follows : cannot convert parameter 1 from 'char' to 'const char *' How do i correctly …

Software Development c++
Member Avatar for mrnutty
0
88
Member Avatar for johnysums

I made an IDictionary where each value is a user-defined class called employee, and the key is an integer (the employee's id number). Now, im using such a statement: [code=CPP] for each(employee^ de in globals::clientBase) { sr->WriteLine(de->employeeName); } [/code] but i get an error at runtime saying that they couldnt …

Software Development c++
Member Avatar for MosaicFuneral
0
130
Member Avatar for codedhands

Hello, i have a problem constructing a regular expression to strip out puntuations from a document.Below is a simple example of my code [CODE=c++] # //headers here //... string a="kennedy .really-really. .cool"; string replace=" "; string newStr; boost::regex expression("[ ]+(\\.)|(\\.)[ ]+",boost::regex::icase); newStr=boost::regex_replace(a,expression,replace); cout << newStr << endl; //output kennedy really-really …

Software Development c++ regex
Member Avatar for codedhands
0
89
Member Avatar for SeeTheLite

The google references were a bit varied and ambiguos and my textbook ironically doesn't cover templates ._. if I were to make [code=c++]template <typename typ> class stk { public: stk(); ~stk(); private: struct STK { typ dat; STK *lnk; }; *chn; int ctr; }; [/code] do I have to do …

Software Development c++
Member Avatar for SeeTheLite
0
97
Member Avatar for Evil_genius82

hey guys, im very new to java so bare with me... i cant seem to bubble sort my arraylist... The data needs to be displayed unsorted in a jlist, then when user clicks process the list is sorted according to student id. If anyone could guide me through it would …

Software Development java java-swing
Member Avatar for Evil_genius82
0
260
Member Avatar for hardikvd

consider this: float a=3.145698,b; que: now how can I assign b=3.14 using 'a' instead of 3.145698. pls help me... thank you very much....

Software Development c++
Member Avatar for mrnutty
0
89
Member Avatar for Basicgear

Im learning as I go with a program I am writing. Im receiving and unexpected error and hoped someone could shine some light on as to why. I am making a list of objects but when I try to add to the list I receive (Invalid token '(' in class, …

Software Development
Member Avatar for sknake
0
93
Member Avatar for shea279

OK so how can i have sscanf scan a string with an undetermined number of separators in it, then separate it out into separate strings inside a array of strings. So essentially, how can I modify this code to make it work? [CODE=c++] char * commands; //simple string as pointer …

Software Development c++
Member Avatar for shea279
0
2K
Member Avatar for edenn1

this is my program: there are 2 problems : 1. i am not allowed to use atoi 2. there is a compilation error this is my code : #include <stdio.h> #include <stdlib.h> typedef struct companyStatus{ double balance; FILE *invF, *errF;}companyStatus; void printWord(FILE* file); FILE* openFile(char* name); char* getNextWord(FILE *file); char …

Software Development c
Member Avatar for yellowSnow
0
154
Member Avatar for jen140

Hello all. I have some problems with compilation while working with WinApi. Here is the code: [code=c++]// include the basic windows header file #include <windows.h> #include <windowsx.h> // the WindowProc function prototype LRESULT CALLBACK WindowProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); // the entry point for any Windows program …

Software Development c c# c++ queue visual-basic visual-studio
Member Avatar for jen140
0
255
Member Avatar for kou yuuzhen

hello, i have an assignment to create and print a calendar programme the prob is, we have to add in various additional features in order to get higher marks since i'm new to C, i need help and suggestions to improve on my code also, can anyone please show me …

Software Development c
Member Avatar for yellowSnow
0
136
Member Avatar for Antun

Hi guys, I have started to learn c++ yesterday, and now i have little problem due to lack of knowledge. I developed this simple code: [CODE]#include <cstdlib> #include <iostream> #include <winbgim.h> using namespace std; int main() { int gdriver = 9, gmode = 2; initgraph(&gdriver, &gmode, ""); setbkcolor(WHITE); setcolor(BLACK); cleardevice(); …

Software Development c++
Member Avatar for JameB
0
121
Member Avatar for dchunt

Now i learnt basic windows programming long time ago and now use dev-cpp,i can run the simple Hello World program in that,but don't know how or where to implement cout and if statements type programming ? [ICODE]#include <windows.h> LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM); char szClassName[ ] = "WindowsApp"; …

Software Development c++
Member Avatar for Ancient Dragon
0
101
Member Avatar for Katvillan

I am doing a battleship game for my project. I am still trying to make a better algorithm.. This is what I have so far. Here is a code that will pick random coordinates for the computers ship, then draws the board and show where the ship is located... Assuming …

Software Development algorithm c
Member Avatar for wildgoose
0
199
Member Avatar for abu taher

I made a Data report. I write code like: select *from table1 where date1 and date2 between dtpicker1.value and dtpicker2.value but the data not show in report. but when I write like: select *from table1 where date1 and date1 between dtpicker1.value and dtpicker2.value then data show. what problem? another thing …

Software Development visual-basic
Member Avatar for dspnhn
0
98
Member Avatar for abu taher

I made a datareport. I select a date from dtpicker and the datareport show that date data. here I want the selected date (by dtpicker) will show in the report. like: 05-06-09 or from 01-06-09 to 05-06-09 any body help me please.

Software Development visual-basic
Member Avatar for dspnhn
0
84
Member Avatar for abu taher

In a data environment I write code like: select ([exam fee]*[other fee]) as total from table1 then it work, but when I write like below it not work: select sum[exam fee] as total from table1 what problem with it?

Software Development sql visual-basic
Member Avatar for dspnhn
0
114
Member Avatar for jen140

Hello all. I have a small problem. I have a crewler, that gets into one website and extract some info from it, and writes the exctracted content to file. The only prob, that in 3~4hours of work, thise script uses 1 gig of ram. [code]for(my $increment = 1; $increment <= …

Software Development perl
Member Avatar for lordspace
0
98
Member Avatar for mandofl

I'm supposed to write a program that stores data about a soccer player in a structure: Players name, players number, points scored by the player. The program should keep an array of 12 structures. Each element for a differnet player on the team. When the program runs it should ask …

Software Development c++ data-structure
Member Avatar for mandofl
0
7K
Member Avatar for recycle_carlbin

Hello everyone. Can we ask about how we could mark the attribute of the entity as PF because the only thing we knew is the PK. Thanks in advance. Your reply will be a great help to us! ^_^

Software Development java
Member Avatar for recycle_carlbin
0
122
Member Avatar for kerek2

Hi All's, I need to read value from my mdb database into currency format in textbox...can anyone guide me please.tq in advance

Software Development vb.net
Member Avatar for sknake
0
91
Member Avatar for karthik_cud

Hi, im working on my college library management system created by someone i dont know, the problem is the changes i"ve made has no effect on the output whenever i run this application, i think the person who have developed that application has locked the code and prevented it from …

Software Development vb.net
Member Avatar for sknake
0
85
Member Avatar for raseel

i have a project in numerical analysis course..to estimate thae data (xi,yi)i= for i=0,1,2,..,10 using clambed cubic spline ..where xi=i/10 and f(x)=y=(e^x) (sinx) and this can be done using c language or C++ or even any other programming language.. please help me 2 do this ..it weights 10 marks of …

Software Development c
Member Avatar for raseel
0
85
Member Avatar for Katvillan

This is my recursive code that will print numbers according to fibbonacci series.. My problem is I want the program to stack (store the numbers) numbers before the printing (in order starting with 3-21) but it should still be a recursive program. Can you help me, which part I should …

Software Development c
Member Avatar for deepugtm
0
233
Member Avatar for Pavan_

[CODE] #include<stdio.h> int main() { int a[100], i=0; while(1) { a[i++]=5; printf("%d\n",i); } return 0; } [/CODE] on gcc this code doesn't give ny error. but after printing the value of i upto 100 , it restart writing value of i from 6 onward... my question is how value of …

Software Development c
Member Avatar for Salem
0
129
Member Avatar for metalclunch

Hello, me again. Sorry for asking such a silly question, but I need the consultation of you guys, experts in my sights. :D Well, basically, I've been fiddling around a lot with C++, looking at various tutorials at the internet, making simple programs such as Calculators, password-protected stuff which spit …

Software Development c++
Member Avatar for metalclunch
0
119
Member Avatar for deep24_kamal23

I prepared one software. Now i want that nobody can install this software without a activation code. How can I generate such an activation key.

Software Development visual-basic
Member Avatar for vb5prgrmr
0
172
Member Avatar for ndoe

i use netbean 6.5 i can't hide the Jlabel,i have use .setVisibel(false) here's the problem i want to hide and show 2 or more label with 1 button,label and button in one parent (panel),for the first label is show but if i click once te button,label is hide,and twice label …

Software Development java
Member Avatar for ndoe
0
68
Member Avatar for Basicgear

Im brand spankin new to C# but did only a bit of console work with C++ in high school. I am working with the form application walk through and decided to try a few things. I want to have a check box toggle the background of the form between red …

Software Development
Member Avatar for sknake
0
92
Member Avatar for dhawan.surinder

Hi I've created a small game in java. Its woring in Appletviewer. But i want to run it on Explorer. Plz help.

Software Development java
Member Avatar for kvprajapati
0
86
Member Avatar for solano

Hi! I have som auto generated (from xsd file, xsd.exe is used) Partial classes. On of the properties is an arry, her is the code: [Code] Partial Public Class Betaleregrp4900 Private oversiktOverBetaleregrp4899Field() As OversiktOverBetaleregrp4899 Private betalingTotaldatadef21821Field As BetalingTotaldatadef21821 Private betalerAntalldatadef21822Field As BetalerAntalldatadef21822 Private gruppeidField As String Public Sub New() MyBase.New …

Software Development vb.net xml
Member Avatar for Teme64
0
145
Member Avatar for benatschool

I have a standalone version of JFrame Interface based java application developed on eclipse platform. The tool is essentially a prototype tutor to check competence in statistics and consists of to-be-worked problems on the subject. It also keeps track of the user progress through the questions and scores their performance …

Member Avatar for kvprajapati
0
150
Member Avatar for gauravmishra

i want to know how to access virtual table for a class this is my attempt to do so ........ [code] #include<iostream> using namespace std; class sample { public: virtual void fun(int q) { cout<<"fun"<<endl; } void g() { int *p=(int *)this; p=(int *)*p; p=(int *)*p; void ( sample::*pfun)(int); pfun=(void(sample::*)(int))p; …

Software Development c++
Member Avatar for kvprajapati
0
94
Member Avatar for Agent-of-Chaos

hi i am new to visual basic and i am using vb6, i have senior year project for invenotry managment system..my problem is that if one form is open then the user must not b able to peform other functions(open another form, close application etc) unless the current form is …

Software Development visual-basic
Member Avatar for Agent-of-Chaos
0
102
Member Avatar for charlweed

I have a member variable wchar_t * _message; This array is allocated in the constructor, _message = new wchar_t [messageLength]; But when I try to free the memory with delete in by destructor, it crashes with a a HEAP CORRUPTION error. This my class: [code=c++] class ExampleZero { public: ExampleZero( …

Software Development c++
Member Avatar for wildgoose
0
237
Member Avatar for aulason

hi, i would like to create components at runtime. i've added a label to the form and set its properties at design time. now i want to create 8 more copies of the label when the program starts (oc with the same properties). how can i add them and refer …

Software Development
Member Avatar for ddanbe
0
99
Member Avatar for 4101

Creating Superclass and subclass. Both class should have 4 methods and the subclass should have additional properties/fields and a constructor. The subclass should have at least one method that overrides a method in the superclass. On another file is creating a manipulator where you use the subclass and all of …

Software Development java
Member Avatar for sneaker
0
105
Member Avatar for mustafaneguib

hey all, i am now making a gpa calculator. i am using 4 classes which form into seperate linked lists. one linked list is for the custom gui, and the other linked list is for the data list. i am using custom images for this program which i import using …

Member Avatar for mustafaneguib
0
183
Member Avatar for jaaam

I am very new to c#. I would like to get into c#. Kindly give me suggestions in where to start c# with. Suggest me some books too. Is "Head First C#"book is that good for begginers Thanks, Jam [url]http://prog2impress.com/[/url]

Software Development c#
Member Avatar for k.d.m
0
167
Member Avatar for aulason

hi there, there are 9 labels on the form with the name say [B]Label1[/B], [B]Label2[/B], [B]Label3[/B], ... now i would like to set their text to "". is there anyway to use a loop and find them just by knowing their name. any help is appreciated, Sean

Software Development
Member Avatar for aulason
0
89
Member Avatar for loozax

can someone help me w/ this?! how to evaluate the EVEN or ODD..all EVEN numbers should store on arrayEven variable,while all ODD numbers store on arrayOdd variable.. [code] import java.util.Scanner; import java.util.Arrays; public class online1{ public static void main(String args[]){ int SIZE= 10; int []number = new int[SIZE]; Scanner input …

Software Development java
Member Avatar for loozax
0
239
Member Avatar for vinnijain

hi !!! I am making a window application in which I want tree view in left panel .For each child nodes click I want the corresponding form should be displayed in right panel . For each child node I have different - different functions and for each I have created …

Software Development
Member Avatar for vinnijain
0
147
Member Avatar for iamsmooth

Hey guys, I'm stuck on an assignment for school, was wondering if you could help me out. So I have a text file similar to this: [code] Joe Jim Hello Jim, Just wanted to say hello! -Jim EOF [/code] This is supposed to be like a message system. The first …

Software Development c++
Member Avatar for iamsmooth
0
97
Member Avatar for MonicaClare

i have a problem for this program . how can i use the program in the middle.. i tried to put it IN .. but many error exist.. please help me with my program .. thanks.. here's the output: Enter Name: Simplicio Enter Password: pOLOtAn 1 Capital constant letter/s 4 …

Software Development java java-swing
Member Avatar for Godstryke
0
210
Member Avatar for RobBrown

I am having a hard time writing a program to do the following: [QUOTE]Your program should create an array that contains ten (10) variables of the following type: typedef struct { char firstName[30]; char lastName[30]; char street[35]; char city[20]; char state[3]; int zip; char phone[15]; int accountId; } Customer; You …

Software Development c data-structure
Member Avatar for RobBrown
0
447
Member Avatar for ritu verma

I have webrowser in my project..Suppose i open google..I want to drag the google image,can somebody tell me how how to get the URL of the image,so dat i can download it from the net...

Software Development image vb.net
Member Avatar for sknake
0
291
Member Avatar for xfreebornx

[code=cplusplus]#include <iostream> #include <cmath> using namespace std; int main() { int a, result, factorial(a); { cout << "please enter a number "; cin >> a; cout << factorial(a); } for(a=1; a>0; a--) { factorial *=a; } return 0; }[/code]

Software Development c++
Member Avatar for mrnutty
0
115
Member Avatar for perlfan

I am reading the book "Beginning Perl" by James Lee and have been pretty happy with the content so far. That said I am stuck on chpt 7 which deals with regular expressions - I can't get the backreferences to work even when I copy the source verbatim. source: [COLOR="Green"] …

Software Development perl
Member Avatar for perlfan
0
123
Member Avatar for penguin22

i need help trying to open an .exe file then opening a file in said exe program i.e i wanna open a file in flash after opening flash. so far i can open the exe file with no problem but from there I'm stuck. this is what i have [code] …

Software Development file-system flash python
Member Avatar for sravan953
0
146
Member Avatar for Evil_genius82

Guys im stuck once again. I have a JList (unsorted) and when you press 'SORT' the list sorts. The thing is i have to use bubble sort. My jlist is set to defaultListModel. My problem is i keep getting this error: xception in thread "AWT-EventQueue-0" java.lang.ClassCastException: java.lang.String cannot be cast …

Software Development java
Member Avatar for cgeier
0
223

The End.