Beginners (Page 4)

Holding NUL char
Hello again guys So what I'm trying to achieve is next: - Read file for certain number of bytes ...
[1 reply] : strlen reads the string until it reaches null. You should put the siz... (by poteto)
by DellXT
Compiler errors
I've downloaded coniow files and the compiler still shows some errors in the code. I guess it's abou...
[2 replies] Last: Hello DellXT, I did get the program to run to a point. The first scre... (by Handy Andy)
How do I get the rows and colums to show specific values (not part of calculation)
Hi guys! New to the forums here. I am working on a C++ project and have been stuck on two parts: ...
[3 replies] Last: Awesome. Thank you Handy Andy and JLBorges. This has been very helpful... (by abeabukwaik)
Fibonacci number
Write a program that will display the nth Fibonacci number. Create a function that will generate the...
[17 replies] Last: Agreed: recursion takes for ever here. I think there are quite big - a... (by lastchance)
Declared variable in header file causes a C4430 error
I have a header file called "Engine.h", and a cpp file "Engine.cpp", i declare a variable that is ty...
[5 replies] Last: Fixed it, both of your solutions work, thanks. (by Misleader)
by nearc
Doubly linked list question
Can someone explain this part to me? 1. double_llist() { start = NULL; ...
[4 replies] Last: The loop at lines 135 and 136 moves s down until it points to the last... (by dhayden)
ATM program set assignment
Please post ATM.h. Also, please edit your post and add code tags to the code. Just highlight the ...
[2 replies] Last: Do not erase your posts. Now others cannot learn from your mistakes. T... (by keskiverto)
Write a program that displays a subject summary
Write a program that displays a subject summary. Use an object to get the summary of the subject. ...
[3 replies] Last: See: The member ... (by JLBorges)
my Computer science assignment
.Welcome to Sally's One Stop Tile Shop! Sally's One Stop Tile Shop specializes in tiles imported fr...
[2 replies] Last: Hello pops9432, I have loaded your program and made some changes beca... (by Handy Andy)
So I have a function called parseDOB, DOB meaning date of birth that extracts each part of a date of...
[1 reply] : std::string ATM::month_string() const { static std::string month_... (by JLBorges)
by mJueL
Help with class, std::cin and random number generator
I am to stupid :) I would like to give the class a "seed" which it use for the random number genera...
[4 replies] Last: Thank you so much, dhayden :) (by mJueL)
Need help fixing my loops!
My while loop (in the middle) and do loop (the very end) don't seem to be working right can anyone g...
[3 replies] Last: Thanks for the advice and you're exactly right this is an assignment f... (by daltonphelps0)
debug assertion failed
Trying to print 10 random sentences. Sometimes it works and sometimes i get this debug assertion ...
[2 replies] Last: Your for loop is wrong. 1 < 10 will always be true. main should return... (by Thomas1965)
poninter to member error
What's wrong with that? #include <iostream> struct Foo { Foo(int val = 9) : ptr(new int(v...
[3 replies] Last: #include <iostream> struct Foo { Foo(int val = 9) : ptr(new int(v... (by Repeater)
Simple access violation example.
Hello everyone, I'm not a complete beginner in computers but I took a long break from them due ...
[4 replies] Last: The code above is just a simple example to understand pointers further... (by jpm2mpj)
Sieve of Eratosthenes Twin Prime Numbers
Hello, I'm trying to print the number of twin prime pairs from the prime numbers that are calculated...
[9 replies] Last: I figured it out keskiverto . Thank you so much! (by AbleMotionz)
Using Variables in Classes
The error says error: invalid conversion from 'const char*' to 'char' [-fpermissive] bryansObject...
[3 replies] Last: as what my friend told me, string was used before c++ was updated rec... (by dhayden)
by DellXT
Please, explain the code
The main body is especially unclear.
[6 replies] Last: Thank You. (by DellXT)
Using for loop to add sum of numbers over two intervals
I'm having trouble adding up the sum over two values. My assignment is to prompt the user for 1 inte...
[10 replies] Last: As for the += sign... it is just shorthand. int a=1; int b=2; b += ... (by Manga)
How do I accept multiple numbers
Write a program that will accept a short value from 10 to 99 and display them per digit (separated b...
[5 replies] Last: I've done it. Thank you! (by goldwinbryanr)
Pages: 123456... 32
  Archived months: [jul2018]

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