49,757 Topics
| |
i cannot understand the squuence of this program at all some one explain in details plz #include<iostream> using namespace std ; void move(char,char,char,int) ; int main() { int n; cout<<"Enter the plates numbers \n"; cin>>n; move('a','b','c',n) ;system("pause");} void move(char x,char y,char z,int n){ if(n>1) move(x,z,y,n-1); cout<<x<<"----->"<<z<<"\n"; if(n>1) move(y,x,z,n-1); } | |
I tried writing an clock applicantion but it did not work, the number is static, how to make it change. And how to remove minimal, maximal button and icon of windows, for the icon I tried: wcex.hIcon = NULL; wcex.hIconSm = NULL; But it showed a default icon Thanks for … | |
how to file handling e.g read and write file ,with window form application in visual studio | |
Okay, so I'm still stumped on an output problem. The problem is, I have list items and one of those column objects has more than one item(the other columns don't for each particular item) Some reason, when I add another object to the console for printing it ends up like: … | |
Hey guys, I have some code set up to iterate through a nested map. It current works as expected, iterating through all values in the first key, and then the second key. My question is, is there any way to display one value from each key? For example, if key … | |
I have got the program writing to the files, but i am unsure where to even begin to pull the information back out. the information is saved like this: 15 Ray Allrich # 10.25 0 0 in one file the other file has the id number and hours worked 5 … | |
Hi everyone, I am working on a C++ Pig Latin program for school which translates English sentences into Pig Latin. Here are the guidelines to it: You are to write a program that translates English to Pig Latin. In case you have forgotten, the way you translate English to Pig … | |
hello anyone i want to copyrigt my souce code so that the copyright message is hidden from anyone who open the code in c++ but show the message on console screen for example property belong to "my name" it doesnot appear on the cpp or not easy to remove but … | |
My professor assigned a problem from our OS book about matrix multiplication. Its pretty simple as the book shows how to do most of it. But now my professor has added an extra layer of difficulty. Instead of declaring the multidimensional arrays globally he wants us to input the size … | |
Hi, I'm making a windows console application that can create and terminate processes, and stores their start and end time. It works fine as long as I start and end the processes from my application itself. However, if I close the child process, eg notepad, using it's own 'X' button, … | |
When you need to create a login page using PHP and MySQL, the safety of this login page relies on - Your PHP scripting abilities - How well and securely has PHP been programmed in C++. - How well C++ compiler of interpreter of PHP has been programmed. - How … | |
I tried to build really basic associative array but it turned out I don't have enough knowledge, so I tried something less, and less, and less, because I kept failing at it. Finally I just tried to set variables and print them in the command-line. But I can't even do … | |
In below code, I expect 1 to be initialized in all the 10 elements in x array. But, it doesn't seem to be working. May I know what I am missing here int main() { int *x = new int[10]; //std::cout<<"address of x: "<<&x<<std::endl; for(int i =0; i <10; ++i){ … | |
Hey Guys, I'm pretty new to containers, but need to use them for a project I'm doing. I've figured out that I can use a map iterator to iterate through values stored in the map displaying the key, followed by the second value. In my case, the key is an`int` … | |
I have this regular struct struct Person{ char *name; int age; } and I should do some regular stuff like, input size, create dynamic array of persons , and take user input for this person. But the problem, as you can see is how do I input in name pointer; … | |
Hello everyone, If i need my program to create as much vectors as needed based on the user first input , assuming each vectors will hold an int value like a combinations of numbers, so latter those vectors will be compared for higher value. EX: prompt the user to enter … | |
hello guys i make a simple calculator in window form application and i want to add it with a scientific calculator form how can i connect these two forms | |
I cannot understand user defined functions in c++? Please give suggestions or refer any book or website where I can learn User - defined functions in C++? | |
HOW TO CODE FOR A SAVE,DELETE,EXIT BUTTONS IN VISUAL C++? PLZ HELP ME I REALLY WANT TO KNOW THIS PROGRAMMING LANGUAGE | |
Hi Daniweb, I'm making a shell-ish console for my Operating Systems class. Trying to get the shell to Terminate a process given a process name. Ever since I made the following addition to my code, this error is coming: `Program received signal SIGSEGV, Segmentation fault.In __gnu_cxx::__exchange_and_add(int volatile*, int) () ()` … | |
define linked list called student name number address and the following function add function that add the information of the student 2 search function that search print the name of all student with some address search ("zarqa,amman,irbid") will print the name of students lives in amman 3 count function that … | |
i have this code uptil yet in which i am adding records in a text file [array of structure] and displaying the text file what i want to do is to implement delete previous record functionality and also to edit the previous records could anyone please guide me as to … | |
hey guys please tell me how to add two form in vc++ 2010 , i made a calculator in window form and i want to add one more form with a button click | |
I have used function write() in a loop to write 2 names in binary mode to a file. Now, when I try to read those 2 names I use this logic : 1) find size of file in bytes; 2) create buffer with that size; 1) read into buffer until … | |
Hi It's been a while i'm learing C++ but still i have some issue with `Move semantics` and some other stuff. I wrote this class but i don't know why the `Copy constructor` is getting called and the output is a little strange to me, shouldn't the `Move Constructor` gets … | |
Good day to you all people. I personally like to use Visual Studio and Dev C++ to develop my c++ apps. Recently, I was introduced to a new environment, Textpad as the editor and Cygwin as the compiler. I found interesting that in Visul Studio and Dev C++ you are … | |
what is the difference in exit(0),exit(1),exit(2) ? how it differs from Return statement? | |
Good day people. They say the only way you can be a good programmer is if you learn it the hard way, by coding a lot and working on the analytical skills. I believe that all of us in this community have faced some problems in c++ and then were … | |
# Introduction # A recurring problem many newcomers face when tackling C++ is the compilation process, from sources to binaries. This tutorial will detail that process. It will be especially useful for people only familiar with higher-level languages (if any), but veterans of one or more native languages (C, Fortran, … | |
hi members please tell me what push_back function do , and why it is use |
The End.