132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for abousetta

how to implement a recursive function that solves the Fibonacci theory, and the program should ask the user to enter a number then the output will show him the Fibonacci of the entered number.

Software Development c c# c++
Member Avatar for rubberman
0
149
Member Avatar for sassy_94

while(1){ new=accept(socket, (struct sockaddr*)&peer_addr,&peer_addrlen); if (new<0){ break; } else{ recv(new,mesg,sizeof(mesg),0); if (strstr(mesg, "GET") != NULL){ printf("\n%s",mesg); FILE *write = fdopen(new, "w"); fprintf(write, "HTTP/1.1 200 OK\nContent-length: 47\nContent-Type: text/html\n\n<html><body>< H1>HTTP/1.1 200 OK</H1></body></html>"); fflush(write); } else if (strstr(mesg, "POST") != NULL){ strcpy(resp,"POST\nContent-length: 47\nContent-Type: text/html\n\n<html><body><H1>POST</H1></body></html>"); c=send(new,&resp,sizeof(resp),0); printf("%c",c); } else{ strcpy(resp,"HTTP/1.1 500 Server Interval Error\nContent-length: …

Software Development c client-server html-css http-protocol
Member Avatar for rubberman
0
276
Member Avatar for moudy.mak

I have used sdl_ttf in opengl . but i have this error : error LNK1104: cannot open file 'SDL_ttf.lib' i already have tried to remove the "SDL_ttf.lib" , but it didn't useful. i have trid used : lazyfoo.net for setting up the opengl with sdl pls tell me what must …

Software Development c++ opengl
Member Avatar for passion88
0
328
Member Avatar for astrojunk

Hi. Please help... I'm trying to display * ** *** **** ***** but it doesn't work.. What could be wrong? Here's my code: [CODE].model small .stack 100h .data space db " ","$" newline db 13,10,"$" ast db "*","$" .code mov ax,@data mov ds,ax mov cl,1 again: mov bl,cl back: mov …

Software Development assembly
Member Avatar for fuyulight
0
2K
Member Avatar for anar.bataa

i have a text file like this: # Nmap 6.40 scan initiated Tue Dec 24 05:42:34 2013 as: nmap --open -oN 123.txt 10.0.5.0/24 Nmap scan report for 10.0.5.1 Host is up (0.63s latency). Not shown: 992 closed ports, 6 filtered ports PORT STATE SERVICE 22/tcp open ssh 443/tcp open https …

Software Development c c# c++
Member Avatar for rubberman
0
213
Member Avatar for abousetta

How To Implement Using Double Linked List Structure in C++ function DisplayEven(...) that displays only the even elements inserted by the user.

Software Development c c# c++ linked-list
Member Avatar for maheshd13
0
191
Member Avatar for Nimerion

Hello.. So, in university they never mentioned the bitwise operators and the work with them. And now I've realised their power in the game development and I want to use them properly, and I'm doing fine, but I can't understand something.. If I'm comparing two integer numbers like this: int …

Software Development c++
Member Avatar for Nimerion
0
374
Member Avatar for C Newbie

I'm just wondering how to add a save feature to the Binding Navigator tool strip as it isn't a feature by default. I'm using VB Express Edition 2008. Thanks!

Software Development vb.net
Member Avatar for jhorman.rodriguez.146
0
139
Member Avatar for karthick_pmk

i am try to compare the Stored-password and Salted Password for the Experiment. Now i have a Stored Password and Salted-password., Stored-password having 72-byte and Salted-password having 18-bytes only, but i facing problem on comparison, how can i compare the both of them.. Here my Code : RandomAccessFile raf = …

Software Development android android-development java
Member Avatar for Ewald Horn
0
250
Member Avatar for kuchi

Hi, we are going to inroduce graphics in our project using python (Version 2.4), I coulsn't find the module related to graphics in this version. Is there anything you know please share that. I would be thankful if you could share the modules which suites Python 2.4 +

Software Development python
Member Avatar for vegaseat
0
324
Member Avatar for Zahra_1

in python, I want to code for the user to choose between a 4-sided dice, a 6-sided dice or a 12-sided dice. how do i do that?

Software Development python
Member Avatar for vegaseat
0
162
Member Avatar for Zahra_1

import random dice=random.randrange(1,5) dice2=random.randrange(1,7) dice3=random.randrange(1,13) sim=input (“Which sided dice would you like to roll? You can choose a 4-sided dice, a 6-sided dice or a 12-sided dice.”) if output=4 then print (“The 4-sided dice has rolled to”,dice) elif output=6 then print (“The 6-sided dice has rolled to”,dice2) elif output=12 then …

Software Development python
Member Avatar for vegaseat
0
240
Member Avatar for hassai

Hi what is the solution ? i have a file like this : 0 1 2 C 10 1 2 S 7 1 2 C 11 1 2 S 9 3 43 C 10 3 43 S 1 3 43 C 101 3 43 S with this code : ifstream …

Software Development c++
Member Avatar for Schol-R-LEA
0
273
Member Avatar for Smartboy33

Can anyone tell me which graphics library will be suitable for using in C++. I am new in C++. if there is any suitable library, please give me a tutorial link on that. Thanks in advance.

Software Development c++ image
Member Avatar for Shiraz_1
0
425
Member Avatar for abousetta

Write a C++ code that implements a doubly linked list structure that contains float elements, and then do the following: 1. Implement a function DisplayDequeue(…) that displays the inserted elements in a way like the dequeue function in the queue, Example: input= 1.5 , 3.5, 10, 0.5 output= 1.5, 3.5, …

Software Development c++ linked-list queue
Member Avatar for Schol-R-LEA
0
358
Member Avatar for Riteman

Am working on a project right now and almost stuck at a point. Say, I have a text document with contents like: `abc,123.xyz;praise;end,file,clear` Now I want abc , 123 . xyz ; praise ... in an array. I used split method with array of characters. Though I retrieved abc,123,xyz,praise,end,file,clear I …

Software Development
Member Avatar for ddanbe
0
3K
Member Avatar for suika

Hi, I am using VB6 and phpMyAdmin connected by WAMPServer for my system. I am new in this language. Here's the code in my that seems to be wrong: Private Sub cmdsubmit_Click() Dim rs As ADODB.Recordset Dim strsql As String strsql = "insert into table1 ( surname, firstname, middlename, house, …

Software Development mysql php visual-basic
Member Avatar for hapticz
0
682
Member Avatar for Riteman

Am working on a project right now and almost stuck at a point. Say, I have a text document with contents like: `abc,123.xyz;praise;end,file,clear` Now I want abc , 123 . xyz ; praise ... in an array. I used split method with array of characters. Though I retrieved abc,123,xyz,praise,end,file,clear I …

Software Development vb.net
Member Avatar for Riteman
0
602
Member Avatar for ganapathy24

I need a programming for following conditions in python... When the program is launched it should ask me for the number of words... Then as many words as input... then it has to make all the random possibility of those words without any space and provided it as an output... …

Software Development apple python
Member Avatar for ganapathy24
0
295
Member Avatar for djdanjo82

Hello all! Again thanks for viewing my thread. The past couple of days I have been struggling with trying to add JPanels to a JScrollPane. Basically I have data to display that comes in from another application in the form of a JPanel with regular updates. I am trying to …

Software Development gui java java-jsp java-swing xml
Member Avatar for ramesh midatana
0
2K
Member Avatar for poojakakde000

code in java for send a free msg from internet to mobile phone like way2sms or 160by2 sites................. what are the requirments for that???? pls reply as fast as possible...........

Software Development java
Member Avatar for stultuske
0
131
Member Avatar for hihamda

Write the program that lets the user play the game of rock , paper , and scissors against the computer? The program should work as follows: 1.when the program begins, a random number in the range of 1 through 3 is generated . if the number is 1, then the …

Software Development c++
Member Avatar for dev90
0
391
Member Avatar for johans22

#include <stdio.h> static int Var1; static FUNC() { //do stuff with var } void CALL_FUNC() { //call FUNC //do stuff } void fc1(void) { CALL_FUNC(); } void fc2(void) { CALL_FUNC(); } void fc3(void) { CALL_FUNC(); } //etc. void main() { } goal is to break the fc1, fc2 and others …

Software Development c
Member Avatar for johans22
0
196
Member Avatar for CreatorZeus

int numLines = 0; string unused; while (getline(users, unused)) { ++numLines; } cout << numLines << " Clients Found" << endl; //begin the search string search; string line; while(client.empty()) { cout << "Queue: "; //Display What The User Typed getline(cin,search); //Make it capital transform(search.begin(), search.end(),search.begin(), ::toupper); cout << search << …

Software Development c++ queue
Member Avatar for Ancient Dragon
0
230
Member Avatar for helb992

** This is my source code about calculator,I also use online materials, but it has a problem, i just plus the number from 1 to 9, if I use 10 plus another number, the result always is 1, please teach me how to fix it, thanks you #include <stdio.h> #include …

Software Development c++
Member Avatar for vmanes
0
202
Member Avatar for opel123

okay so hi, my problem is on (i think) case 3(the delete), it actually works when you input a movie title of example: armageddon(2012), but if you input a title that has spaces in between example: when i met your mother(2009), it just crashes. i don't know what to do …

Software Development algorithm c++ file-system
Member Avatar for Ancient Dragon
0
15K
Member Avatar for kent.johnstone_1

I need some pointers with pointers. What is the difference between a variable preceded by an "*" and an "&"? Some of my sample code uses one and some the other. I'm getting compiler errors trying both saying the variable is not defined. First use this function.

Software Development c
Member Avatar for kent.johnstone_1
0
423
Member Avatar for overwraith

I am wondering, when does it become more efficient to pass by value in C#? I was reading this article: http://msdn.microsoft.com/en-us/library/4d43ts61%28v=vs.90%29.aspx The article suggests that passing by reference actually generates overhead when it transferrs the value type to the heap. My C/C++ classes swore by passing by reference as a …

Software Development
Member Avatar for overwraith
0
267
Member Avatar for bCubed

I downloaded eclipse to my windows 8 computer along with the jdk and when I launch eclipse it tells me that it cannot not find the jre or jdk and that it is not in my current PATH. I have tried setting the path to the jdk folder but it …

Software Development file-system java windows-vista-7-8
Member Avatar for bCubed
0
340
Member Avatar for razree

Hi all, I have a question about deploying a Visual Basic 2010 Express build application silently on remote computers. When I published the app, an setup.exe file was created in project\bin\Debug folder. Now I would like to install this app to multiple machines (in the same domain). Usually I do …

Software Development vb.net visual-basic
Member Avatar for razree
0
207
Member Avatar for Benjamin_4

Hello guys i want to show a data in my combobox when i click on an item ion my jtable i tried this but it doesn't work. i would apprecite it if any one can help thanx String add5 = rs.getString("Id_branch"); branch_combo.setSelectedItem(add5); String add6 = rs.getString("User_Role"); UserRole_combo.setSelectedItem(add6);

Software Development java
Member Avatar for JamesCherrill
0
135
Member Avatar for mark.scutt.7

Hiya, please can you help: In my poker program I used to have loads of code for the 10 player slots, I used to ElseIf through each player in each player spot. Tonnes of code. Now I want to loop through so I have only one set of code. The …

Software Development visual-basic
Member Avatar for Minimalist
0
201
Member Avatar for <M/>

I am trying to write a program to calculate mean & standard deviation. I sort of figured out how to find mean (it is not correct yet, so i am going to need help on this part as well) but how do you do standard deviation? import java.util.Scanner; public class …

Software Development java
Member Avatar for dev90
0
501
Member Avatar for intelharsh

I am trying to semi-circles and full circles in an image. This is the process I'm following : Process image (including Canny edge detection) Find contours and draw them on an empty image, so that I can eliminate unwanted components. (The processed image is exactly what I want.) Detect circles …

Software Development c++
Member Avatar for Moschops
0
865
Member Avatar for LeNenne

Hello I have a problem that is as follows. One list box with 30 perons in it and I have command(index) from a - z when I dblclick on a name it fill all the textboxes good but I will have it like when I dblclick on a name in …

Software Development visual-basic
Member Avatar for LeNenne
0
166
Member Avatar for Pia_1

I have a problem with registering a new employee for my project. It can only detect the first employeeID as an existing.. Here's my code: void registerNewEmployee(){ FILE *fp; struct employee obj; fp=fopen("data.txt","a+"); system("cls"); printf("\n\t*******************************************"); printf("\n\t*******************************************"); printf("\n\t***\t\t\t\t\t***"); printf("\n\t***\tNEW EMPLOYEE REGISTRATION\t***"); printf("\n\t***\t\t\t\t\t***"); printf("\n\t*******************************************"); printf("\n\t*******************************************\n\n"); char employeeIDNew[5]; printf("Employee Number: "); scanf("%s", &employeeIDNew); …

Software Development c
Member Avatar for deceptikon
0
202
Member Avatar for babbu

I have created an application in c#. Following are my concerns. 1) create setup file which includes the ms access db 2) identify the location where this db will be stored 3) use this location as the data source for the application

Software Development file-system microsoft-access
Member Avatar for Ketsuekiame
0
228
Member Avatar for diaafayed

How to create a global "C#" class for data base connection such that ? 1. all classes and controls can handle. 2. remian all session untill the main from of an application closed. 3. disconnect from the server when closing windows Form application

Software Development session
Member Avatar for brite_a
0
230
Member Avatar for Suzie999

Hi daniwebbers. I've been hearing a lot about Qt when searching for a library to ease my pain of creating GUI's with native windows API. I'm hoping folks here might be able to offer some sage councel before I do something irreversible to my IED environment (vs 2010) that I'll …

Software Development c++ qt visual-studio
Member Avatar for Ancient Dragon
0
543
Member Avatar for Gribouillis
Member Avatar for petter.parker.37604

Hello, Friends, I am new to Programming. I write program on dev c++. #include <iostream> using namespace std; int main() { char name; cout<<"Enter your name"; cin>>name; cout<<"Name"<<name; return 0; } Now when i execute this program and give input Qaisar it displays Qaisar And if i input full name …

Software Development c++
Member Avatar for vmanes
0
399
Member Avatar for mrmodest34

I have written this code to variably test Prim's algorithm and I am timing it using clock(). For some reason it always returns 0 as its running time. I have other code that I have used this exact implementation in and they are returning the currect running times. The code …

Software Development c++ troubleshoot-hardware
Member Avatar for meta.quota
0
513
Member Avatar for Ahtsham

how % operator worked in c++? 3%5=3; how? it should be 0;

Software Development c++
Member Avatar for richieking
0
282
Member Avatar for muhammadnasiri

in my program, in insert function: void apple :: insert(string s, int a) { node *ptr; ptr = new node; strcpy(ptr->name, s); ptr->price = a; ptr->next=head; head=ptr; } this is acctually i want to do strcpy(ptr->name, s); but error is: cannot convert std::string {aka std::basic_string<char>} to char* for argument 1 …

Software Development apple c++
Member Avatar for deceptikon
0
298
Member Avatar for Pia_1

I have attached data.txt file with contains all of the employees data. The problem is when I login, it would only read one record. Here's my code: #include <stdio.h> #include <conio.h> #include <string.h> #include <stdlib.h> int login(); void displayWelcome(); main(){ int result; do{ system("cls"); result = login(); if(result==1 || result==2){ …

Software Development c
Member Avatar for dev90
0
198
Member Avatar for kirtikesh

i want to use a bitmap file from my computer in c++. i just dont know the code. can anyone help????

Software Development c++ image
Member Avatar for meta.quota
0
205
Member Avatar for <M/>

This is a code that I wrote and for some odd reason it doesn't count the number of inputted integers properly. import java.util.Scanner; public class IntegerCount { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.print("Enter an integer, the input ends if it is 0: "); int …

Software Development java
Member Avatar for dev90
0
323
Member Avatar for rohan21blade

**HEre is my checkout.java** index LCval = new index(); final String LCnum = LCval.getVal(); JButton btnNewButton_1 = new JButton("Finish"); btnNewButton_1.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { try{ int bal = 0; Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver"); String connectionURL = "jdbc:sqlserver://ROHAN\\SQLEXPRESS;Database=sys;user=rohan;password=rurouni;"; Connection con = DriverManager.getConnection(connectionURL); PreparedStatement pst =null; ResultSet rs = null; //Statement st=con.createStatement(); …

Software Development java
Member Avatar for JamesCherrill
0
295
Member Avatar for dougy83

Hi all, Does anyone know how to quickly (i.e. O(log n) time) insert items into a sorted list? I'd prefer an existing working function if available; I didn't see any appropriate ones in boost or stl. Some background: I'd like to keep a constant sized sorted list, and insert items …

Software Development c++
Member Avatar for dougy83
0
13K
Member Avatar for driazi

Hi, can anyone solve my problem in c# .net 2012 ? when i run my project the compiler fails to compile in line 27 -->(GetDataTabletFromCSVFile Function) and shows me 4 errors as following : 1- Error 3 The type 'System.ComponentModel.IListSource' is defined in an assembly that is not referenced. You …

Software Development assembly
Member Avatar for driazi
0
383

The End.