Beginners - November 2018 (Page 15)

how to learn c plus as a beginner
 
hey my name is john i want to learn cplus but i am not able to learn becuase i can't authentic method to learn now i am a digital marketer and doing seo https:...
[1 reply] : See https://isocpp.org/get-started and https://isocpp.org/wiki/faq/how... (by JLBorges)
Reverse string
 
I need to reverse a string input wether it is one word or a sentence, but if it is a sentence I need to keep the order of the words in the sentence the same jus...
[5 replies] Last: As you said you want to maintain the order of the words and just chang... (by divya123divya)
lines and data
 
So for my coin sorter program, I have to read lines of data from a file. Most lines have four values (the first two are ints and the last two are strings), howe...
[3 replies] Last: The istringstream . Read a line from file. Then read from that line v... (by keskiverto)
Count Vowels in a String
 
The goal is to display the number of vowels in any string, the debugger runs fine but the output fails to count the vowels, I'm pretty sure it's something to do...
[2 replies] Last: Oh my god I'm so stupid copy and paste :) thanks (by DKDKDKDK22222222)
Registering Word Count with String Arrays
 
Hi! I'm having a bit of trouble with one of my coding projects for school! I need to 1. allow the user to enter a sentence and then 2. count how many words are...
[2 replies] Last: This is a huge life saver! Thank you so much for your help! (by jmitchell367)
by Tduck
How to declare memory on the heap?
 
I don't know if I have misinterpreted information or something but I thought using new would allocate dynamic memory that must be forcefully deallocated rather ...
[9 replies] Last: declares pointer with no address or value It does have a definite va... (by tpb)
Someone to help me please wiht an appointment progmram.
 
Hello Everyone! I am trying to make an appointment program , and i make it 6 times, but doesn't work every time :( Here is my code, please... #include <ios...
[11 replies] Last: Hello Andy! I will take your advice. And i am starting a new rrogram r... (by Asteris)
My first DP problem
 
Hi. I solved my first dynamic problem but my answer is coming as wrong on online judge. For the test cases, the output is correct. Question link- https://ww...
[4 replies] Last: You're right. I wasn't paying attention. I was adding the total value ... (by tpb)
by MrMode
Returning string value
 
Hello, I need help with this little program I am making for the excersise, I am trying to check if account.txt file exist in my project folder, using FindingAcc...
[2 replies] Last: Thanks, it helped a alot (by MrMode)
I don't understand how to return a string from a function
 
I needed to create a program that would make the first letter of every word uppercase and I think I got that part but I still don't understand how I would retur...
[5 replies] Last: i take the code from vmansuria i hope he alllows me to copy #include... (by veysel)
by Kate5
Explanation
 
Can someone please explain to me what is sum=0 and product=1 in an exercise of c++
[1 reply] : sum is a "variable". It stores a value. You create a variable (in t... (by Repeater)
by veysel
dynamic array with depends on user entry value
 
hi everyone, i am new cpp forum my question is : int a; cin>>a; int array ; is this proper assignment ?
[5 replies] Last: i will search the vector it will be my homework and i will do it to le... (by veysel)
Array?
 
Why is wrong with this code? a = 2*a[j+1]; Here is the question An array of int named a that contains exactly five elements has already been d...
[2 replies] Last: [quote=bigfern]Why is wrong with this code? Nothing. (Provided the v... (by lastchance)
read multiple values from file with fstream
 
Our C++ professor left us an assigment where we need to calculate the avearage grade of 5 students which data is stored in a .txt file. i.e Consider the foll...
[5 replies] Last: i need to open a file were the student grades are My program reads f... (by dhayden)
ofstream from string
 
Help (please)- I need 2 output files 1- Named "out.txt" to write output data (done) 2- Named based on a string file name read from a fie. For example, in ...
[2 replies] Last: cout saveName to the console to see if it's being read correctly. If ... (by tpb)
by Tduck
What does new do with regards to circular linked lists and nodes?
 
I don't understand exactly what new does. This question was sparked after I was told using a vector for nodes didn't work, and I looked at other circularLinked...
[3 replies] Last: Are you sure you want a "circular" linked list? They aren't really tha... (by tpb)
regarding
 
I have this code that works good, but I am wondering if I can use !input.eof() function in this case instead of while(input).. The data in the text file is: A...
[1 reply] : What do you expect to gain? Actually, input can fail for other reasons... (by tpb)
Need book recommendations
 
Google gave me a couple good things, the Stroustrup book I'll probably look at first. The question that I can't google is am I buying a book right at the e...
[1 reply] : Are you a beginner programmer, or just new to C++? It's easier to fi... (by mbozzi)
Help réferences fonctionf()=x;
 
Je voudrais connaitre le cheminement point par point de ce programme,en praticulier le process int &alterne. Merci d'avance pour votre aide. #include <iostream...
[2 replies] Last: Thank you very much keskiverto (by Gerald94310)
by Drac0
Inputting File information into a array
 
i am writing a program to open 2 files that the user inputs, One will have names of shapes and the other will have the perimeter and area for the corresponding ...
[7 replies] Last: Okay so i changed my code up a bit and made it neater like you said an... (by Drac0)
November 2018 Pages: 1... 1314151617... 24
  Archived months: [oct2018] [dec2018]

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