132,726 Archived Topics
Remove Filter ![]() | |
How is a string vector array declared using a Form application ? This seems to work for int in a Form Application: [Code] std::vector<int> Value(10); [/code] But if you change int to string in the same example the compiler says that 'std::vector' : class has no constructors Software Development c++ | |
This doesn't work. Please help. (line 8: invalid conversion from `const char' to `const char*' ) const char *alphabet="ABCDEFGHIJKLMNOPQRSTUVWXYZ"; int i=0; do { new_ptr = (struct node *)malloc(sizeof(struct node)); new_ptr->next = NULL; if (start == NULL) { strcpy(new_ptr->letter, alphabet[i]); start = new_ptr; current = new_ptr; } else { strcpy(new_ptr->letter, alphabet[i]); … Software Development c++ | |
I need to let the user input a line of words and make all the 4 letter words in the sentence "love".... example: cin>> I hate programming output --> I love programming does anybody know if there is any library, or string member functions would help doing this task? below … Software Development c++ | |
Hi, I would like to know whether linux installed as default in all flavors of linux (redhat,suse) or in customized linux distributions. is not so is there any other script to be supported in all linux distributions? thanks | |
is there a quicker way to fill the list with A,B,C,...,Y,Z whithout doing all this? 1. #include <stdio.h> 2. #include <stdlib.h> 3. #include <string.h> 4. #include <malloc.h> 5. 6. struct node /* Declaration of structure "node" */ 7. { 8. char letter[1]; 9. struct node *next ; 10. }; 11. … Software Development c++ | |
I'm trying to make a program that can hide a process that is running, and then restore it for you. I can successfully Hide the window using [CODE] private const int SW_HIDE = 0; private const int SW_RESTORE = 9; [DllImport("User32")] private static extern int ShowWindow(int hwnd, int nCmdShow); private … Software Development | |
I have a Petrol Pump system that runs a timer that simulates the litres that run and the display shows the images inserting into an image box. Then the Price at current is the litres * the set price per litre. Thats where the problem is because I can't get … | |
First I will show you my sql, just in case it is some obvious syntax error on my part: [code] "INSERT INTO tblResults(status, enthusiasm, communication, knowledge, interaction, organization, responsiveness, instID, comment)" & _ "VALUES(""" & status & """, """ & enthusiasmB & """, """ & communicationB & """, """ & … | |
[B]Please help me to read out each character of a particular line in a rich textbox. [/B] Eg: 6 11 345 I need to read 6 first and then 11 and then 345 etc etc.. Software Development vb.net | |
I am to open a text file, copy it, increment its ASCI characters by ten and then write it into a created text file. This is the code that I have so far.(visual c++ 6.0). The problem is that I cannot increment the characters. It gives me and overwrites my … | |
Hi all, I have a program which bulk-downloads files from a remote server. The program runs in console (I am not using SWING or AWT). I would like to show progres (e.g. progress bar) while the files are being downloaded. Can someone point me to right direction... which classes to … Software Development java java-swing | |
So so so....finally I have learnt to create a DLL in DEV C++ (Open src compiler with IDE) Now I have also created a DLL in VC++ and I am trying to call the DLL in my DEV c++ EXE project. I have correctly specified the library file (.lib) of … | |
Hello all : I 've created a simple form , when it's started a clip cursor called, but when I pressing by keyboard(Alt+Tab) for (moving between opened windows) , this clipping is canceled, Is there any idea to prevent this or stop it?? Thanks in advance..... Software Development | |
Hello everyone! I have seen some code where some variable gets inserted into string throught the % sign, like so - [CODE]("insert into songs values (%Q ,%d, %d, %Q, %Q, %Q, ... ", someInt, someChar, someChar... )[/CODE] I have tried to look it up in google but I do not … Software Development c++ | |
How to arrange the number properly? [code=C++] /*------------------- Two dimensional array -------------------*/ #include<iostream.h> #include<fstream.h> #include<iomanip.h> ifstream infile("STA83EXM.txt"); void main() { const int row = 140; const int column = 140; int matrix[row] [column]; //**************creates Matrix**************** int num; for(int i = 0; i<=row-1; i++) { for(int j = 0; j<=column-1; j++) … Software Development c++ | |
I'm sorry if it's not the right place for this question, but I really need help on this one. The problem is quite simple- I've got many text fields that user has to fill. The thing I can't figure out is how NOT to allow go to next field if … Software Development adobe java javascript | |
I'm trying to make a program that converts octal numbers to decimal numbers. I know the concept is taking the %10 of the number to get the first digit, /10 the number then take the %10 to get the second digit and multiplying by increase powers of 8, but I … Software Development c | |
i am using VB with access. i need to load the values of a particular field in a table to a listbox . i used the following coding in the Form_Load event. [COLOR="Green"]Set db = New Connection db.Open "PROVIDER=Microsoft.Jet.OLEDB.3.51;" & "data source= " & App.Path & "\test.mdb;" Set rs = … Software Development microsoft-access open-source visual-basic | |
![]() | Hi, I am using Microsoft Visual C++ 9.0 Express Edition. In File > New > Project, you can select Win32 group and then the Win32 Application. I think, when you use this in your project then the compiled program should run on Windows without .NET Framework too. How is it? … Software Development c++ |
hi there i have a text box and a command button in a C# project and i want to access the command prompt with it whenever i input like dir in the textbox and click on the command button the dir will go to the command prompt of windows command … Software Development c# | |
Hi, I am getting a syntax error : \Sainath.C(24) : error C2059: syntax error : '__stdcall' for the below code: [code=c++] int main() { COORD WINAPI GetLargestConsoleWindowSize( __in HANDLE hConsoleOutput ); printf("%d",x.WINAPI); // I know its the printf statement which is wrong as only when I wrote it I got … Software Development c++ | |
Hi, I'm new to c#.net world.... i'm currently in doing a program , that has to take the prefix of the 2 textfile (which has the system time as the prefix)., and compare the time of creation of second file with first file. example : the filename would be like... … Software Development | |
374 / 9 = 41.6 (from calculator ) if in c++, it will become 374 / 9 = 41.555 how do i make the final calculation become 41.6 ? i've tried ceil() and setprecision(1) , the answer i got quite big different compare with the answer from calculator. answer from … | |
In the following simple program, [CODE]int main() { string name; char sex; cout << "enter M or F: "; cin.get(sex); cout << "enter name: "; [B]getline(cin, name);[/B] cout << name << " is " << sex << endl; return 0; }[/CODE] after the user typed in a character "M" or … Software Development c++ | |
[COLOR="Red"][B]Circle.h[/B][/COLOR] [code=c++] #ifndef CIRCLE_H #define CIRCLE_H #include <iostream> #include <fstream> using namespace std; class Circle { friend ostream& operator <<(ostream& output, const Circle& aCircle); friend istream& operator >>(istream& input, Circle& aCircle); public: Circle(); Circle(double radius, int id); Circle(const Circle& aCircle); void SetCircleRadius(double radius) { _circleRadius = radius; } void SetCircleId(int … Software Development c++ file-system ios | |
Hello there. Is there someone kind enough to please explain to me the difference of using fork() and exec() with system() in invoking a process. I just want to know their difference according to well experienced with processes here. And what is the most efficient in invoking a process between … Software Development c++ | |
Got most of this done. I just can't see why my advance_date() method is only partially working...I think it's something with all my bools....but I don't know how else to get this condition met. Project is to Design, implement, and test an ADT that represents a calendar date..Integers are fine...include … Software Development c++ | |
Good afternoon all, I'm pretty new to VB.Net. Trying to get my head round using stored procedures to manipulate data in a database at the moment. I have managed to use a stored procedure (via my windows form) to insert data into a database but I am struggling to retreive … Software Development vb.net | |
i am trying out merge sort. i have made two functions sort and merge; i am calling merge recursively. i think my sort function is working fine. the problem lies with merge function. in merge function i am dividing the array using recursive calls. it ends when lb = = … Software Development c++ | |
Scenario: I hav set a timer using SetTimer(),after timeout my application gets a WM_TIMER and it exits. I Want: to pause this timer before a particular process and again restart it when the process gets over,so tht there is no timeout during this process and my application doesnt exit during … Software Development c++ | |
Guys I am completely lost....what I want to do is make a loop to where the code im about to show. The issue is I need when I type a negative number in hotdogs, tacos, etc to make me type an error message and stop the code...here is my code … | |
I am writing a little program to create an array and then to sum the integers in the array. I am also suffering a stomach flu, and I don't have the brainpower to figure out how to call the two methods I wrote to create the array and then sum … Software Development java | |
can sumbody help in solving the problem below: Write a Java application (call your class IntegerPairSearch) to do the following. ● It should get a file name and a positive integer N from the command line. ● It should then determine all pairs of positive integers, (a, b), such that … Software Development java | |
How to create and load shared libraries in fedora 7 for Java as frontend and C as backend We are doing project for which we want Java as frontend and backend is C. We are using JNI to link Java and C but we are not getting which commands are … Software Development java | |
Hey everybody, My current Networking teacher gave us sample code to show us how socket programming works. Problem is, I haven't had to use JAVA in so forever, let alone ECLIPSE (although I hear it's pretty nice). So, I was wondering how to get the program to work. I have … Software Development client-server java socket-programming | |
hi everyone I am writing a program using C++. The program converts a text file into a xml file. it reads in one input file and outputs it to another file. The thing is I have 10 folder and each of these 10 folders consists of 58 text files, I … | |
as a beginner i try my hand to write different small codes to console application . but am having a prolbem here due to the fact that am not so aspect as yet. can some one help me write it well. i want my code to output the name of … Software Development | |
I was creating a hangman game for my intermidate programming class when i was combining all my classes together within my program and zipped it up to submit to my teacher she said that my .cpp and .h files where not in the program can anyone tell me what might … Software Development c++ | |
hi, i have a project here that can insert the picture in the database by binary. but the problem is to search it using the "find" this is the codes that i upload in the net... Dim sourceFile As Integer sourceFile = FreeFile Open fileName For Binary Access Read As … Software Development display visual-basic | |
i need a sample program for handling text files using c language.. i don't know the syntaxes.. please help me and provide some comments on the source code so that i'll be on track.. Things that i need: 1) How to locate the text file 2) How to input values … Software Development c | |
Please help this loop won't step out. It keeps asking for input 3 times even when the inputs are correct. [code] //login with loop #include <iostream.h> #include <stdlib.h> #include <stdio.h> // for gets int main() { char charname[15],charpassword[15],chartryname[10],chartrypassword[15]; int inttrys; cout<<"Please enter a user name to setup "; gets(charname); cout<<"Please … Software Development c++ | |
Okay, so i need to enter a random number that is in centimeters, this will then be converted into Yards, Feet, and inches... all of these must be integers in the output and should look something along the lines of this. Example Output: 3 Yard(s) 20 Feet 6 Inches The … Software Development c++ | |
my program stops right before the while loop [CODE] #include <stdio.h> int main() { int pay_type_1; int overtime; int num; float commissionsale; float payperitem; float salary; float hourrate; const float commissionrate=0.057; const float commissionpay=250; const float overtimerate=1.5; printf("paytype1=Managers salary\n"); printf("paytype2=hourly worker\n"); printf("paytype3=commision worker\n"); printf("paytype4=piece worker\n"); while (pay_type_1 > 0) { … Software Development c | |
How can we execute shell scripts in java program? Can we redirect the output of a shell script in a stream/buffer object? If any1 knows then please reply... Thanx... Software Development java | |
I am writing this program which I create from the console screen. I want to change it so that I can read any file from the folder. For example: in this program, I am prompting the console for the two files and comparing them. Instead, I want to compare files … | |
I'm better at C++ than C right now and I forgot how to use arrays in functions from main. I want to do something like [quote]void fileReader(infile[] ); [/quote]. Is infile supposed to be a pointer and if so how is it written? | |
I am fairly new to C++, as I began learning it two days ago, with some very basic background in java and python. I was trying to write a code that could simply store, recall, and delete entries in a class I named address_book. I did it first without using … | |
I am cretaing Timer at runtime in Gloabl.asax file,I add event handler for Timer Tick Event,But it never calls to handled function. if any body know how to use timer in global.asax file in asp.net with c#.net ,which uns after every one mintue ,then please help me. its very urgent. | |
Ok, no matter what compiler i use, i can never find a compiler that will build/compile/run a single file like the one I have used in my school. i got Code::Blocks to compile my test file the code is short: // Test file [code=c++] include <iostream> int main() { cout … Software Development c++ |
The End.