49,756 Topics
![]() | |
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. | |
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 … | |
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 … | |
How To Implement Using Double Linked List Structure in C++ function DisplayEven(...) that displays only the even elements inserted by the user. | |
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 … | |
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 … | |
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. | |
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, … | |
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 … | |
How To Implement Using Double Linked List Structure in C++ function DisplayEven(...) that displays only the even elements inserted by the user. | |
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 << … | |
** 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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
| |
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 … | |
i want to use a bitmap file from my computer in c++. i just dont know the code. can anyone help???? | |
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 … | |
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, … | |
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 ? | |
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 … | |
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.. | |
#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; } | |
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."); } } … | |
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 … |
The End.