Beginners (Page 2)

by BB0404
Code not going off of user input
Hi, in my code I ask the user to input 2 different values, and have if statements set up based on wh...
[3 replies] Last: Hello BB0404, Did you learn anything from my other post? http://www.c... (by Handy Andy)
by jnacke
The # of Character jumps doesn't affect the result
Write your question here. #include <iostream> #include <iomanip> #include <string> using names...
[4 replies] Last: You don't need to change the word . You may output it directly letter... (by coder777)
by ebz
UDP Socket recvfrom fails to receive packet in non-block mode, but when off it works perfectly
I don't have the slightest idea why my UDP server is able to receive packets while the socket's non-...
[3 replies] Last: That code, if it works, will spin, i.e. it will keep going around in a... (by kbw)
by Grime
Why can't variable names be larger than 31/63 characters?
"only the first 31/63 characters of a variable name are significant". Why specifically this numbe...
[10 replies] Last: Thanks people (by Grime)
Merge Sort - how to declare a temp Array for 1000000 number
So I need to sort a 1000000 random numbers. How do I declare a new array to hold the sorted value? t...
[12 replies] Last: > Ok So I think I finally understand the problem. > So I need arr2 to ... (by ne555)
by ebz
Failing to open a text file on Linux but on Windows it works
I'm trying to open a text file and it's opening perfectly on Windows, but on Linux I'm getting a "No...
[4 replies] Last: Excellent! Thanks ne555, that did the trick! (by ebz)
by BB0404
Not allowing a user to input data
Hi, I am trying to create a program that a user types in their filing status, then types in their in...
[1 reply] : Hello BB0404, PLEASE ALWAYS USE CODE TAGS (the <> formatting button... (by Handy Andy)
Link List - Error
I've been trying to figure out this error on this program, with no luck thus far. The variable 'Node...
[10 replies] Last: dhayden, thank you again for the explanations. That is a really neat w... (by CodeNovice01)
Passing an object's' method into a method of another object?
Hi, I'm wondering if its possible to do something in C++ which I'll show with the example below: ...
[3 replies] Last: > cout << school(james.getName()); ┬┐what's that supposed to print? ... (by ne555)
by Mif
How to make data from a file work as a menu in "C" ?
Hi again.. I know its sounds crazy, but I explain what I meant in a few words. So let's say the wa...
[6 replies] Last: Nothing I said should discourage you. C is a great language, widely ... (by jonnin)
Creating related objects
Hello everyone, how u guys doing? Im doing nice, but have some, maybe noob, good question about C++!...
[14 replies] Last: i did it! Thanks guys for your time! (by programwer99)
Container for a templated class
Hi Suppose I have a templated class like this: template <typename T> class MyTemplate { ...
[3 replies] Last: @dhayden - i've already explained the problem. what is the best way to... (by rozick1)
How do i read the contents into an integer array from my file?
Hello, i'm pretty new to programming and know how to use arrays a little bit, but now i'm trying to ...
[5 replies] Last: C++20 has std::span() which makes passing 1-d arrays to functions so m... (by seeplus)
Trouble with overloading << operator
Hello, I am trying to get a better understanding of overloading operators because it is the topic...
[2 replies] Last: Ah..okay thanks. (by jessemicah98)
function-definition is not allowed here before '{'.
Line 28 & 58 are telling me a function-definition is not allowed here before '{'. New to programmin...
[3 replies] Last: Functions sit outside main in your setup otherwise they can only be us... (by againtry)
Help with an assignment
Hello I am new to c++ and have an assignment as follows: Write a program that contains 3 functio...
[1 reply] : Forget the function for a moment and just try cout'ing your name for a... (by againtry)
by Mif
Can a file be opened using a member of a struct ?
Can I open a file using a member of a struct like this: struct Info { int score; char n...
[18 replies] Last: Ahh ok ok understood, next time I will specify it. In the meantime ... (by Mif)
by Rlabee
Function call error
Hey all, I am writing a BMI calculation program, but i keep running into some problems. I cant ge...
[7 replies] Last: Hello Rlabee, The basic idea of the program looks good. You have the ... (by Handy Andy)
Rewrite while loop using for to read a txt file
If I want to use for() loop instead of a while()loop to read a file, do I count a total number of li...
[3 replies] Last: int n = (int)strlen(buffer) - 1; buffer = 0; The pr... (by dhayden)
C++ linker error? Won't compile in Xcode.
I had part of a polynomial multiplier program running in Xcode but after I added and deleted some co...
[9 replies] Last: Just one character after all: I forgot to remove an '&' that was in th... (by Dbreaker)
Pages: 1234... 18
  Archived months: [jul2020]

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