49,761 Topics

Member Avatar for
Member Avatar for tiverton

I am writing a DOS screen football game(No graphics), I have reached 61,283 lines any bigger than this I get a error that says linker warning, exceeded memory limit for block line cache in module. Old compiler version 4.0.

Member Avatar for tiverton
0
259
Member Avatar for sadia.rasheed.9231

plz help me , need a code that search a word for file saved in note pad in show the out put as is this wrd exsist in file or not n if yes how many time appear....

Member Avatar for Moschops
0
334
Member Avatar for RASHA_T

Hello everybody! I need some help in my program it is about Guess number game. the program is working but not that I have expected, when i enter guess 76 the output gives me that 76 is Too small :( instead of Too big .Even I type any number 64,99 …

Member Avatar for RASHA_T
0
236
Member Avatar for Vasthor

isShorter(const string &s1, const string &s2) { return s1.size() < s2.size(); } stable_sort(ret.begin(), ret.end(), isShorter); either using stable_sort or sort the result is shown in the attachment. meanwhile: "By calling stable_sort, we can maintain alphabetical order among those elements that have the same length:" - C++ Primer 5th edi. which …

Member Avatar for deceptikon
0
193
Member Avatar for SHE.RE

give an example for a C++ program that sorts list of integers. The list should have a size of power of two. Example: list size = 2, 4, 8, 16… Algorithm 1. Divide the array into two lists until a single element remains in any list While merging given two …

Member Avatar for vani krishnan
0
87
Member Avatar for SHE.RE

give example of a C++ program that sorts list of integers. The list should have a size of power of two. Example: list size = 2, 4, 8, 16… Algorithm 1. Divide the array into two lists until a single element remains in any list While merging given two sorted …

Member Avatar for ddanbe
0
101
Member Avatar for D8FMwyGG

write a program in which a class has three data members: name, ID, marks of 5 subjects (int marks[5]) and a member function Assign() to assign the streams on the basis of table given below: Avg.Marks Stream 90% or more Computers 80% - 89% Electronics 75%-79% Mechanical 70%-74% Electrial In …

Member Avatar for deceptikon
-2
183
Member Avatar for Smartboy33

Can anyone please tell me how to use the built in graphics in c++.Is there any tutorial on this?Which graphics will be suitable for using in c++?If there is any tutorial on this,please give the link. Thanks in advance.

Member Avatar for Moschops
0
543
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
145
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
322
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
210
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
188
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
367
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
269
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
401
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
338
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
387
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
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 …

Member Avatar for vmanes
0
198
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
852
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
155
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
537
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
395
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
489
Member Avatar for Ahtsham
Member Avatar for richieking
0
252
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

The End.