
please wait
by dakotad8218
Counting vowels from input stream
|
Hi, trying to write a helper function to count the amount of each vowel present in a given text file. This is a textbook exercise, not homework; just trying to... |
Jun 4, 2020 at 2:29am
[4 replies] Last: Yep, I tried adding ch = tolower(ch); and that did the trick! Thank... (by dakotad8218)
|
by FoaaD2506
main menu and sub menu
|
Hey. I'm trying to have two menu's in this program,a main menu and multiple sub menu's.. but the thing is i'm trying to fit in a "return to the main menu" optio... |
Jun 3, 2020 at 8:00pm
[6 replies] Last: Hello FoaaD2506, Going over your program. Some things I have changed:... (by Handy Andy)
|
by jamesfarrow
Cards Decks and classes
|
I am struggling with getting my playing cards classes to work as I would like. I can create 52 cards and then put them into a deck, shuffle the deck. However I ... |
Jun 3, 2020 at 7:22pm
[9 replies] Last: @jamesfarrow I see you have addopted 2 approaches in your code, one fr... (by malibor)
|
by tetsuuuu
Infinite loop
|
I want to get an user input as age and add 100 to it and print out how old they will be every year. My code below does this, but is an infinite loop and does no... |
Jun 3, 2020 at 6:33pm
[6 replies] Last: ^^^ Note that any loop can do anything. Its the one that is most rea... (by jonnin)
|
by rhap123
How do I update the data without using void/struct
|
Im having problem on how to update the data in .txt file without using void() from the beginning. Just need a simple code is enough. |
Jun 3, 2020 at 4:34pm
[3 replies] Last: The thing that's hard to understand about files is that when you want ... (by dhayden)
|
by FoaaD2506
print function for array
|
hello,I have this program which reads elements from the user for an array of . and i made functions to enter elements and find max and find min element. i'm t... |
Jun 3, 2020 at 9:09am
[8 replies] Last: oh it was that easy lol i'm sorry, i was having an error about calling... (by FoaaD2506)
|
by Magplusplus
To Write data in a spectic format
|
Hello guys am working on a c++ project that search for Student id in the source file,if a match is found it writes to the output file after the search those we... |
Jun 3, 2020 at 6:21am
[4 replies] Last: Thanks Andy...........i will research more on std::setw() it might wo... (by Magplusplus)
|
Bubble Sort |
Hi all! I'm working on a project with a couple of my buddies. We are almost done with the code for our project. However, we noticed that there is a problem with... |
Jun 3, 2020 at 2:31am
[2 replies] Last: Andy's right. Your bubble sort needs to be something like this: enu... (by dutch)
|
by rhap123
Stuck at do while loop
|
I am currently having trouble on doing the do while loop. I am not sure why since I have been following the tutorial. I have manage to loop the menu b4 the sw... |
Jun 3, 2020 at 12:20am
[9 replies] Last: Hello rhap123, Watch your indenting it is terrible. do { std::... (by Handy Andy)
|
by confundido
C++ Algorithm to Copy a BST (except the largest data-member) Recursively
|
I am trying to figure out a bunch of practice problems involving Binary Search Trees and recursion. A lot of them are like "Copy an entire BST except..." and th... |
Jun 3, 2020 at 12:18am
[5 replies] Last: Thank you for the assistance. I ended up going with a less efficient s... (by confundido)
|
by FairMeaty
cin to read end of file char
|
As I am going through Programming Principels and Practices using C++, it says for a string, >>reads whitespace-separated words. ....terminate the loop by giving... |
Jun 2, 2020 at 3:57pm
[2 replies] Last: @jlb, you've got that backwrds. Nix is Ctrl-D, Windows is Ctrl-Z. The... (by dutch)
|
by medosz
prime numbers 1-100
|
I am trying to write a program to print the prime numbers between 1 and 100. Obviusly I am trying with the wrong logic but I can not find the way to fix it. Cou... |
Jun 2, 2020 at 12:49pm
[6 replies] Last: Something like this would be best done using templates and recursive ... (by jonnin)
|
by Shervan360
Send array of char to a function
|
Hello, what is the difference between these? (W and &W in line 15) When I use &W output is wrong. Thanks #include <iostream> #include <string> using name... |
Jun 2, 2020 at 12:32pm
[1 reply] : Well Palindrome(W); is the same as Palindrome(&W ); In the forme... (by salem c)
|
by FoaaD2506
OR not working with char
|
Write your question here. when i try to put or in between characters the whole while statement doesn't work.. why? what do i have to change ? while(choic... |
Jun 2, 2020 at 11:14am
[4 replies] Last: thank you (by FoaaD2506)
|
by lost110
Confusion in a question!
|
I am not getting the third point. 3. The resistance of each of the wires 2 through n – 1. Should I just take resistance from the user because I am not getti... |
Jun 2, 2020 at 2:17am
[9 replies] Last: The 'loop law' is Kirchoff's Second Law and refers to voltages around ... (by againtry)
|
by mnnsa
reading file line by line
|
my code is not able to read files line by line , i am not bale to figure out whats wrong pls help #include <iostream> #include <iomanip> #include <fst... |
Jun 1, 2020 at 7:54pm
[13 replies] Last: Hello mnnsa, My question would be. Do you need to get the file names ... (by Handy Andy)
|
by Tomi
Problem with image drawing
|
Hello! I try to draw a .BMP image in my code, but something is wrong with it: although the program itself can run, but it doesn't draw the image. (I wrote com... |
Jun 1, 2020 at 7:09pm
[8 replies] Last: > "not declared in this scope" This is not a linker error. Did you #... (by mbozzi)
|
by rock33
undefined reference to with constructor
|
Hi Community, i try make a disjointsets with rank, when i compile the files, i have this error: main.cpp:6: undefined reference to `disjointset::disjoint... |
Jun 1, 2020 at 3:09pm
[3 replies] Last: What's the problem? (by MikeyBoy)
|
by espcplusplus
verify input data
|
hello everyone, I have a problem with a program I am trying to do in c ++ with visual studio 2019. I have an int input variable that must be a number to m... |
Jun 1, 2020 at 3:03pm
[5 replies] Last: Hello espcplusplus, I can only comment on the code that you post. Whe... (by Handy Andy)
|
by medosz
yes or no option in the loop
|
This is a simple guess the number program. I am trying to put an option that asks the user "Would you like to play again? (y or n). If the user press the y it s... |
Jun 1, 2020 at 2:29pm
[1 reply] : return in main ends the program. it that is a zero, it is normal exec... (by jonnin)
|