49,757 Topics

Member Avatar for
Member Avatar for lakshman3
Member Avatar for Amiet Mhaske

Hey guys hello, I am new to programming language. I have some suggestions about **Ditto Clipboard manager**. For that i would like to edit some part of ditto clipboard manager. Can you guys please help me **how can I edit it's source code**. It's available free at here, please [Click …

Member Avatar for ertthewer
0
348
Member Avatar for phorce

Hello, I'm trying to develop an algorithm/program that calculates the distance between two points. These values are stored inside a 1D array, which, acts as a 2D array (I think you know what I mean!) The values are: 150 50 15 20 The calculation should therefore be: d = √(150 …

Member Avatar for phorce
0
206
Member Avatar for MasterHacker110

I have the following code: #include <iostream> #include <fstream> #include <string> #include <ctime> #include <windows.h> #include <cstdlib> enum ERR_CODE {SUCCESS, ERROR}; But as soon as I compile it it gives this error: C:\Users\User\Desktop\Program.cpp|8|error: expected identifier before numeric constant C:\Users\User\Desktop\Program.cpp|8|error: expected '}' before numeric constant C:\Users\User\Desktop\Program.cpp|8|error: expected unqualified-id before numeric constant …

Member Avatar for MasterHacker110
0
6K
Member Avatar for Mereo

I'm currently reading the book "C++ primer plus 6th edition" and it says the char pointer needs to be a constant. I don't really understand the explanation so I did some tests. I don't understand why when I use cin to an already used char pointer, it crashes. But when …

Member Avatar for Mereo
0
160
Member Avatar for dlmagers

This is the code that I have and for some reason it is not given me that I need. #include <iostream> #include <iomanip> using namespace std; int main () { // variables double salary = 0.0; int RATE = .03; // enter salary cout << "Salary (-1 to stop): "; …

Member Avatar for dlmagers
0
192
Member Avatar for techy23

Hi! Guys. I want to make a game in C++. I don't know anything about game programming at the moment, but will make it one day. :) could you suggest me , great game ideas in C++. game that is presentable and interesting. Please give your best ideas and suggest …

Member Avatar for DeanMSands3
0
238
Member Avatar for 9tontruck

Hi guys This is a question about C++ setting you dont even need to know about the library I am trying to use. I am coding C++ in VS2010 right now and I am trying to use 'icclib' which was downloaded from http://www.argyllcms.com/icclibsrc.html I made a new project, added an …

Member Avatar for gusano79
0
219
Member Avatar for astala27

Hi mates, How can I keep the result ready to paste in copy? I was trying to find this thing on Google but so far everthing is about to copy the physical address of the data :/ I need to copy the result, as an example imagine a calculator copy …

Member Avatar for NathanOliver
0
349
Member Avatar for osiron

Hi guys, I'm kinda new to pthreading and so I made this program that prints "hello" 10 times but I wanted to have a delay where it puts "hello" in one second between time interval (like a stopwatch). Unfortunately, I used the `sleep(1)` function and it only prints out one …

Member Avatar for L7Sqr
0
143
Member Avatar for dot_binary

I'm tring to make 3D rotation of a poligon, I wrote my own functions for that.The problem is when I rotate some points in 2D it works but if I use the same functions for 3D , while rotating the veteces move to the center of the object and remain …

Member Avatar for DeanMSands3
0
158
Member Avatar for apanimesh061

I need to run Mingw4.6 on my Dev C++ which already has mingw32 3.6 installed! Does this version of mingw allow us to use 'C++11' ??? Please help!

Member Avatar for triumphost
0
2K
Member Avatar for lil_bit

Hi. Here is a simple beginners program. It uses "if_else" and returns no information. After execution, it deletes files within the same directory as the exe. Enjoy.

Member Avatar for mrnutty
0
208
Member Avatar for Hazardous_Byte

Hello everyone! I am having a bit of an odd problem here. So, on my Visual Studio project, I decided to use a precompiled header. This didn't seem to cause a noticable problem up until today. I have a small segment of code that is supposed to remove one element …

Member Avatar for Hazardous_Byte
0
675
Member Avatar for eggsandbacon

Hey everyone, I'm working on an assignment and I'm having some trouble figuring out how to implement two operators. The program creates and implements a class to represent the Stack ADT using a singly-linked list. There is a driver program to test my implementation. I have everything implemented (except the …

Member Avatar for aranayd
1
1K
Member Avatar for tmunyemana

Hello, Would you please help me? my code is not executing loop to allow user to play again after user cin>> yes. also the code suppose to allow user 10 tries to guess the number then stop, I am using this code if ((i = 10) && (userGuess != RANDOM_NUMBER)){ …

Member Avatar for WaltP
0
2K
Member Avatar for andy8521

This programs seems to run perfectly fine. but there is a bug in the get_number function I tried to find for hours but I couldnt. See if you guys can help me. Any help is greatly appreciated. Thanks **fconvert.h** // This is the header file for the functions used in …

Member Avatar for WaltP
0
162
Member Avatar for 111100/11000

#include <iostream> #include <cmath> #include <string> #include <cstdlib> #include <cstring> using namespace std; int main() { char chouseing_alphabet[27]={'a', 'b', 'c', '\0'}; string abc[27]; cout << "This program encrypts messages using Ceaser Cipher\n"; cout << "NOTE:capital letters are not allowed in this program\n"; cout << "\n---------------------------------------------------------"; cout << "\n---------------------------------------------------------"; cout << …

Member Avatar for Ancient Dragon
0
221
Member Avatar for aangner

Write a program that calculates and outputs the monthly paycheck information for an employee, including all the amounts deducted from an employee’s gross pay, and the net pay that is due to the employee. The user of your program will know the employee’s name and the gross pay for the …

Member Avatar for aangner
0
510
Member Avatar for sblass92

Lets say I have a class A and I also have classes B and C that inherit from class A class A { virtual void foo()=0; //stuff } class B : class A { void foo(); //more specific stuff } class C : class A { void foo(); //more specific …

Member Avatar for sblass92
0
346
Member Avatar for Sendy Hipo

hi guys :D! im trying to make specialized template for cstring, but it seems i stuck on it.. i tried to search how to make specialized template for cstring , but there wasnt any good explanation and im trying to figure this out my self here's my template header : …

Member Avatar for Sendy Hipo
0
150
Member Avatar for sandz24

#include <iostream> #include <vector> using namespace std; template< typename T > using matrix = vector< vector<T> > ; I saw this code snippet while searching for templates. I was wondering why there's a word "using". What is it for? Thanks :)

Member Avatar for sepp2k
0
164
Member Avatar for nekoleon64

Hello my name is Leonard E. Norwood Jr. I haven't been back much but I'm still studying and practicing C++ I'm still doing arrays starting from beginning to better get used it it. Anyway, it's a simple program of finding the largest number of the 10 numbers. I know my …

Member Avatar for WaltP
0
3K
Member Avatar for salah_saleh

Hi, In the code below I have 2 nested loops, with the inner loop starts from the index of the outer loop till the end. You can think of it as I am trying to find ll the combinations. So if we have 'm' rows, we will have m(m+1)/2 possible …

Member Avatar for salah_saleh
0
118
Member Avatar for dancks

I don't really have an explanation and whoever thought that this new posting format was the way to go... idk what to say. I really don't like it. I can only post so much lines of code before something happens to the window and I can't scroll all the way …

Member Avatar for mike_2000_17
0
259
Member Avatar for rithish

#include <iostream.h> void main() { int d; int i=0,n,j,b[100]; cout<<"\n Press 1 for Decimal to Binary converstion"; cout<<"\n press 2 for Decimal to Octal converstion "; cout<<"\n press 3 for Decimal to Hexadecimal converstion"; cout<<"\n\nEnter your choice: "; cin>>d; switch(d) { case 1: cout<<"\nEnter decimal number: "; cin>>n; while (n>0) …

Member Avatar for phorce
-2
387
Member Avatar for Lostelf

Hi everyone I'm having a problem with this program giving me the wrong output. The question is • void getScore() should ask the user for a test score, store it in a reference parameter variable. This function should be called by the main once for of the six scores to …

Member Avatar for rithish
0
378
Member Avatar for diknas

#include <conio.h> #include <iostream> using namespace std; int main() { int A[10][10],m,n,x,y,sum=0; //Create a Matrix cout << "Enter number of rows and columns in Matrix A : \n"; cin>>n>>m; cout << "Enter elements of Matrix A : \n"; for(x=1;x<n+1;++x) for(y=1;y<m+1;++y) cin>>A[x][y]; //Find sum of each row for(x=1;x<n+1;++x) { A[x][m+1]=0; for(y=1;y<m+1;++y) …

Member Avatar for phorce
0
270
Member Avatar for gizmo7008

I'm not sure what I'm doing wrong. I get a warning when I compile and an error after my program runs. This is the warning I get: myList2.cpp: In function ‘int main()’: myList2.cpp:96: warning: deleting array ‘int score [6]’ And this is what shows after my program runs: a.out(7023) malloc: …

Member Avatar for gizmo7008
0
248
Member Avatar for bearsomg

Hello, I am currently building a rendering engine in native C++ using Direct3D 10 and the Win32 API. The engine will have 2 separate windows, one being the rendering window and the other being a control window which is used to load models, animaitons, etc. It is also used to …

0
99

The End.