Self Studying C++, Code will not compile issue
I am trying to write code for the following question: Write the definition of a function named fscopy that does a line-by-line copy from one stream to another. This function can be safely passed two...
View ArticlePalinfdrome function call
i have this function and I'm not sure how to call it inside my main. or how to pass user input into the function either Code: bool IsPalindrome(const string& str) { if (str.empty())...
View Articlenewbie question
I am currently trying to compile a simple c++ code exactly as the ebook states, but I get errors, and I woder why?. can you guys please help me?. the code consists on a three separate files...
View Articlechange font size more times
Hi, i'd like to change font size more times... in the constructor of my class, I create the font with a normal size. m_mytitlefont.CreateFont(....); After that, the program begin to start and the text...
View ArticleThe default constructor cannot be referenced error.
So I have my Rectangle class and Shape class. In shape class I wrote constructor and I got this error from VS "The default constructor cannot be referenced error". Here is my code: Code: class...
View Articlehelp hide icon and errors
Hello ,i have program and with IDA Pro i decompile it ,but now i need to not show icon in a tray ,what command i need to change for it? and one more i dont need program pop up any message or error at...
View ArticlePlease rate my code.
Hi im ph4n70m. I just started programming in c++ and this is my first code i wrote myself. Can you tell what im doing wrong and what am i doing right. Please someone tell me where i can learn to create...
View ArticleClass Constructor
Is my code correct for the following question? Write the interface (.h file) of a class Counter containing: * A data member counter of type int . * A constructor that accepts no arguments . * A...
View ArticleSearch for closest available date!
Hey everyone, I have been working on some code for about an hour and it has me extremely agitated at myself. It seems to insanely simple, but I just can't sort it out. I've been sick for the past week,...
View ArticleHelp with my Programm: Calculating sum of all natural Numbers 0-MAX
So I'm supposed to Calculate the sum of all natural Numbers from 0 to MAX I am given a line of code which needs to be corrected so this is what I have so far: Code: #include <stdio.h> #define max...
View ArticleWhat is wrong with my code?
Hello i have been coding for about 3 days and i wrote this code. I it runs, it creates file on desktop, but it does not read from it.:confused: Thank you! Code: #include <iostream> #include...
View Articlemoving blocks left and right
This is a class project that I have to do, and I need help getting started. We were given these function calls, and these are the ones we have to use in the code. The point of this project to take in a...
View ArticleHow to run app background like service
Hello, This simple peace of code runs fine and executes notepad. How to run this sample in background as service any modification or ad something to this code. It should appear in task manager ->...
View ArticleHelp with looping [beginner]
I am trying to make a program that asks you to enter some names and I want that program to loop the same thing until you press "control", then I want it to stop and just output all the names you...
View ArticleInt/float compression algorithm for C++
Hi, I'm looking for an algorithm for compressing a large array of floats in memory. An example of such an array would be the following: Code: 5.27002 5.25617 5.25617 5.19152 5.19152 5.22103 4.09978...
View ArticleNumber of middle symbols
Hi there. I have a problem. I don't know how to count the number of the middle letters of the words in the sequence. I have to do it from a file and numbers counts as a word and any punctuation as a...
View ArticleIn seek of a copy of third-party ATL library for windows 7?
I am looking for an alternative of visual studio 2013's atl library, are there any good ones to recommend? I mainly use it for some low-end systems that still use visual studio 2010 as the development...
View Articlestructure and file
Hi there, I have to create a structure which includes student last name, his average mark and cipher whose first 2 letters indicates faculty in which student is studying.I have to read the data from a...
View Articlerand() not working
Hello, I'm just starting to learn C++ and I can't figure out why the rand() is not working here for the rect0 object. When I run the program, it doesn't randomly draw rect0 as I thought it would. It...
View ArticleI am not getting the expected result
in the part of this code I expect the variable precioFinal ( " precioFinal += costoFinal; " ) to acumulate all the costs of all the buyed items but instead of that it only returns the price of the last...
View Article