Beginners (Page 33)

Storing items from file into array
Hey all, I'm trying to write a code that reads from a tsv file and prints the items, from the date ...
[1 reply] : I'm trying to write a code that reads from a tsv file You may want ... (by jlb)
[HELP] Sentinel Controlled Dynamic Array
Hello friends, someone help me please! Write a code to take integer input in 2 dynamic arrays as ...
[1 reply] : std::vector<int> v1, v2; int n; while(std::cin>>n and n not_eq centin... (by ne555)
reverse order
hello all, i'm suppose to give the output in reverse order. in the code below, is the regular order....
[no replies]
Tic-Tac-Toe source code explanation
Hello, I have been analyzing source code of the game called Tic-Tac-Toe and I can not understand one...
[1 reply] : http://www.... (by FurryGuy)
*.exe has stopped working
Hi, I am new to C++ coding. Wrote c++ code to calculate LCM of series of integers. Below is the co...
[6 replies] Last: The original does crash if you put in the same value twice, like {10,1... (by jonnin)
by Vinz24
add, average and reverse in 1 function
the codes run it is i want. But the problem is how to make the addition, average and reverse will be...
[10 replies] Last: Bah humbug, I just want numbers to show: int total {}; double avg {};... (by keskiverto)
Making a calendar
I am making a calendar that should just have some basic features. Like setting dates and checking sp...
[no replies]
How to continually add user defined amount of numbers?
I am writing a program that would have the user input the amount of rooms in their home along with t...
[3 replies] Last: No problem! To have the += in the other function you mentioned, this... (by Misenna)
No output from reading a simple string in
This simple code should output the name string but doesn't for some reason. The file its reading is ...
[3 replies] Last: You might want to try this: #include <fstream> using std::ifstream;... (by Misenna)
Code not reading array accurately
My program reads an id, math and English score from a file. the math is stored in math while Englis...
[3 replies] Last: Well, only the last check will be successful because you check in math... (by coder777)
by Millet
How do I return the smallest member of an array?
How do I return the smallest member of an array using an abstract function?
[2 replies] Last: std::min_element() It returns an iterator: just dereference it with *... (by lastchance)
Need help with a class assignment.
I was assigned to make a console app that when debugged should ask for a month then ask for a year t...
[4 replies] Last: int main() { int year; int month; cout << "Please enter a mont... (by EmmyScott)
Trouble with C++ Lab problem.. Please check my coding! Error in the output
Assignment details: ... I feel like I put som...
[3 replies] Last: somethings wrong Please read: (by mbozzi)
trying to get multiple inputs, program closes after one
Hello. I am a complete noob when it comes to C++. This is a homework question. Feel free to either t...
[3 replies] Last: Please provide a sample input that exhibits this problem, and the prog... (by mbozzi)
Having trouble formatting and inserting $ sign
Hey everybody! Im doing a project for my fundamentals of programming class and I'm almost done but I...
[4 replies] Last: Use a compiler/library that is not ancient, and enable support for C++... (by JLBorges)
defining bi-dimensional std::array
Hello everyone, I get this error with the below code : "too many initializers for ‘const std::...
[7 replies] Last: > Now I can initialize my bi_dataM member. Initialise it in the const... (by JLBorges)
Singly Linked List
Hi I need to make a singly linked list that displays in order the input from the user and displays N...
[1 reply] : do { if (data == 0) { cout << "NULL" << endl; ... (by Ganado)
by dubley
question about reference
Say at line 80 cin >> po; I enter 1, and then line 84 st.push(po) ; calls push and passes the argu...
[3 replies] Last: Thank you very much for your explanation. (by dubley)
getline function
I am using the getline function to read until the end of the line when the user enters a movie title...
[3 replies] Last: cin >> movieName; getline(cin, movieName); So the first sta... (by lastchance)
rand() always gives same number
I just started learning c++ and I was trying to recreate an old blackjack program I had made in high...
[3 replies] Last: Thanks so much! These were both very helpful! (by Nilwood)
Pages: 1... 3132333435... 48
  Archived months: [jan2018]

Cannot post in this page. To post a new message, go to the first page.