132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for RAIMI

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++
Member Avatar for RAIMI
0
807
Member Avatar for venomxxl

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
Member Avatar for venomxxl
0
540
Member Avatar for michael.pilapil

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
Member Avatar for debasisdas
0
1K
Member Avatar for conanzz

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
Member Avatar for mKorbel
0
299
Member Avatar for anoopvadi

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++
Member Avatar for tikoti
0
3K
Member Avatar for kalingaRHASTA
Member Avatar for Salem
0
261
Member Avatar for mohanraj.m

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
Member Avatar for WaltP
0
155
Member Avatar for L0s3r

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++
Member Avatar for arkoenig
0
92
Member Avatar for L3gacy

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++
Member Avatar for mrnutty
0
324
Member Avatar for Barnifericus

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 …

Software Development algorithm c
Member Avatar for Barnifericus
0
140
Member Avatar for rscoville

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 …

Software Development dataset vb.net
Member Avatar for rscoville
0
151
Member Avatar for bimoweemo

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 …

Software Development c c# c++ ui-ux
Member Avatar for NathanOliver
0
207
Member Avatar for rEhSi_123

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 …

Software Development dataset vb.net
Member Avatar for adam_k
0
2K
Member Avatar for nsyncpilu

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
Member Avatar for nsyncpilu
0
1K
Member Avatar for xxlt3xx

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
Member Avatar for xxlt3xx
0
172
Member Avatar for SandraM

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++
Member Avatar for SandraM
0
108
Member Avatar for bribissell

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
Member Avatar for bribissell
0
325
Member Avatar for MareoRaft

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++
Member Avatar for mrnutty
0
136
Member Avatar for stroganoff23

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
Member Avatar for IIM
0
100
Member Avatar for jsook724

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
Member Avatar for NormR1
0
307
Member Avatar for Pro2000

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
Member Avatar for Pro2000
0
308
Member Avatar for charchar88

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
Member Avatar for charchar88
0
154
Member Avatar for libathos

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
Member Avatar for libathos
0
127
Member Avatar for Makumza

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
Member Avatar for Mitja Bonca
0
103
Member Avatar for xanawa

[COLOR="Red"]The item "obj\Debug\RestaurantBookingSystem.frmSchedule.resources" was specified more than once in the "Resources" parameters. Duplicate items are not supported be the "Resources" paramerets[/COLOR] what should i do pls?

Software Development
Member Avatar for sknake
0
99
Member Avatar for vomhaus

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
Member Avatar for murali_quest
0
105
Member Avatar for ari$av3s

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
Member Avatar for arindam31
0
168
Member Avatar for k80sg

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
Member Avatar for Mitja Bonca
0
120
Member Avatar for jas2010

hi all friend I wanna Read some data from my Excel , but I can't work excel 2007, do you know what's problem.

Software Development c c# c++
Member Avatar for jas2010
0
297
Member Avatar for zachattack05

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
Member Avatar for jbrock31
0
97
Member Avatar for RAIMI

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++
Member Avatar for Narue
0
581
Member Avatar for jagadeeshkumar

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
Member Avatar for Donnovan
0
85
Member Avatar for ineedsomehelp:3

[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 …

Software Development c perl printer
Member Avatar for Arbus
0
215
Member Avatar for manjupargavi
Member Avatar for JamesCherrill
0
2K
Member Avatar for RAIMI

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++
Member Avatar for RAIMI
0
309
Member Avatar for murali_quest

Java - How to use system clipboard to copy and paste objects(JLabel or JButton) in a JFrame

Software Development gui java
Member Avatar for murali_quest
0
240
Member Avatar for mattyg1192003

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
Member Avatar for mKorbel
0
138
Member Avatar for fcaoile

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
Member Avatar for mKorbel
0
2K
Member Avatar for poo11

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
Member Avatar for stultuske
0
115
Member Avatar for salah_saleh

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++
Member Avatar for salah_saleh
0
156
Member Avatar for virusisfound

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
Member Avatar for bhagawatshinde
0
339
Member Avatar for luckyismb

How to handle "0 rows found" error while filling datatable with select query that returns 0 rows.

Software Development
Member Avatar for Mitja Bonca
0
66
Member Avatar for cool_zephyr

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
Member Avatar for cool_zephyr
0
847
Member Avatar for malchus

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 …

Software Development apple java
Member Avatar for malchus
0
235
Member Avatar for rayden150

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
Member Avatar for mike_2000_17
0
256
Member Avatar for MagnetoM

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
Member Avatar for Momerath
0
149
Member Avatar for nsyncpilu

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
Member Avatar for nsyncpilu
0
2K
Member Avatar for ionutica

[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
Member Avatar for faroukmuhammad
0
117
Member Avatar for venkatnams

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
Member Avatar for faroukmuhammad
0
4K
Member Avatar for balajiarun1992

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
Member Avatar for faroukmuhammad
0
166

The End.