48,985 Topics

Member Avatar for
Member Avatar for covert

after compiling,when i run program my 'FTN 95\PLATO' recently showing me black DOS box,only reading "PREES 'RETURN' to cotinue" without executing the program. could u say why is this happening ?

Member Avatar for Schol-R-LEA
0
145
Member Avatar for Lloyd_3

kindly help me in making program in the permutaion of 1,2,3,4,5. Permutation means the arrangements of the numbers 1,2,3,4,5. ex. 1,2,3,5,4 1,2,4,5,3 and so on.. there are 120 results.

Member Avatar for iamthwee
0
499
Member Avatar for aluhnev

//Hi,can someone explain what is the difference of declaring the main in C++/C++11 //What is most common may to use or it's metter of personal choice? int main() { return 0; } /////////////////// int _tmain(int argc, _TCHAR* argv[]) { return 0; } /////////////////// int main( int argc, char ** argv …

Member Avatar for NathanOliver
0
349
Member Avatar for nhrnjic6

So I've built a Queue data sructure(all the needed methods) and I just wanted to know how can I use my Queue objects in different project ?

Member Avatar for Schol-R-LEA
0
231
Member Avatar for aluhnev

#include<utility> #include<tuple> #include "stdafx.h" #include<string> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { pair<int, string>p(42, "forty-two"); cout << p.first << " " << p.second << endl; p = make_pair<int,string>(112,"one-one-two") ; cout << p.first << " " << p.second << endl; return 0; } // Can some one help to …

Member Avatar for aluhnev
0
227
Member Avatar for _echelon

Hi DaniWeb, I've been programming a litecoin clone for about two weeks now. I came to build the daemon to acquire a merkle hash, but It give me this error. Error: To use vizcoin, you must set a rpcpassword in the configuration file: /home/crypto/.vizcoin/vizcoin.conf It is recommended you use the …

Member Avatar for David W
0
186
Member Avatar for TommyTee

Hi guys, I have a class called Account with variables called Balance and Status. The Member Name is given by the User through cin and represents an the Account Number. How can I diynamically create an object through cin and give their variables a value through cin? I have been …

Member Avatar for David W
0
2K
Member Avatar for nathan.pavlovsky

Hello programmers! I am working on a program that checks if a user's input is a palindrome (in this case, the input is a string). I am using a custom class template "stack", that is a constrained version of my custom class "List", which is a linked list class template. …

Member Avatar for nathan.pavlovsky
0
407
Member Avatar for cambalinho

i'm creating the form class. the form us showed and the window procedure works. the problem is that some messages(like WM_CREATE) aren't working. so how can i connect, correctly the form to window procedure?

Member Avatar for cambalinho
0
591
Member Avatar for cambalinho

i'm build a function for do the combination of keys(like the kombat games: we do some combination keys for do an actions): bool CombineKeys(std::vector<int> const keys) { static bool PreviousKeyPressed; static DWORD StartTimer = GetTickCount(); static int i=0; if((GetAsyncKeyState(keys[0]) & 0x8000) and PreviousKeyPressed==false) { i=0; SetWindowText(a,"hello"); PreviousKeyPressed=true; i++; } else …

Member Avatar for cambalinho
0
228
Member Avatar for Yahia Farghaly

Hi,can anyone help me how to start programming With MFC C++ ? and what's the best learning source for it? and is it good to learn that ? i am have some good experience with c++ and i am looking forward to design some gui programs ,i know that there …

Member Avatar for Moschops
0
739
Member Avatar for new_developer

Hi there, I am having problem with deallocating string two-dimensional dynamic array. My program works fine but for some conditions such as when row size is greator than column size in 2d dynamic array, the program crashes when it goes into destructor. My program is as follows : #include <iostream> …

Member Avatar for new_developer
0
247
Member Avatar for jameslyle2

I'm having a problem with a program of mine at the moment. Basically, the thought process was to see if the input was whether an int or a string. But as soon as I tried to test it out, it produced an error along the lines of "could not convert …

Member Avatar for Gonbe
0
228
Member Avatar for Jjajangmyeon

When I dynamically allocate mem within a function, do I have to still manually release it? Or does it go away once the function has run and returned (like local variables)? If I do have to release it, since it's basically a pointer can I do that from main? Do …

Member Avatar for David W
0
191
Member Avatar for nathan.pavlovsky

Hellp programmers! I am working on a program that uses two objects of a custom class template List [which is a linked list, with each item pointing to the next] and concatenates them. Initially, I need to input numbers into my main function, so I have two sets of while …

Member Avatar for nathan.pavlovsky
0
4K
Member Avatar for mike_2000_17

Hi all, I was just playing around with some ideas about optimizing a core piece of my library: the run-time type identification system (RTTI). What does that have to do with compile-time string concatenation? Well, the whole point of the RTTI is to provide information on the type of objects, …

Member Avatar for mike_2000_17
6
12K
Member Avatar for Khyxz

Can you please help me with my Problem here? What I want to do is: 1. Input Username & Password (Make Password in Asterisk (*)) 2. If it is True / Right Proceed to the Main Program 3. Else If False/Wrong give another Trial (Do you want to try again? …

Member Avatar for iamthwee
0
230
Member Avatar for sohaib.danish.31

Hello Friends ! I am working on a project of CD CAFE. In which I have arranged movies like this : Movie Name::::Genre::::Hero of Movie::::Heroine of Movie and I have entered data in this. Now I want to add search option in my program that I can search by Movie …

Member Avatar for David W
0
504
Member Avatar for tapananand

Consider the following code: #include<stdio.h> #define msizeof(type) ((char*)(&type) - (char*)(&type - 1)) int main() { int x; printf("%u %u\n", msizeof(x), sizeof(x)); return 0; } The Above code when compiled with g++ compiles just fine and works well without any wanrings, while in gcc it gives the following warning: `integer overflow …

Member Avatar for vijayan121
0
829
Member Avatar for aluhnev

#include "stdafx.h" #include<vector> #include<iostream> using namespace std; int main( int argc, char ** argv ) { // from initializer list (C++11) cout << "vector from initializer list (C++11): " << endl; vector<int> vi1 = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; cout << "size: " …

Member Avatar for sepp2k
0
197
Member Avatar for sunnyshahrukh

how can we use write and read functions in files and why we use these function because i have already get put or cin cout available.

Member Avatar for NathanOliver
0
78
Member Avatar for amal.sultan.5855

how to find length of a character string without using while loop or user defined function?

Member Avatar for Gonbe
0
203
Member Avatar for Yahia Farghaly

Hi there, i was trying to make a program (to do)using list class here is the code #include<iostream> using namespace std; #include<list> #include<string> void display(const list<string>& lsy){ list<string>::const_iterator iter = lsy.cbegin(); int i = 0; while (iter != lsy.end()){ cout <<++i<<"- "<< *iter << endl; ++iter; } } void add(list<string>&ls){ …

Member Avatar for Yahia Farghaly
0
324
Member Avatar for Vagabond

The user is asked to input a number in either Hex, Octal or Decimal, which is then converted to Hex, Octal & Decimal. The user can exit the program from the MAIN MENU or by the Escape key after each convertion. Compiler : Borland Turbo C++ v4.5.

Member Avatar for pritaeas
1
1K
Member Avatar for furalise

Hello I am having some trouble with something. As I read the contents of a file into an ifstream object I occassionally want to dump all its contents into a stringstream to analyse it. Example below. The problem I am having is that if I use ifstream.rdbuf() to dumpt the …

Member Avatar for furalise
0
4K
Member Avatar for Xecantur

Having a hard time trying to wrap my head around why my grid system fails, I'm assuming my train of thought is stuck at the moment(akin to writers block). My understanding of grids is while the current cell isn't the last one in the column/row(w/e is horizontal) /*do stuff*/ then …

Member Avatar for Xecantur
0
325
Member Avatar for nhrnjic6

Is it possible to stop the lets say for loop with a function : for(int i = 0;i<15;i++){ cin >> input; obj.add(input); } // and then have some add or some other function that checks if (x == max_size) check(){ if(counter == max_size) stop the foor loop and continue.. }

Member Avatar for Xecantur
0
139
Member Avatar for Jjajangmyeon

This is driving me nuts. I'm writing a password program that reads from .txt file into an array of char arrays, and then allows the user to write a new password and then appends it to the end of the list. Everything SEEMS to be working except everytime I run …

Member Avatar for Jjajangmyeon
0
198
Member Avatar for cambalinho

i'm build a completed new code for properties: #include <iostream> #include <functional> using namespace std; template <typename T> class property { private: T PropertyValue; //i think these is ok, but something seems not std::function<T(void)> getf; std::function<void(T)> setf; public: property() { getf=NULL; setf=NULL; }; property(T value) { PropertyValue=value; }; property(std::function<void(void)> GetFunction=NULL,std::function<T(void)> …

Member Avatar for cambalinho
0
387
Member Avatar for cambalinho

i put an image on form with WM_PAINT message. but the image is, only, showed after resize(for example) the form. why is that? did i forget any style\extended style?

Member Avatar for cambalinho
0
287

The End.