132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for pcmaster

Although I am very good with html, css and a little at php,javascript and mysql, i still can't manage to get interested or start learning basic programming. To be honest, i barely know anything about c or c++ since i skipped basic programming and proceeded to learn right away php,javascript …

Software Development c html-css
Member Avatar for abhimanipal
0
210
Member Avatar for ayagi

i need to update my data using stored procedure here is my code : [CODE] Try con = getconnect() con.Open() sqlcmd = con.CreateCommand sqlcmd.CommandText = "Select * from EmployeeProfile where EmployeeID = '" & txtEmpID.Text & "'" daemployee.SelectCommand = cmdemployee1 daemployee.Fill(dsemployee, "EmployeeProfile") If dsemployee.Tables(0).Rows.Count <> 0 Then txtEmpID.Text = dsemployee.Tables(0).Rows(0).Item("EmployeeID") …

Software Development vb.net
Member Avatar for ayagi
0
316
Member Avatar for DaMoose75

I have a problem with this simple Win32 application I am trying to make. As you can tell by the title, the function CreateWindow() always returns 0, which indicates failure. Here is my code. [CODE] int MessageLoop() { MSG msg; ZeroMemory(&msg, sizeof(MSG)); while (GetMessage(&msg, 0, 0, 0)) { TranslateMessage(&msg); DispatchMessage(&msg); …

Software Development c++
Member Avatar for DaMoose75
0
3K
Member Avatar for gman1991

[CODE]// this is the grading sorting program for part one #include <stdio.h> int main(int argc, char **argv) { FILE *fp; // file pointer, points to the file char file_name[32]; // store file name int ID[50]; int grade[50]; int a,b; // index variables int student_id, grades; // opening file by asking …

Software Development c file-system ubuntu
Member Avatar for abhimanipal
0
164
Member Avatar for fpm777

[CODE]#include<iostream.h> #include<stdio.h> #include<string.h> void remplir(FILE *f) { char c; char fichier[20]; printf("entrer les nom du fichier:"); scanf("%s",fichier); f=fopen(fichier,"w"); if(f==NULL) printf("erreur"); else while((c=getchar())!='.') { //putc(c,f); fprintf(f,"%c",c); } } int comparer(FILE *f,FILE *fp) { char l1[10],l2[10]; printf("OOO"); while((!feof(f)) && (!feof(fp))) { fgets(l1,2,f); fgets(l2,2,fp); printf("OOO"); if(strcmp(l1,l2)) { printf("%s",l1); printf("%s",l2); return 0; } } …

Software Development c
Member Avatar for abhimanipal
0
114
Member Avatar for vTr

Hey there, I was wondering if anyone had the time to look over my code and give me some tips or tweaks to help me get it running. The program is all about inheritance, where i have the derived class using the base class clockType (with using strings) to add …

Software Development c c# c++ oop
Member Avatar for mrnutty
0
628
Member Avatar for epicbeast9022

Hello, I cannot read a file, config.cfg, in the current directory on MacOS X 10.6. I'm running a console app. Can anybody tell me what I'm doing wrong? (By the way the getline() function returns no string.) [CODE] #include <iostream> #include <fstream> #include <string> using namespace std; int main(int argc, …

Software Development c++ macos
Member Avatar for epicbeast9022
0
382
Member Avatar for Dante2002

I am trying to write code which will display the volume of three boxes. I have my code but am having problems getting it to compile. Any help would be greatly appreciated. Here is my code: [CODE] //Assignment Programming Using Structures and Classes // Creating and using boxes #include <iostream> …

Software Development c++
Member Avatar for Dante2002
0
227
Member Avatar for khaled_jawaher

i have created a war file and save it in tomcat/webapps folder.this war file contains the code of the server that will read xml file and return it as table in a Jframe.i coded it in java and it is a web service where i create a war file after …

Software Development client-server file-stream java java-swing
Member Avatar for khaled_jawaher
0
270
Member Avatar for jens123

Hello guys :) What a great and usefull forum m8s :) I have made a program in snake, but i have remade it, because c++ is quite new for me, but on tursday i have to do a presentation(examination) for my teacher explaining the code, i understand 80-90 % of …

Software Development c++
Member Avatar for jens123
0
231
Member Avatar for Thisisnotanid

Hi all, I was experimenting with techniques of generating random numbers and eventually decided on the following. I realize there's a big discussion in computing circles about "randomness" and as such am not trying to make any claims here. What do you think? Thoughts, comments, suggestions, discussion of underlying theories, …

Software Development python
Member Avatar for Schol-R-LEA
0
333
Member Avatar for LogicallyInsane

So after pretty much giving up on programming (I think I should say that I kinda forgot about it actually) and not checking Daniweb, I decided after a few months of doing other things I'd come back to Daniweb and start trying to program once again. After skimming through "Learn …

Software Development python
Member Avatar for LogicallyInsane
0
86
Member Avatar for Devil night

#include <iostream> using namespace std; int main() { int BSR; int HighBSR=0 , LowBSR=0 , NormalBSR=0; int patients=0,sum =0; int count=0; cin>>patients; while(patients != -1)}{{ {if ( BSR ==120 )//HighBSR+=patients; } { else if ( BSR>70 && BSR<120 )//NormalBSR+=patients; else ( BSR<=70 )//LowBSR+=patients;} ; count++; cin>>patients;}} cout<<"The Number Of All …

Software Development c++
Member Avatar for pseudorandom21
0
189
Member Avatar for b0tz

[CODE] String ip = "www.google.ro"; String pingResult = ""; String pingCmd = "ping " + ip + " -c 4"; String s; try { Process p = Runtime.getRuntime().exec(pingCmd); BufferedReader stdInput = new BufferedReader(new InputStreamReader(p.getInputStream())); BufferedReader stdError = new BufferedReader(new InputStreamReader(p.getErrorStream())); // read the output from the command System.out.println("Rezultat ping:\n"); for …

Software Development java
Member Avatar for b0tz
0
224
Member Avatar for gladtoplay5

I have just finished my tic tac toe game but wanted to make it look nicer so i added some colors at the winning scene... [CODE] cout << "congratulations player 1!" << endl; cout << "[W][I][N]" << endl; cout << "[W][I][N]" << endl; // checking if the game has been …

Software Development c c# c++
Member Avatar for iamthwee
0
208
Member Avatar for ARaza110

I am using the Comm API, i have made a small desktop app for sending sms. I cannot send sms one after the other since it gives "Port In Use Exception". I have closed the Input and output streams as well as the serial port but still it gives "Port …

Software Development api java
Member Avatar for ARaza110
0
168
Member Avatar for smandape

Hello Experts, you have been of great help to me when it comes to XSLT. Here is another problem I have while I try to extract the data from RDF/XML files. I don't know how to do that as there are terms like dcterms defined in the XML file. They …

Software Development data-structure xml
Member Avatar for smandape
0
354
Member Avatar for element432

Im trying to do a exercise in one of my books and it wants me to use a function to get the factorial of a number entered by the user. Ive tried several different ways and they either get me numbers that make no sense or say if I entered …

Software Development c++
Member Avatar for element432
0
128
Member Avatar for syeda amna

hi please help me to develop code for JTextField exception handling. i have 10 JTextFields out of which 2 are necessary to fill. if the user left them blank then error message will appear. [CODE]try{ text1=a.getText(); text2=b.getText(); while(a!= null && b!=null);} catch(Exception e){ System.out.println("Please write some text" +e.getMessage());} [/CODE] this …

Software Development java
Member Avatar for Buffalo101
0
2K
Member Avatar for autorunman22

im a newbie and im learning java just week ago. I wonder how i cant make the ball bounce in one axis only (the X axis) im not good in logic:( and i want that logic to be in one event. [code]if(x<0){ ++x;//go right }else if(x>500) {--x;//go left } [/code] …

Software Development algorithm java
Member Avatar for autorunman22
0
164
Member Avatar for AhmedGhazey

hello, i ask for help if you can : i have to write algorithm detect all cycles in undirected graph , I don't know , can any one help. Thanks .

Software Development algorithm java
Member Avatar for AhmedGhazey
0
839
Member Avatar for niranga

Hi All, Is it possible to bind an array or a Vector with a event listener? For an example if we add an element to the Vector or remove from the Vector, can I use an event listener to track the changes? Thanks a lot in advance. Cheers..!!

Software Development java
Member Avatar for niranga
0
998
Member Avatar for Kligham

Hi, I have been searching on google to find a way to get a bitmap of a hidden window. I thought I found it, but when tried it, it is only giving me a good image (not a black one), when my window is in front/active, when hidden it give …

Software Development
Member Avatar for RicardoCleves
0
4K
Member Avatar for galhajaj

Hello, i have a little dificulties in the area of object-oriented programming i guess... i am making a chess-like game i created the classes "board" and "square" (the square inherit from picturebox) now - in the constructor of the board i create 8X8 squares inside it all the program is …

Software Development
Member Avatar for galhajaj
0
217
Member Avatar for pseudorandom21

Sooo... Every DLL injection result I've read so far only uses a pre-made DLL, loads it into another process and says "darn I'm good." They do absolutely NOTHING useful and a couple of them are rip-offs of one another only using a different programming language. Google has failed me! Once …

Software Development c++
Member Avatar for pseudorandom21
0
188
Member Avatar for xsltnewbie

I have the following xml source file : [code=xml]<root> <child1></child1> <child2></child2> </root>[/code] I would like to convert it to [code=xml]<MYOWNTAG1> <CURRENTDATE>CurrentDate</CURRENTDATE> <CURRENTTIME>CurrentTime</CURRENTTIME> </MYOWNTAG1> <MYOWNTAG2> <XML> <root> <child1></child1> <child2></child2> </root> <XML> </MYOWNTAG2>[/code] Any help would is appreciated.

Software Development xml
Member Avatar for xml_looser
0
135
Member Avatar for chunalt787

I just finished with my first year of Computer Science in college and over the break I wanted to learn how to do output from a computer using a C++ program to control different I/O hardware. I was thinking I would start somewhere simple with something such as turning on …

Software Development c++
Member Avatar for Ancient Dragon
0
1K
Member Avatar for kadhaipaneer

Hi I am trying to make arrays inside a structure.. the structure looks like, [code=c++] struct mystruct{ int val; int num; string state[]; mystruct *next[]; }; [/code] The next pointer array works fine but state array gives segmentation fault. I have an array of this structure . mystruct Graph [];

Software Development c++
Member Avatar for vijayan121
0
142
Member Avatar for winecoding

I am learning Java, and found a code segment as follows. [CODE]public static void displayClusters(final Collection<Cluster> clusters) { displayClusters(clusters, Integer.MAX_VALUE); } public static void displayClusters(final Collection<Cluster> clusters, int maxNumberOfDocumentsToShow) { displayClusters(clusters, maxNumberOfDocumentsToShow, ClusterDetailsFormatter.INSTANCE); } public static void displayClusters(final Collection<Cluster> clusters, int maxNumberOfDocumentsToShow, ClusterDetailsFormatter clusterDetailsFormatter) { System.out.println("\n\nCreated " + clusters.size() + …

Software Development java
Member Avatar for JamesCherrill
0
148
Member Avatar for kadhaipaneer

I have a problem passing an array containing pointers. Here's the function.. [code=c++] void jointtree(Parent *clique[], int nodes); [/code] I am calling it the following way.. [code=c++] jointtree(clique, nodes); [/code] where clique is. [code=c++] Parent *clique[nodes]; [/code]

Software Development c++
Member Avatar for L0s3r
0
154
Member Avatar for computerbear

ARRGGG, I had a program going along swimmingly until I tried to change the name for form1 to something more meaningful. Now It is all messed up and I am getting the dreaded resx error. Is there any hope in salvaging this? Please don't tell me I have to start …

Software Development vb.net
Member Avatar for computerbear
0
104
Member Avatar for ManicCW

Code for connecting to Microsoft Access databse, opening and closing connection

Software Development microsoft-access vb.net
Member Avatar for uv4u
0
173
Member Avatar for pocohontus

hi i have application in vb 6.0 ,which i want to open in vb.net...how? i have tried *upgrade wizard of vb.net..............not working *installing vb 6.0 again...........now seems difficult althoght d .exe file of my application is running but some forms r missin help ...........

Software Development vb.net visual-basic
Member Avatar for Luc001
0
237
Member Avatar for ecinevenice

Hi! I'm writing a program about trying different images in picturebox, but the image must correspond to the text. Plus it must come from "Resources" folder of the project. this is what i want to do if the text "apple" displays to the screen then the image with a filename …

Software Development apple
Member Avatar for ddanbe
0
173
Member Avatar for Derek Elensar

This is my final project for my C++ class online. I was instructed to make a test and to pull answers from withing a .txt file and compare them to the answer that the user inputs. I'm sure there's a much easier wau of doing things than the way I'm …

Software Development c++ ios
Member Avatar for Derek Elensar
0
230
Member Avatar for kutuup

Hi all, I'm trying to build a program in visual studio 2008, when I build in debug mode, it runs just fine, but if I try to build in release mode, there are no errors but when the program runs I get this error: The program can't start because MSVCR90D.dll …

Software Development c++ visual-studio
Member Avatar for kutuup
0
497
Member Avatar for Drau

im trying to convert double to string with this code: if its a number like 3.7345 than its working - but if its 5.0 (only zeros after the point) [CODE] double number=5.0; string ToString; stringstream out; out << number; ToString = out.str(); return ToString;[/CODE] it returns - 5 and i …

Software Development c++
Member Avatar for Drau
0
154
Member Avatar for kutuup

I'm trying to read integers in a .txt file into a 2 dimensional array (map). Here is the function: [CODE] void loadmap(int mapnum) { int x; ifstream inFile; inFile.open("level1.txt"); if (!inFile) { cout << "Unable to open file"; //exit(1); // terminate with error } for(int countline = 0; countline <= …

Software Development c++ file-system
Member Avatar for kutuup
0
349
Member Avatar for axeves

Hi. Can you explain to me on how to "inherit" (if that's the right word) stuff from a header file, and on how to write one? (A header file) Like if i wrote this; [CODE] class Foo { int a = 123; } [/CODE] in a header, how would i …

Software Development c++
Member Avatar for pseudorandom21
0
128
Member Avatar for Muhammad Anas

I just found a question whose statement is as follows: [COLOR="Green"]Write a function contains(const char*, char) which returns the pointer to the first (left-most) occurrence of the 2nd parameter char in the 1st parameter cstring, or NULL if the cstring doesn't contain the char. [/COLOR] Another condition is that inside …

Software Development c++
Member Avatar for Muhammad Anas
0
266
Member Avatar for arvindikchari

Hello, I have a string taken as input from user. I just want to check if a particular character within that string, is part of Standard English character set or not. How do I code the IF condition for this purpose? Regards, Arvind.

Software Development java
Member Avatar for AhmedGhazey
0
173
Member Avatar for autorunman22

i hope you can modify my simple bouncing ball :( its flickering.... i dont know how to solve it. [CODE]import javax.swing.*; // For JPanel, etc. import java.awt.*; // For Graphics, etc. import java.awt.event.*; import java.awt.geom.*; // For Ellipse2D, etc. //import java.util.*; import java.io.*; import java.util.Random; public class aball extends JFrame …

Software Development java java-swing
Member Avatar for hfx642
0
206
Member Avatar for tultul

hello... everyone! i have included graphics over Map like a popup menu, but now i need to provide a mouse click action over the graphic. Is it possible...?? let me explain properly. i have given city details over open street maps by using graphics2D, now i need to give a …

Software Development java
Member Avatar for peter_budo
0
134
Member Avatar for leegeorg07

Hi I was wondering if there has ever been/ are plans to be a python os and if it exists where could it be found? secondly i was wondering if python could be installed on windows mobile or android?

Software Development android python
Member Avatar for SamarthWiz
0
167
Member Avatar for e-papa

HI guys, I want to create and encryption system that converts a character to encrypted data, I'm thinking about using the ord() and chr() functions in python then slice the sting into characters implement the encryption on each character and bring them back together what do you think, Is there …

Software Development encryption python
Member Avatar for vidur
0
207
Member Avatar for joao cruz

hi everybody, i'm a student and i'm sick of going around this. lol i have to make a game of tic tac toe, and i did everything, and everything is working fine exept this. this is a method to see if there is a victory in a line, it does …

Software Development java
Member Avatar for joao cruz
0
98
Member Avatar for luislupe

I have several vectors of int elements. Now I want to create a vector of vectors, but I don't want to copy the vectors to the new one. If possible, I'd like to pass them by reference. Please consider: [code=c++] #include <iostream> #include <vector> using namespace std; int main () …

Software Development c++
Member Avatar for ravenous
0
222
Member Avatar for karenjev

Good day, i'm creating a calculator in c++ using visual c++. I got error's as below [CODE]c:\program files\microsoft visual studio 9.0\vc\include\codeanalysis\sourceannotations.h(19) : error C2144: syntax error : '__w64 unsigned int' should be preceded by ';' c:\program files\microsoft visual studio 9.0\vc\include\codeanalysis\sourceannotations.h(19) : error C4430: missing type specifier - int assumed. Note: …

Software Development c++ visual-studio windows-vista
Member Avatar for fpm777
0
1K
Member Avatar for lochnessmonster

im curious as to if anyone knows the internals of how cout works? for example the step by step internals of what happens when executing the following statement in c++ cout << "hello world" << endl; -thx

Software Development c++
Member Avatar for vijayan121
0
120
Member Avatar for AnkitKumar
Member Avatar for Ezzaral
0
73

The End.