132,726 Archived Topics
Remove Filter ![]() | |
Hi! I try to compile this code [CODE] while( file >> word) { word.size(); T[i]= new string[word.size()]; *(T[i])= word; i=i+1; } for (j=0;j<i;j++) { Bt[j] = new float [100]; *Bt[j] = *atof(*(T[j]).c_str()); } [/CODE] but i have this problem [CODE] error C2228: left of '.c_str' must have class/struct/union [/CODE] where … Software Development c++ | |
Ok, first of all, I'm not sure if this belongs to C section. Since WinAPI is written in C, I'll post here. I'm using OpenGL with Win32 windows (not sure how to call that). I can't switch to fullscreen mode after creating the window. I'm using Windows 7 (64-bits) and … Software Development c opengl windows-api | |
Greetings! Hi guys, Im mike, i am new in using Sybase central using sql anywhere 9, i've got a big problem, on how am i to connect my Sybase database to Visual Basic 6.0. Guys.. i badly want to know this, because i am new to my work. I hope … Software Development visual-basic | |
I want to update 0X0 when I press of the "AC Milan" to be "1X0" and the last scorer also to be updated with the winner; Also, how to fix the alligenment to the center >>! [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; public class TestSwingListeners1 { public static void main(String[] … Software Development java java-swing | |
hi, am a novice in programming. i am facing some difficulty in C++ programming, actually i want to read a column of numbers from a text file or an excel sheet and store that in an array so that i can use it for further processing.Plz help me to solve … Software Development c++ | |
pls give me a hint or any idea on how i can solve my problem..tnx.. Software Development c++ | |
char=l; string='hello'; This is my input,The particular character present in the string to change lower letter to upper letter. Output: heLLo Please anybody help me; Software Development c | |
Code 1: [code]#include<iostream> using namespace std; int& func() { int a=6; return a; } int main(void) { int a = func(); cout<<a; cin.get(); return 0; } [/code] According to my thought , first of all func() will create a temporary reference to a (as it is returning by reference) , … Software Development c++ | |
Hello everyone, I have a small question about the code below, I understand just about every part of it. Except for this small snippet, could someone explain how the loop works? [CODE] while(begin != end ) //<-- I believe the stream iterator is getting input here words[*begin++]++; // <-- I … Software Development c++ | |
Whenever I try to compile my code for this function my compiler keeps throwing projectB.c:31:15: error: conflicting types for ‘returnDegree’ projectB.c:19:17: note: previous implicit declaration of ‘returnDegree’ was here [CODE] #include <stdio.h> #include<math.h> int main(){ double sanantonioLat; sanantonioLat = returnDegree(29.0,25.0,51.0); printf("blah %f\n" , sanantonioLat); return 0; } static double returnDegree(double … | |
I am trying to read through a table and for each row execute a few lines of code. (The lines of code are taking an data type integer column which contains a time HHMM and a data type datetime column which contains a date. The code combines the time into … | |
I keep getting errors and i dont know what im doing wrong.I've included just pieces of these three files. The compiler is giving me errors and i dont know what's wrong. this is my header file List.h not all but some of it. [CODE]#include <iostream> using namespace std; #ifndef INTEGERLIST_H … | |
Hi Guys need a bit of help! Basically I have a parent table called users which stores all the user info with a prime key field called ID. Now in the child table which has a seperate foreign key associated with the ID field in the parent table. What I … | |
Hy again , I have another problem now , I have an application with a jTabel , you can double click a cell and you can change the value that is inside it , after you changed the value inside the cell and hit enter the value i enterd remains … Software Development java | |
Hi, I'm stuck... I'm writing a program that creates a data file then populates the file with 500 random integers both positive and negative. The problem I'm having is reading the integers from the file and storing them into three arrays for processing neg[],posEven[],and posOdd[]. I really just need a … Software Development c++ file-system | |
Hi! I´m newbie in C++ Code and JNI, so i have a big problem and i can´t found a solution. My question is: Is possible to call a Jni method in a normal ,method, so: I have in my c++ class, two method: void CVentanasDlg::OnButtonStart(){ printf("OnButtonStart"); } JNIEXPORT void JNICALL … Software Development c++ | |
I am making a page which pulls from the user's browser their preferred language, via the Request.UserLanguages....which returns a two letter code (ex. "en") or detailed code (ex. "en-GB"). I basically get the string of user languages (they are in order of preference) and store them in a string array. … Software Development programming-construct web-browser | |
What happens when you set an int or double value to less than the minimum? I need my program to recognize when a number is smaller then the minimum, and then set the value to equal the minimum instead. This behavior is not the default... [CODE]#include <iostream> using namespace std; … Software Development c++ | |
Hi , how can I use the at command to find me in a specific point of time upon logging in? which it will display on screen a txt file at the same time. Thanks in advance Software Development shell-scripting | |
Hi everyone. I am trying to make a batting average calculator, but i am pretty new to java. I want to make it look like this: [url]http://www.kll.org/batting-average.htm[/url] All i have right now is JOptionPanes, and it works, but it doesnt look very nice. So i know i need to put … Software Development java java-swing | |
Hello everybody.. I've been thinking what the best programming language to be used with the internet is.. In addition I want not to use ASP 'cause my web server works on Linux. Is C# better than ASP.net to download files automatically from the internet, update and retrieve information from databases … Software Development c# web-server | |
I believe this is similar to the dining philosophers problem but a little different and somewhat easier. [url]http://en.wikipedia.org/wiki/Dining_philosophers_problem[/url] Basically I have a barrier class and a waitingThread class. I need to create 4 threads. Each thread is meeting at a place to "eat". But none can begin "eating" until the … Software Development java | |
hi, i want to compile a file through the makefile command.Once i type make example it says that it is up to date but when i try to run it (correct me if I'm wrong ./example) it says that permission was denied..does anybody have any clue about that? Software Development c | |
Hi, I am doing a project and I would like to know how to store usernames and passwords in an Access database, I have no clue but I know that my table must have fields for a userID,UserName and Password Please help! Software Development | |
I developed a method to query a database and return the specific values that I'm looking for except that the value being returned is the last value. In my while loop I can do a system.out.println(answers)and I can see all of the values, my return answers only returns the last … Software Development java | |
If I have the following code [CODE]#include <stdio.h> #include <ctype.h> #include <string.h> int main(void) { char prose[] = "to be or not to be that is the question"; int i, len; len = strlen(prose); puts (prose); return 0; }[/CODE] where would I insert the function Cap to capitalize the first … Software Development c | |
I am trying to remove items that are created more then 1 day old, but when I click delete to execute Button3_Click event, only 1 item is delete hence I have to click the button multiple times if I want to delete all items that are 1 day old. Please … Software Development asp.net | |
hi all friend I wanna Read some data from my Excel , but I can't work excel 2007, do you know what's problem. | |
I know this makes no sense at all, but hear me out and maybe someone can supply me with some info on how this can be accomplished correctly. Using an invoicing type example. You have a table of clients who can receive invoices, a table of invoices with invoice numbers … Software Development sql | |
hi i want to change the static table to a dynamic table using pointer what should i change in this case ? [CODE] #include <iostream> #include <fstream> #include <string> #include <math.h> using namespace std; int i ,j , l , k ,x ; float b; const int maxElements = 10000; … Software Development c++ | |
i am new to java i hava saw error that illegal start of error in this program [CODE]public class double { public static void main(String[] args ) { double d=1232.44; System.out.println("the double value is :"+d); }}[/CODE] please help me Software Development java | |
[CODE]void printer(char x) { int d, b, z; for(z=x; z>=1; z--) { for(b=z; b<=x-1; b++) printf(" "); for(d=z; d>=1; d--) printf("%d ", d); printf("\n"); } }[/CODE] that's my code which is supposed to print 4 3 2 1 4 3 2 4 3 4 when input is 4. however, it … | |
how to set the selected item in combo box as displayed in java. please help me Software Development java | |
I was trying to write a program . But when i run it i have this error message this application has requested the runtime to terminate it in an unusual way Software Development c++ | |
Java - How to use system clipboard to copy and paste objects(JLabel or JButton) in a JFrame | |
Hello everyone, I have a question regarding a Japplet that I am creating for a theatre. The program is supposed to take a yes or no response from the user, take which section the user will be sitting in, ask how many tickets they would like to purchase, and then … Software Development java java-swing | |
I have a loop which shows an input dialog, process it and shows the name and picture of the student using setText and setIcon. After, I want to have at least 1-2secs of delay/pause so the user can have a look on it [B]before it loops back[/B] to show the … Software Development java | |
Write a java program to read a number up to 15 digits long or a date (dd/mm/yyyy). The program should distinguish numbers from input date, and prints them in alphabetic spelling form. Example: for input 234334564456455 the output should be : 234,334,564,456,455 is two hundred thirty four trillions and three … Software Development java | |
I was reading a book and i faced an issue here [CODE]39 template< typename NODETYPE > 40 void Tree< NODETYPE >::insertNode( const NODETYPE &value ) 41 { 42 insertNodeHelper( &rootPtr, value ); 43 } // end function insertNode 44 45 // utility function called by insertNode; receives a pointer 46 … Software Development c++ | |
Hi, I am working in C# windows application & I have one [B]combo box[/B] which have the list of items. and one [B]datagridview[/B]. now I want to [B]add new rows[/B] as i [B]select the combo box items[/B]. The number of row add in datagridview till i select the items from … Software Development | |
How to handle "0 rows found" error while filling datatable with select query that returns 0 rows. Software Development | |
hello I'm writing a program using winsock..whenever i try to send some data from the client i get the following error "Run-time error '40006' Wrong protocol or connection state for the requesting transaction or request" please help me in finding what's going wrong...my client code is given below [CODE]Private Sub … Software Development visual-basic | |
I'm having problems with my code regarding the value of the string I get with the JTextfield.getText() method my code goes this way: [CODE](keypressedevent evt){ int id=evt.getId(); char c = evt.getKeyChar; String s = JTextField.getText()+c; System.out.print(s); } [/CODE] if the textfield contains for example: apple and you type s, it … | |
I tried to store several data an cant achieve it: [CODE] #include <iostream> #include <string.h> #include <stdlib.h.> #include <stdio.h> #include "estructura.h" void guardar_cliente(cliente x) { FILE*f; f= fopen("data.txt", "w"); fwrite(&x, sizeof(x), 1, f); fclose(f); } [/CODE] I dont know whats wrong im using another cpp file and a header file … Software Development c++ file-system | |
How do you participate in open source projects? I have went to a few sites that have open source projects but don't know how to participate in them. Software Development open-source | |
Hy , i read all the other posts about this error but didn`t helped me , tried google but notheing. I have the following method : [CODE] private void jButton1MouseClicked(java.awt.event.MouseEvent evt) { // TODO add your handling code here: DefaultTableModel model = (DefaultTableModel)jTable2.getModel(); int nrrows = jTable2.getSelectedRowCount(); int[] rows = … Software Development java java-swing | |
[CODE]org 100h mov ah, 09h mov dx, entername mov cx, 16 int 21h getname: mov ah, 00h ; keyboard input subprogram int 16h ; character input mov [si], al inc si jmp getname printstrg: mov ah, 09h mov dx, nameis int 21h mov ah, 09h mov dx, si int 21h … Software Development assembly | |
hello out there,,i'm using vb6 and need to use calendar control. I managed to import the calendar using projects-->ms calendar and i've placed it on my form. Now i need to add the dates slected onto my MS-Access Database. How do i do that?? the summary::: i need guidelines,codes,functions that … Software Development visual-basic | |
how to display the reverse timer like in the quiuz program the clocks are role in 50,49,48....1. (time up) i need the program for questienare with timer any one help me. Software Development visual-basic |
The End.