49,757 Topics

Member Avatar for
Member Avatar for Ahmed_62

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); }

Member Avatar for rubberman
0
111
Member Avatar for Đăng

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 …

0
98
Member Avatar for basit_3

how to file handling e.g read and write file ,with window form application in visual studio

Member Avatar for basit_3
0
283
Member Avatar for kiail

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: …

Member Avatar for David W
0
293
Member Avatar for collin_ola

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 …

Member Avatar for deceptikon
0
302
Member Avatar for Erica_2

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 …

Member Avatar for David W
0
261
Member Avatar for arguav74

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 …

Member Avatar for Schol-R-LEA
0
1K
Member Avatar for muhammad_86

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 …

Member Avatar for Schol-R-LEA
0
138
Member Avatar for cbreeze

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 …

Member Avatar for Tedi_1
0
3K
Member Avatar for pspwxp fan

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, …

0
77
Member Avatar for Aeonix

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 …

Member Avatar for ryantroop
1
255
Member Avatar for Aeonix

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 …

Member Avatar for Aeonix
0
23K
Member Avatar for raghavanp

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){ …

Member Avatar for マーズ maazu
0
243
Member Avatar for collin_ola

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` …

Member Avatar for collin_ola
0
539
Member Avatar for nhiap6

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; …

Member Avatar for Moschops
0
171
Member Avatar for Rafiii

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 …

Member Avatar for Rafiii
0
615
Member Avatar for basit_3

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

Member Avatar for basit_3
0
106
Member Avatar for ArpitJ.25

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++?

Member Avatar for basit_3
0
114
Member Avatar for Sicelo

HOW TO CODE FOR A SAVE,DELETE,EXIT BUTTONS IN VISUAL C++? PLZ HELP ME I REALLY WANT TO KNOW THIS PROGRAMMING LANGUAGE

Member Avatar for basit_3
0
54
Member Avatar for pspwxp fan

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) () ()` …

Member Avatar for rubberman
0
599
Member Avatar for Sdam

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 …

Member Avatar for Sdam
-1
539
Member Avatar for lp94

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 …

Member Avatar for ddanbe
0
224
Member Avatar for basit_3

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

Member Avatar for ddanbe
0
61
Member Avatar for nhiap6

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 …

Member Avatar for David_50
0
292
Member Avatar for Sarkurd

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 …

Member Avatar for Sarkurd
0
279
Member Avatar for Lutina

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 …

Member Avatar for mike_2000_17
0
271
Member Avatar for ganesh_bala

what is the difference in exit(0),exit(1),exit(2) ? how it differs from Return statement?

Member Avatar for chandanraj
0
681
Member Avatar for Lutina

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 …

Member Avatar for Lutina
0
404
Member Avatar for mike_2000_17

# 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, …

Member Avatar for Lutina
15
8K
Member Avatar for basit_3

hi members please tell me what push_back function do , and why it is use

Member Avatar for Lutina
-1
144

The End.