Beginners - June 2018 (Page 7)

Left and right manipulators
 
I'm trying to set up manipulators for Product description, Unit price, Quantity and Total but Unit price is not right under the shifted Product description. Als...
[6 replies] Last: Next question is... Why am I not getting a decimal layout like on Line... (by grider67)
by mim97
Stuck on calculations part
 
Question: Write a C++ program that inputs the amount of money, calculate how many toy eggs you can buy and calculate the remaining coupons. One egg ...
[7 replies] Last: Thankyou guys so much @dhayden and @jonnin , i get it now, much much a... (by mim97)
I got this question in the exam and i failed to solve it.
 
At my exam my first task was: Write a header for the following main() so it can count the edges of a graph. #include <iostream> #include <string> #i...
[1 reply] : Why does it look like that you fail on the same question every year? h... (by keskiverto)
changing the backgroud to white while certain part appear to be black, music does not play
 
How can i change the background in this code? I am doing an ASCII art of horse for my project. While i want to change the background color to white, some of the...
[4 replies] Last: sharon veronica I have also same problem, so i use as following: if yo... (by Abdullah Samo)
How to change the color of message box?
 
can we make the messagebox colorful? #include<windows.h> using namespace std; int main() { MessageBox(0,"THIS IS MESSAGE BOX","TITLE",0); return 0; } ...
[1 reply] : https://stackoverflow.com/questions/18745447/how-can-i-change-the-back... (by Flaze07)
What do you think about this code?
 
So I've recently written a code in which you have to input your password and confirm it and program checks if both passwords are correct :) Tell me if I could h...
[5 replies] Last: You are right Manga, there is no real need for a function to compare ... (by Thomas1965)
Please help me to make some shorting program from this source code
 
Through this program I want to make a sorting, but can not. Someone can help me? Thanks int main() { int menu; int plat=-1,x,y; int n; ...
[no replies]
by mim97
I got this question in the exam and i couldn't figure out the correct way to solve it
 
//input two integers a and b. find out small and big values between a and b. //Example if a is 12 and b is 5 then small will be b and big will be a. //Use a l...
[6 replies] Last: Ah, a more eloquent version of my start equation. Nice. (by Ganado)
how to import the image in c++ programme?
 
I want to insert an Image in my C++ program, so How can I insert? I couldn't found any tutorial about it...
[3 replies] Last: What is it that you really want to do with an image? How do you want ... (by H00G0)
I don't understand why my loop isn't working.
 
I'm attempting to have my if/ else statement search the import file for a name and continue to do so until the count hits 5. If the count does hit 5 then (**Thi...
[2 replies] Last: I want that to occur if the loop does not find a a matching item in th... (by ndnjames13)
by agusx
Problem with function C++
 
Hello I am writing code for a program that blocks words that I don't like in my program. For example, if I write "Oh hello there broccoli", where "broccol...
[3 replies] Last: #include <iostream> #include <vector> #include <string> #include <cct... (by lastchance)
by llll
Using built in move function gives segmentation fault while trying to make matrix using 2D vector
 
I am trying to make matrix from 2D vector, whenever I comment out the lines that call built in move functions I get segmentation fault,if I comment them out eve...
[11 replies] Last: @Keskiverto I am seriously confused about what could be the difference... (by llll)
Working w input
 
The program stops after quantity is entered? #include <iostream> #include <iomanip> using namespace std; int main() { float price; // price ...
[10 replies] Last: Thanks (by grider67)
about int to char casting, string and char*
 
Hello there, internet is full of these questions but any of them seems to fit my problem. It's been a week since I started programming again, being busy with ot...
[8 replies] Last: jonnin - I wanted to apologize for being a total d-bag to you. I'm sor... (by tpb)
by bkara
how to open file from user entered directory location
 
Hello, I would like to write a program that asks the user the location of a file. example of what the user would enter/input: C:\Users\Documents\Visual St...
[2 replies] Last: @hoogo can you help me in implementing the below hackerrank question -... (by ria1)
Many functions and choosing from a list
 
If i want to input a string and check for functions in a list that match the string what´s the best way of doing it? ^^ void getInput(){ std::string ...
[2 replies] Last: that looks pretty solid to me. It is easy to read, maintain, and does... (by jonnin)
by bkara
converting text file to CSV file
 
I am trying to convert a text file to a CSV file. here is the file I'm trying to convert: this txt file is meant to be converted in to a csv file ...
[7 replies] Last: can anyone please help to implement this question , link to the page i... (by ria1)
OpenGL black window
 
Hello, I am trying to use openGL to show a .obj model, with textures on a .tga file, let's assume for simplicity (and because i think that's not where the probl...
[2 replies] Last: I wanted to delete the last one... thought it was possible, I'm really... (by gatinha123)
nesting if loop help
 
hey guys im learning if loops online in a class and my teacher wants us to modify this table he has given us slightly to make it where its a multiplication tabl...
[2 replies] Last: for (int row = 1; row < 10; row++) { for (int col = 1; col < 10; ... (by Manga)
June 2018 Pages: 1... 56789... 19
  Archived months: [may2018] [jul2018]

This is an archived page. To post a new message, go to the current page.