Beginners (Page 2)

whats wrong with my code? long int n,q,k,x,prev=-1,arr ={0},last=400000,fi...
[5 replies] Last: here's a testcase 5 11 5 1 1 0 1 1 ?!?!?!?!?!? 2 3 4 4 3 2 however, y... (by ne555)
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...
[5 replies] Last: As you said you want to maintain the order of the words and just chang... (by divya123divya)
Student Grade input.txt file red underline
Write your question here. Hi Using Visual Studio for a C++ homework Ch 9 PE 2 Malik. I can't see h...
[1 reply] : Change bool openInputFile(ifstream& inputfile,char filename ); void... (by Repeater)
Help pls with this task. Input a string and output ANSI-codes of digits in this string
[9 replies] Last: @Nwb, You confused a "string literal" with a "char" - therein lies the... (by lastchance)
lines and data
So for my coin sorter program, I have to read lines of data from a file. Most lines have four values...
[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 fai...
[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 u...
[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 allocat...
[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 wor...
[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...
[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 a...
[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 ...
[5 replies] Last: i take the code from vmansuria i hope he alllows me to copy #include ... (by veysel)
by Kate5
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 ...
[5 replies] Last: i will search the vector it will be my homework and i will do it to le... (by veysel)
Why is wrong with this code? a = 2*a[j+1]; Here is the question An array of int na...
[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 w...
[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 ba...
[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...
[3 replies] Last: Are you sure you want a "circular" linked list? They aren't really tha... (by tpb)
I have this code that works good, but I am wondering if I can use !input.eof() function in this case...
[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 quest...
[1 reply] : Are you a beginner programmer, or just new to C++? It's easier to fi... (by mbozzi)
Pages: 1234... 39
  Archived months: [sep2018]

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