49,756 Topics

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.

Member Avatar for rubberman
0
144
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 …

Member Avatar for passion88
0
320
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 …

Member Avatar for rubberman
0
209
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.

Member Avatar for maheshd13
0
187
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 …

Member Avatar for Nimerion
0
366
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 …

Member Avatar for Schol-R-LEA
0
266
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.

Member Avatar for Shiraz_1
0
335
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, …

Member Avatar for Schol-R-LEA
0
283
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 …

Member Avatar for dev90
0
386
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.

Member Avatar for tinstaafl
0
68
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 << …

Member Avatar for Ancient Dragon
0
229
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 …

Member Avatar for vmanes
0
197
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 …

Member Avatar for Ancient Dragon
0
15K
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 …

Member Avatar for Moschops
0
836
Member Avatar for ateeqbkr

A team has two types of players: Batsman, Baller. It is required to assess their performance in a particular tournament and thus find out the best player in each of the categories. The assessment criterion for each type of player is different. For batsman, it is the average of his …

Member Avatar for Musa_Jutt
-1
154
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 …

Member Avatar for Ancient Dragon
0
534
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 …

Member Avatar for vmanes
0
394
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 …

Member Avatar for meta.quota
0
463
Member Avatar for Ahtsham
Member Avatar for richieking
0
192
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 …

Member Avatar for deceptikon
0
295
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????

Member Avatar for meta.quota
0
202
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 …

Member Avatar for dougy83
0
13K
Member Avatar for Chrisadams

OS:windows 8,compiler:g++,mysql version:5.6 //bookshop.cpp #include <my_global.h> int main() { return 0; } //bookshop.cpp //Makefile CC = g++ LIBS = -L"C:\Program Files\MySQL\MySQL Server 5.6\lib\" -lmysqlclient INCLUDES = -I"C:\Program Files\MySQL\MySQL Server 5.6\include" all:bookshop bookshop: bookshop.cpp $(CC) -fpermissive -o bookshop $(INCLUDES) bookshop.cpp $(LIBS) //Makefile error: In file included from C:\Program Files\MySQL\MySQL Server 5.6\include/my_global.h:68:0, …

Member Avatar for Chrisadams
0
1K
Member Avatar for moudy.mak

I need the way for allow users input text by writing , while users input text they see what's they input when user press enter jump for next line and when user end press on button to finish ?

Member Avatar for meta.quota
0
2K
Member Avatar for Junior_1

hello! i want to add 3rd party EXE into form. but problem is i think it almost impossible to change without using dll injection . before i was try several method but all failed. actually i was try with vb or vb.net because i almost don't know c++ but vb …

Member Avatar for meta.quota
0
317
Member Avatar for Builder_1

my problem is that how can we intialize a string using cin in output console like this. eg. My class is very good through cin...as the spaces put the null character so only first alphabet is initialized....kindly someone give me solution..

Member Avatar for Ancient Dragon
0
694
Member Avatar for yogesh_6

#include<iostream> using namespace std; int main() { int n;int*p; int i=0,j=0,temp=0; cin>>n; p=new int[n]; for(int i=0;i<n;i++) { cin>>p[i]; } for(j=0;j<n;j++) { for (i=j;i<n;i++) { if(p[i]>p[i+1]) { temp=p[i]; p[i]=p[i+1]; p[i+1]=temp; } } } for(i=0;i<n;i++) cout<<p[i]<<endl; return 0; }

Member Avatar for Moschops
0
149
Member Avatar for khader(ldo)
Member Avatar for davorka.tonkovic_1

hi. i'm trying to convert program from c++ to pyhton, but i don't have any experience with python. can someone help me? #include <stdio.h> #include <conio.h> main() { float uplata,i; do { printf("Unesite pocetnu uplatu:"); scanf("%f", &uplata); if(uplata>3000) { printf("Pocetna uplata ne smije biti veca od 3000 kuna."); } } …

Member Avatar for Ancient Dragon
0
674
Member Avatar for Lee_2

Hi basically I am creating a zombie survival game using Irrlicht. I have a base class Survival.cpp with my game loop in a method called `Survival::Run()` I am trying to call a `Shoot()` method from within the game loop from another class within Bullet.cpp I have included the `Shoot()` method …

Member Avatar for L7Sqr
0
292

The End.