64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for guy40az

I am a new to linux and the gcc system I was just wondering if someone could answer a couple of questions about the including hearder files like the math.h file. I was making a simple program and using some math trig functions. I keep getting the error cosf undefined …

Member Avatar for Salem
0
176
Member Avatar for Karkaroff

Please help me in self documenting the program below. All you have to do is, take a quick glance at the following code to see if you can understand what each part is doing. If you have any difficulty in understanding(at a quick glance that is!), please tell me, so …

Member Avatar for Karkaroff
0
251
Member Avatar for kv79

HI, can anyone write me some about decompile for C/C++.Is it possible to decompile ( .exe).

Member Avatar for Jishnu
0
81
Member Avatar for atrusmre

How would I replace the text in a file with c#. I can write to the file, but if I write to the file a second time it appends the new data to the old rather than replace it. Here is a copy of what I'm using [code] fsFile = …

Member Avatar for DenisOxon
0
156
Member Avatar for sivaslieko++

I am writing a Queue class implementation, and my Queue holds a object called Flight. I tried to create this object by struct. Some part of my code is here: [code=c] #include <stdio.h> #include <stdlib.h> typedef struct { int C_TIME; int D_TIME; char FL_NUM; char D_CITY; }Flight; #define MAXSIZE 5 …

Member Avatar for Duoas
0
190
Member Avatar for Byron P

I posted a question last week: "Detect Data change in datagrid". I may be so green at VB.net that I may not have even asked my question correctly and plain enough that someone could propose a solution, so here goes again: I am creating a Windows Form and I need …

Member Avatar for Byron P
0
110
Member Avatar for bobei89

Please help me... after the execution of the program. It write the new information to it. However, the .txt file do not display the new information properly. (The index number stick with the name...). It is a half work program. Please help me solve this problem or else i cannot …

Member Avatar for bobei89
0
680
Member Avatar for bis student

hello ,Im a new member and Im not very good in english , so please excuse me , I have question : write a C++ program that declares an array alpha of 50 component of type double . Initialize the array so that the first 25 components are equal to …

Member Avatar for invisal
0
4K
Member Avatar for silent_letter

I am a new learner of C and I tried to write a program about searching a keywrod from a .txt file and counting the number of time that the keyword repeats My program is below...it can't work...and I can't understand why.... can someone please help me...T_T Thank you [CODE]#include<stdio.h> …

Member Avatar for silent_letter
0
164
Member Avatar for nljavaingineur

Hi everyone, Found a code listing from [url]www.yamaza.com/java/Calc.java[/url] that helps me understand a better way of programming a calculator. Trying to understand this code. Can anyone tell me what does the boolean isFixReg() below mean? Thanks in advance. [code=java] //******************************* // Java script of Calculator // << Calc.java >> //=============================== …

Member Avatar for Jishnu
0
262
Member Avatar for sneekula

I want to make a small Molecular Weight calculator. If the user for instance enters the molecular formula for dichloro-benzoic acid as "C6H3Cl2COOH", I would like to split it into a list like ['C6', 'H3', 'Cl2', 'C', 'O', 'O', 'H'] so I can then combine all the carbons, chlorines, oxygens …

Member Avatar for sneekula
0
118
Member Avatar for assgar

Hi I need help. I know what I want to accomplish, but I do not know how to do it. The events are recurring every month, but not recurring at the same time or on the same day of the week. WHAT I NEED HELP ACCOMPLISHING: How to do I …

0
81
Member Avatar for ceyesuma

Is the a prescribed architecture for making individual components and then putting them together to make a complex component containing its individual components?

Member Avatar for Great_qiang
0
134
Member Avatar for assgar

Hi I need help. I know what I want to accomplish, but I do not know how to do it. WHAT I NEED HELP ACCOMPLISHING: How to do I insert data into a table for a date range of two or more months, where every second or third week should …

0
68
Member Avatar for hawisme000

ummm, i got a for that is connected to a database, and have an add, edit, delete cmd buttons. if example i have "MyName" already on a certain field of a table on a database, then on my form i wanna add "MyName" also, what i want is there will …

Member Avatar for hawisme000
0
134
Member Avatar for kartik07

I have been asked to buid a VB code which is flexible.Wen i take project from one place to another,i need not change path in all forms.If i change in one place,then it gets reflected in all other forms. ex:In com1,I hav path=e:\proj\a1.MDB which I use in al the forms; …

Member Avatar for kartik07
0
149
Member Avatar for tgifgemini

[B][/B] [B]Ladies and gentlemen, first I want to wish each and every one of you a wonderful and prosperous new year.[/B] This is not really a problem. I am looking for an efficient and quick way to copy table content from one database to identical tables in another identical database. …

Member Avatar for hkdani
0
1K
Member Avatar for zoner7

[CODE=C++] #include <iostream.h> int main() { enum Days { Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Â_Saturday }; Days DayOff; int x; cout << "What day would you like off (0-6)? "; cin >> x; DayOff = Days(x); if (DayOff == Sunday || DayOff == Saturday) cout << "\nYou're already off …

Member Avatar for Lerner
0
89
Member Avatar for maslak
Member Avatar for sneekula
0
136
Member Avatar for laspal

Hi I am new to python. So i am having problem while coding. Here the code import sys class Person: def __init__(self): self.list = [] def AddContact(self): fname = raw_input("First Name:> ") lname = raw_input("Last Name:> ") street = raw_input("Street:> ") self.list = [ fname, lname, street] def ListAll(self): print …

Member Avatar for sneekula
0
102
Member Avatar for HB25

Hi I am working on a payroll program which have 3 forms. First form has three text box (First name, Surname, Total Hour) and one command button Calculate. After the user put the info he/she will click calculate button and this will show the second form which display the (firstname, …

Member Avatar for hkdani
0
646
Member Avatar for drkprgrmer

i have this small program that im using to test some things. i have a visual c++ at school but its like 5 years old or whatever and i got visuall c++ 2008 expess at home and i need to know how to get this program to get the vector …

Member Avatar for drkprgrmer
0
102
Member Avatar for TheBeast32

Hi again, i'm making a macro building pogram. I have got mouse movement down, but now i have no idea how to do mouse clicks or keyboard input. Please help! I'm also using dev-c++ 4.9.9.2. Here's my complete code for the program. [code=c++] POINT MousePoint; int X = 0; int …

Member Avatar for iamthwee
0
190
Member Avatar for Quakes

Hello there, I'm very new to C++ and I'm mainly using it for graphics using the opengl libraries. Anyway, I'm having trouble with some initialisation. I am writing a file reader class that will read a file containing vertex and face data for a series of polygons. Data.h [CODE]#ifndef _DATA_H_ …

Member Avatar for Quakes
0
131
Member Avatar for corneliu9d

Hello! I'm newly registered, but I have taken a look here before. More precisely, [URL="http://www.daniweb.com/forums/thread73544.html"]here[/URL], a thread which helped me a lot, as I were a total beginner in working with MIDI. My problem is that, though I don't get any errors, I don't hear any sound. The funny thing …

Member Avatar for corneliu9d
0
173
Member Avatar for mildewyautumn

Hi.....need hel from u guys...would like to ask on the error with the coding below...the total dura_hour did not shown in the textbox...can anyone point out the mistake or the missing coding? Me.OracleSelectCommand2.CommandText = "SELECT sum(DURA_HOUR) FROM DOWNTIME" Me.OracleSelectCommand2.Connection = Me.OracleConnection2 OracleConnection2.Open() OracleSelectCommand2.ExecuteNonQuery() OracleDataAdapter2.Fill(DataSet141) txtRelia.DataBind() OracleConnection2.Close() thx in advance

Member Avatar for mildewyautumn
0
118
Member Avatar for kv79

Hi, I never enter a PHP or html or any other language for web design . I want to use C/C++ with web designs or what ever,so what i need to download for making a webs.? I want that software be free if it possible.

Member Avatar for kv79
0
102
Member Avatar for Jade_me

hi again, i have project which i set form border style to none, but i can't to dragging form anymore. please help me how to do this with code sample cause i don't have any idea... ok. help me all... best regards from u..

Member Avatar for Mbt925
1
152
Member Avatar for AbberLine

For this question I would like to reffer to my previous thread: about my game project for school: [URL="http://www.daniweb.com/forums/thread102003.html"]http://www.daniweb.com/forums/thread102003.html[/URL]. I would like to execute a function every few miliseconds. Say every 5 miliseconds. [QUOTE=invisal;495957] This part should call every 5 miliseconds. [code=cplusplus] bool Render() { // Render all the 20 …

Member Avatar for AbberLine
0
1K
Member Avatar for AbberLine

Hi This question gives me a weird feeling, actually I'm not really sure if this is relevant. Anyway, here we go: I'm (still) busy coding my first game in C. The goal is simple: the player is a fisherman and needs to catch all the fish in the water. If …

Member Avatar for AbberLine
0
387
Member Avatar for ceyesuma

I have a desktop aplication with internalframes (inner classes) in a class KeyBrowser.java(the desktopPane). I built a form FourComponentJPanel.form(java)?? the keyBrowser.java allows me to click a JMenuItem to create createDataBaseWindow(). I wanted to have the liberty to have another class that hold the JPanel FourComponentJPanel.java(templet if you will) In the …

0
66
Member Avatar for dheeraj5689

Hi Everyone, I just want to know that can I implement a Facebook api on my server? It means all the facebook feature should be display in my server. Please anyone have any knowledge about this featured had provided by facebook then please guide me. Thanks Dheeraj

Member Avatar for dheeraj5689
0
187
Member Avatar for Wiizl

OK, one last thing. Now I have 3 textboxes and here's what I wrote: [CODE] SqlConnection conn = new SqlConnection(); conn.ConnectionString = "data source=.;initial catalog=ForumDataBase;integrated security=true;"; SqlCommand cmd = new SqlCommand(); cmd.CommandText = "INSERT INTO PostTable(ThreadTitle,PostMessage,UserName) values('"+ThreadTextBox.Value+"','"+PostTextBox.Value+"','"+NameTextBox.Value+"')"; cmd.Connection = conn; conn.Open(); cmd.ExecuteNonQuery(); conn.Close(); [/CODE] Can you please tell me what's …

Member Avatar for Wiizl
0
118
Member Avatar for ecostas

Hi. I'm starting to use clientdatasets after years with Zeos DBO and I'm facing some difficulties. I created a TSQLConnection, a TSqlDataset as a ctTable, a TDatasetProvider and a TClientdataset. I populated the clientdataset and tried an ApplyUpdates(0) to insert the records. But I'm getting a "cannot modify a read-only …

Member Avatar for ecostas
0
182
Member Avatar for TheBeast32

I have been making a prime number generator. It works, but it's considerably slow if a user enters a high number. If anyone has any suggestions on how to make it faster, please post it. Here's the genrator code: [code] unsigned long int theNumber; unsigned long int Factor1 = 1, …

Member Avatar for TheBeast32
0
108
Member Avatar for verbob

Below if part of my login script. I am trying to get it to redirect if the users account status is 'not verified' or 'suspended' (not verified is the field 'verified' = 0 and suspended is 'verified' = 2) I'm sure it could be coded a little more eloquently, but …

Member Avatar for verbob
0
186
Member Avatar for mccarthp

Hello, I am very new to Python and have, what I think, is a rather simple question. First, I am running Python 2.1 on Win XP. What I want to do is open a CF page after my process has run and pass the processID, that I will set, and …

Member Avatar for jrcagle
0
519
Member Avatar for n.aggel

hi guys, i have the following code: main.c [CODE=c] #include <unistd.h> #include <stdio.h> #include <errno.h> #include <limits.h> //defines PATH_MAX #define _GNU_SOURCE #ifndef PATH_MAX #define PATH_MAX 255 #endif int main(void) { char mycwd[PATH_MAX]; fprintf(stderr, "\nThe PATH_MAX is %d\n", PATH_MAX); if (getcwd(mycwd, PATH_MAX) == NULL) { perror("Failed to get current working directory"); …

Member Avatar for ssharish2005
0
651
Member Avatar for lifeworks

Hi Im new to this so bear with me... If I have a backend, that allows people to add content to their site, is there a way to allow them to 'paragraph' their text, put in line breaks etc without knowing HTML code? They would be using a form which …

Member Avatar for nav33n
0
127
Member Avatar for n.aggel

hi, i am reading the book "Operating Systems Design and Implementation 3rd edition" which analyzes the minix source code... in the part of filesystems we see this code [CODE=c]PUBLIC _PROTOTYPE (int (*call_vec[]), (void) ) = { no_sys, /* 0 = unused */ do_exit, /* 1 = exit */ do_fork, /* …

Member Avatar for n.aggel
0
104
Member Avatar for phalaris_trip

I'm trying to make the second parameter a default parameter that is the same as the first, or different if I want it to be different.. Why doesn't this work? And is there a way around it, other than by iterative overloads? void LoadFile (std::string filename, std::string key=filename) { //blah …

Member Avatar for phalaris_trip
0
117
Member Avatar for Queatrix

I have been a C/C++ programmer for 4 years now, and now that I'm actually reading a tut on it, I have to say, I am impressed! The whole concept of the DS really is cool; and it's flexability is the best I have seen. While I was reading one …

Member Avatar for Duoas
0
86
Member Avatar for toko

I have been reading "Sams Teach Yourself C++ in 24 Hours". This is the code that has confused me: [CODE=c++] #include <iostream> class Cat { public: int GetAge(); void SetAge (int age); void Meow(); private: int itsAge; }; int Cat::GetAge() { return itsAge; } void Cat::SetAge(int age) { itsAge = …

Member Avatar for Max_Payne
0
105
Member Avatar for Karkaroff

Please help me in self documenting the program below. All u have to do is, take a quick glance at the following code to see if u can understand wat each part is doing. If u have any difficulty in understanding(at a quick glance that is!), pls tell me so …

Member Avatar for n.aggel
0
302
Member Avatar for kv79

How to make win32 app with login? Is there some command or i need to make my function by myself?

Member Avatar for dubeyprateek
0
91
Member Avatar for Karkaroff

i made a program to evaluate an expression, "expeval.cpp" [find attached]. i then tried to go further..... i made the program to read characters from the keyboard and write it into a file["file.cpp",find attached]. if an expression is encountered, it is evaluated and the result is displayed after the line …

Member Avatar for Karkaroff
0
115
Member Avatar for kaushik259106

Is there a way to check Iframe is supported by a browser or not in the JSP using some script. Please let me know! Its urgent

Member Avatar for kaushik259106
0
444
Member Avatar for naveed.pasha

Hi all! I've started a little late doing my final year university project, but I know what I want to do so it's probably better than a few of the other students out there! I do enjoy reading and studying about the wide variety of topics that are encompassed by …

Member Avatar for Salem
0
586
Member Avatar for jobs

int file file = open("./some.txt", O_RDONLY); Above line file=open giving me compile error: 'O_RDONLY' undeclared (first use in this function) What is the problem here? I am running linux and gcc 4.1.

Member Avatar for jobs
0
3K
Member Avatar for mr.cool

i have a question, why can't i do this, there are three errors and i don't know what they mean [code] #include<iostream.h> float celsius_to_fahrenheit(float); int main() { float fahrenheit; float celsius=22.5; fahrenheit=celsius_to_fahrenheit(celsius); cout<<celsius<<"C="<<fahrenheit<<"F\n"; return 0; } celsius_to_fahrenheit(float celsius) { return(celsius*(9.0/5.0)+32.0); } [/code]

Member Avatar for Narue
0
97

The End.