49,761 Topics

Member Avatar for
Member Avatar for Ian Woodgate

Hi all I've been asked to write a C++ program that the user enters a five digit integer. The program then needs to return how many zeros in the number, how many odd numbers and how many even numbers. I've set it up to %2=0 and %2!=0 to determine if …

Member Avatar for profyou
0
131
Member Avatar for rdrahul809

I am new to c++ language, and i am stucked with this que. my teacher told me to write a prog. that will calculate (1)square-(3)square+(5)square-(7)square+(9)square.............so on using for loop can you help me.

Member Avatar for Schol-R-LEA
0
103
Member Avatar for newbie1234

I want to implement public key cryptography in my poject. How to implement using c langugae. Is there any library or api. Thanks for help

Member Avatar for deceptikon
0
80
Member Avatar for daino

Anyone used both Podofo to parse pdf's. How does this compare to just using Adobe SDK. I will look into this myself though it will take a while to make a comparrison. Was wondering if Pofofo adds any additonal functionality to the Adobe SDK library or should I just incorporate …

0
156
Member Avatar for daino

Could anyone recommend some reading material to help be better understand the ADOBE SDK C++ API. I'll need it for parsing pdf's and other things. Is there a book written on this or are we restricted to what is on the adobe developers website? Thanks danny2000

Member Avatar for daino
0
302
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
349
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
677
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

The End.