Beginners - June 2021 (Page 5)

by kollim
srand() working
 
Why does this generate the same random number each time ?? As far as I understand srand(time(0))...
[7 replies] Last: Hello kollim, This video is worth watching: https://channel9.msdn.co... (by Handy Andy)
reading register values from c++
 
Any ways of reading the register values while debugging . for example if i would like to put an cond...
[1 reply] : For the first question, kind of. If you mean to actually use a debugg... (by newbieg)
Confusion about variables
 
I'm doing something wrong. This is my teacher comment, what areas do I need to change? "You are pri...
[3 replies] Last: I'm so dumb, I see now. Thank you so much! (by BlueCOCO1)
Tools required to build a music player
 
Hi, I am a relative beginner in c++. I've covered my c++ fundamentals (loops,conditionals,STL,etc) ...
[2 replies] Last: A bit of research shows that playing mp3s is very cumbersome, and requ... (by devaatcpp)
Won't let me enter values
 
I know I did something wrong because I'm unable to enter values for the three questions to do the ca...
[4 replies] Last: I figured it out, I had to change the int to double since I had decima... (by BlueCOCO1)
Running Into Wall With Roman Numeral Calculator
 
Hello, can anybody help me conceptualize how to best move forward with this problem? I have a linked...
[3 replies] Last: string rn{}; cin >> rn; for(int i = 0; i < rn.length(); i++) { tota... (by jonnin)
Terminal g++ Compiler
 
Hi Can I have a question here?? I am a college student who is majoring in Computer Science. My codi...
[3 replies] Last: you can get a unix like command prompt using a program called cygwin. ... (by jonnin)
by sarvcr
First getline getting ignored
 
Hi! I'm coding an small program where I need the user to send strings, so I'm using the geline(cin,x...
[3 replies] Last: Hello sarvcr, getline(cin, frase); //<---- This line gets ignored . ... (by Handy Andy)
Usage of macros inside class header files
 
Hi, I was wondering if it is a good practice to have #define macros in a class .h file. For example,...
[3 replies] Last: Ok thank you! for now I will go with different implementations, it se... (by jcsb1994)
Ini Files using Visual studio C++ 2008
 
Hi guys Can you help please, I want to be able to read and write to a IniFile using Visual studi...
[4 replies] Last: Thanks You guys for your help. (by closed account Shp21hU5)
by sarvcr
Divide Strings into Char
 
Hi! For an assignment, I have to write a code that has several functions. One of them is counting th...
[5 replies] Last: char &c is a reference to each letter in turn. if you leave the & off... (by jonnin)
Problem with calling function from header file
 
I have a problem. I am trying to call a function that I have a prototype for in a header file and an...
[2 replies] Last: Thank you AbstractionAnon. (by BroBuilder)
Square made of *'s with a number inside
 
Ask the user for a single digit number. Store as int. Print a rectangle made of *'s with the numbe...
[5 replies] Last: Thank you so much! (by Notanormie)
Trying to read the file and tokenize each string to produce a bar chart
 
I have this .txt file. I want to extract each element that is separated by a space. For example, in ...
[2 replies] Last: Do you mean like this: #include <fstream> #include <string> #includ... (by seeplus)
Palindrome Stack and Queue
 
The idea of this assignment is to use both a stack and a queue to implement a palindrome-recognition...
[5 replies] Last: Re lastchance's second point. The while test in L77 could be: while... (by seeplus)
Bar chart help, no errors, won't run
 
Hey guys, me again. So I have to build a program where I have 4 cities, and the user inputs the popu...
[4 replies] Last: #include <iostream> #include <iomanip> #include <string> using namesp... (by lastchance)
varable in if statement
 
What am i doing wrong? I cannot get the discount_percent variable to apply inside of each if stateme...
[3 replies] Last: This can be simplified by moving the output code to after the discount... (by seeplus)
by L67GS
Advice
 
I'm pretty green yet(just over a year), and not certain what direction to go with my studies. Being ...
[4 replies] Last: I'm thinking microcontrollers, like PIC and AVR. So having spent the l... (by L67GS)
Need Looping Help Please
 
How can I do incorporate this in the current code I already wrote: If the user enters a negative num...
[5 replies] Last: std::ios_base::badbit is set in the stream's exception mask to indic... (by mbozzi)
While cicle and array
 
Hi guys, this program asks to input numbers between 0 and 5 and print the time a number occurred; an...
[9 replies] Last: thanks guys, I really appreciate it! (by Zhylian)
June 2021 Pages: 1... 34567... 9
  Archived months: [may2021] [jul2021]

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