Beginners - December 2018 (Page 20)

Socket Programming recv function
 
Hello, anyone familiar with Socket Programming how come I cannot do this on the client side ? the first time the recv function works but the second time it...
[1 reply] : How many bytes did you send? What did the first recv cout print? Not... (by salem c)
Files into arrays (1,2)
 
Hello everyone, I have a file which stores tickets information (Ticket number, ticket's holder id, ticket's holder name, ticket's holder phone number). Now ...
[37 replies] Last: all errors fixed. https://pastebin.com/Xrmc3iAc remember to set y... (by closed account SECMoG1T)
by S0urce
New programmer seeking advice.
 
Hello everyone! I am new here, also I have just been introduced to programming. I started programming 3 days ago and I've already spent around 30 hours reading...
[8 replies] Last: Visual Basic is a different programming language. Perhaps you meant V... (by S0urce)
by ashwyn
Populating Dynamic 2D Array
 
Hello. I am trying to create a 2D array, and I'm almost there but can't figure out the syntax/implementation for what I want to do. In my program I am accepti...
[6 replies] Last: delete board_ar; ¿does that even compile? I've already showed you... (by ne555)
How do I execute three separate functions in an array?
 
How do I go about changing this array so that there are three functions in it. The output is right but I need to write the code so that I am using function. Is ...
[5 replies] Last: indent your code. ¿what's the purpose of line 51? ¿are you sure that... (by ne555)
reference a vector of objects in another function.
 
I am trying to make a form program that will allow the user to edit a form in the vector that was made by the user. I cannot find any information on how to refe...
[5 replies] Last: > I needed to use Fvect.resize(n); to fill the vector with default obj... (by ne555)
Pass by value and pass by reference
 
I've recently been reading on pass by value and pass by reference, and I understand the difference between them, but I don't understand why they are used and wh...
[1 reply] : You have to understand that when you pass a variable to a function, yo... (by Satan)
Using functions
 
I've been trying to get my head around functions and came across this used as an example, i get everything up until it says return r - what does that do? ...
[1 reply] : Some functions (many of them) are used to generate some value. In this... (by Repeater)
while loop error
 
I am writing a programming tutorial program and I am having some difficulty with a while loop. For this loop, I want the final selection to proceed to the next ...
[2 replies] Last: Hello PermThesis, Note: It is most often better to post the whole cod... (by Handy Andy)
Casting for template function to work.
 
I'm having issues understanding what's the difference between this two implementations of tripleVal? Why do I need to add the return casting to call the firs...
[1 reply] : > Why do I need to add the return casting to call the first function? ... (by JLBorges)
Help with array
 
Hello i'm new here and i'm beginner in programming. I hope that someone will help me. I need to deduce the initial indexes of all (positive and negative) number...
[7 replies] Last: https://imgur.com/ClNZ1qF This is how program works. I'm getting posit... (by Blacksaliami1)
password verification code review
 
Hello I coding a password verification in my programming class but when executed it fails to recognize a valid password. The requirements for the password are t...
[2 replies] Last: Thank you so much, the solution was right under my nose. now i know wh... (by PermThesis)
Sorting a file without loading it into RAM
 
Write your question here. If we allow to load file to RAM I can write code myself but we could have to little amount of RAM to load the file I think that...
[no replies]
'Invalid use of template-name 'std::iterator' without an argument list'
 
Hello. I am receiving an error about the way I prepare my function. Can anyone explain to me the correct syntax? Thanks. The error is at line 86. #include <io...
[1 reply] : Change line 86 to typename ring<T>::iterator& ring<T>::iterator::op... (by mbozzi)
How to fix non-terminating loop?
 
Hi guys, I am continuing to work on my refresher project for my entry level C++ software engineer interview. I have ran into another snag however. I am creat...
[1 reply] : repeat if c is not either of {1,2,3} , you need && instead of || whi... (by closed account SECMoG1T)
by ks2018
difference between "list" and "list()" in the below code ?
 
Hi What is the difference between "list" and "list()" in the below code ? #include <iostream> #include "mycpp_linklist_class_01.h" using namespace...
[3 replies] Last: thanks (by ks2018)
The following code gives error.when you pass maps through function.and run loop over it.Kindly help
 
Write your question here. The following code gives error.when you pass maps through function.and run loop over it.Kindly help. #include<iostream> #include<...
[1 reply] : You probably would've got help earlier if you used code tags and space... (by tpb)
how to prevent memory leek
 
how would you prevent memory leek in this situation : int * ReturnPointer2() { int * ptr = new int(3); return ptr; }
[3 replies] Last: how would you prevent memory leak in this situation 1. By not using ... (by closed account E0p9LyTq)
C++ Project - Do not even know where to start
 
DESCRIPTION: A standard but complex problem in civil engineering and mechanics is to determine how tall a mast can be before it will begin to buckle under its ...
[9 replies] Last: [quote=helpcpp]for the purpose of this project, I have to use arrays a... (by lastchance)
Need help with compiling RtMidi program
 
First off, my introduction. I will post it here, so that you know where I am coming from. Hopefully this is the last time I will have to tell this sorry story...
[15 replies] Last: i'll test it on a linux machine, 'i'll get back to you. have any othe... (by closed account SECMoG1T)
December 2018 Pages: 1... 1819202122
  Archived months: [nov2018] [jan2019]

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