Beginners (Page 44)

copy elemnt in buffer
a program who copy just length of data which i need for example: data = b\nh\ne\nlength 45\n i need...
[1 reply] : I have no idea what you ask. Can you explain with more detail? (by keskiverto)
Can't modify array with pointer
Why line 8 (marked with comment) doesn't change array? #include <iostream> using namespace st...
[2 replies] Last: Holy cow, I'm sory, my mistake - don't catch this assignment. Thanks a... (by GoForBroke)
what(): std::bad_alloc error, what is that?
So, how can I fix this error? Here's my code: note that sizes =1239 and it's from a vector of o...
[1 reply] : Duplicate of . DON'T c... (by MikeyBoy)
Nested Loops Help
My code is supposed to allow you to input all the inches of rain for the year, then adds them up at ...
[3 replies] Last: holy crap i got it. i had the inputRainAmount as an int and was typing... (by LordOfPens)
by Tduck
Why am I getting a segfault?
My current assignment tasks me with using fstream, which I now finally understand to an extent, but ...
[3 replies] Last: Why is my code starting at line 10? ??? Please explain. Yes, your ... (by keskiverto)
by Verti
I need help with a project.
I'm currently taking an intro to computer science course in college and I'm having a lot of trouble ...
[2 replies] Last: You basically read from a (text)file like you read from std::cin using... (by Thomas1965)
calling function from class
Im trying to call a bool function called birth(int x, int d, int &v) in main. the function is in a c...
[1 reply] : not much info is available from your code, what errors are you getting... (by Yolanda)
char/string ambiguity causing crash?
I'm getting an odd crash whenever I close my program that seems to be caused by a string not de-allo...
[6 replies] Last: You haven't actually checked if your input is correct. I tested it and... (by poteto)
My program give me errors What is w
int main() { int fahrenheit; celsius; cout << "Please enter a temperature in Fahrenheit: "; ...
[1 reply] : #include <iostream> #include <iomanip> int main() { double fahre... (by JLBorges)
Need help with reading a text file and displaying it.
My objective is to read a text file that looks like this, 3450, Guido VanRossum, 10, 15, 14, 18, ...
[3 replies] Last: I see, Thanks for the help! (by Awsom3Alan3)
Hello. I am recently new to C++ and I was wondering what "const" does, and when I should use it. Tha...
[2 replies] Last: When you declare something const, the compiler will enforce that promi... (by keskiverto)
Best selling items program
Hi i am writing a program that will read a sales.txt file and output the top 2 items sold and their ...
[3 replies] Last: Im also having trouble with getting the first and second products high... (by Usm6rn)
explain fragment of code
can someone explain how this code ends up with i = 5 i just dont see it. Ive tried messing around ...
[2 replies] Last: Hello COOGSHOUSE713, the expression i / 5 evaluate to an integer becau... (by mycuser)
by Kiryu
Why does my exception skip the catch block and just terminates the program?
Considering the following int main() { try{ GLShader shader(); }catch(...){...
[16 replies] Last: Taking a brief look at your code I noticed a memory leak, not gonna te... (by poteto)
Scope problems
I'm new to c ++, and I'm still new to vectors. When I compile the code below the following message a...
[5 replies] Last: If you need to use your congresso object in the enchevotos() funct... (by MikeyBoy)
by Pedahj
I want my account back -goldwinbryanr
Admin please do not ignore I accidentally closed my account..
[3 replies] Last: You appear to have a new working account. You could always continue wi... (by lastchance)
by Tduck
Need help fixing my converter
This is a roman numeral to integer conversion program; I've been desparately trying to fix this prog...
[12 replies] Last: Ah, I didn't know its name :) I use it of course. (by jonnin)
Hi so i need a little help with my program, because i need to put two numbers and choose my operand ...
[1 reply] : char d = 'y'; do { ... cin >> d; } while(d == 'y'); (by jonnin)
School Question - Looping
So learning looping. The question is "Write a program using a do while loop that shows output from 1...
[2 replies] Last: If the hint is not part of the actual requirement, this is also valid.... (by Ganado)
Having trouble reading from a file
I am writing a program for a class. I am supposed to write a text file holding some numbers in it. T...
[5 replies] Last: Hello Tipper199, Sorry for the delay. My laptop has been acting up an... (by Handy Andy)
Pages: 1... 42434445
  Archived months: [sep2018]

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