132,726 Archived Topics
Remove Filter ![]() | |
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++ | |
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++ | |
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 … | |
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++ | |
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 | |
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++ | |
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++ | |
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 | |
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 | |
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 | |
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++ | |
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++ | |
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 … | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
[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 | |
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++ | |
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 | |
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 | |
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 … | |
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 … Software Development client-server java user-interface web-browser web-server | |
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++ | |
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 | |
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++ | |
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 | |
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 | |
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 … Software Development developer-tools gui java java-swing linked-list open-source | |
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# | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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... | |
[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++ | |
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 | |
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 ![]() | |
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 |
The End.