Beginners - March 2019 (Page 8)

C Program Question
 
The smallest number in the array is 2, but for some reason my program is saying the smallest number ...
[6 replies] Last: @mysiarobin1987 I added in the swap in section e. #include <stdio.... (by whitenite1)
bitwise shift confusion
 
why they print differently, both in clang and vs c++ t1= 0000000000000001; 1 t2= 1111111111111111;...
[4 replies] Last: C++17: The value of E1 >> E2 is E1 right-shifted E2 bit positions. ...... (by JLBorges)
Program not swapping correctly
 
In part (e), 2 and 34 should be swapping places in the array but instead 5 and 34 are swapping. Any ...
[2 replies] Last: thank you so much lastchance for your patience! i got it now! (by mysiarobin1987)
by vysero
Help understand whats happening in this function
 
I need help to understand whats happening in this function: void trackDeviceIDs(uint8_t sourc...
[3 replies] Last: yes shifting zero has no effect. shifts multiply or divide by 2 per ... (by jonnin)
[Problem] Operator Overloading +
 
Write your question here. Dear C++ Community I have encountered a problem when trying to overload t...
[3 replies] Last: Thank you. I really appreciate all your help. (by NovaPrimeveera)
Code not reading in Array from .txt file?
 
I seem to be having a problem reading in an array from a .txt file. I am looking to use a binary sea...
[5 replies] Last: Hello EarlyProgrammer, Something that occurred to me while testing yo... (by Handy Andy)
by Alb13G
Having Problem With a Function. Need Assitance
 
Write your question here. I'm having a problem with the final function "orderTestAbs". The first 2 ...
[4 replies] Last: Thanks a lot salem c, appreciate it ! (by Alb13G)
Cant use 'auto' in my class.
 
Hello, I want to create auto lastDataSendTime = std::chrono::system_clock::now(); in my cla...
[5 replies] Last: If Misc::sendData is not a static member function you need to pass the... (by Peter87)
Complilation problem
 
Hello I have a problem: I have 4 files: AllOnesGA.cpp, Population.h, Individual.h, GeneticAlgorithm...
[1 reply] : ¿are we supposed to imagine your code? you didn't provide a prototyp... (by ne555)
flexible array member
 
Hello I have a problem: I have 4 files: AllOnesGA.cpp, Population.h, Individual.h, GeneticAlgorithm...
[4 replies] Last: who knows ISO C++ forbids flexible array member (by ne555)
by Delcho
Problem with lvalue
 
Can someone tell me why I get an error message using temporary as lvalue [-fpermissive] on k.back()....
[3 replies] Last: Here's a minimal program that also makes the same error message, in ca... (by Ganado)
by vysero
Accessing an array from a diffrent class.
 
If I create a function in one class that returns an array then, in general, how can I assign that re...
[1 reply] : Maybe you spelled versionVector wrong - check your capitalisation. Ma... (by salem c)
How to display rows of asterisk, incrementing or decrementing, with user input?
 
Full Disclosure this is a HW assignment. But I already turned it in last night so I'm sure I got a d...
[1 reply] : This should produce something interesting. for (int col=1; col... (by salem c)
Compilation problem
 
Hello I have a problem: I have 4 files: AllOnesGA.cpp, Population.h, Individual.h, GeneticAlgorithm...
[1 reply] : Maybe because it should be # include "Population.h" (by salem c)
Can I initialized variable only once in while loop ?
 
Hello guys , I would like to ask a simple question which is can I initialized variables only once in...
[1 reply] : As you can see that I have to initialized the variables multiple tim... (by AbstractionAnon)
Dynamic Array Initialization
 
Hi, I believe I'm having an error with initializing my dynamic array -data-. I'm not 100%, but the ...
[3 replies] Last: to clarify new int {} initialise all the elements to 0 new int (n... (by ne555)
"Segmentation fault (core dumped)" Error (1,2)
 
-------------------------------------------- Please check the most recent comments for the latest...
[20 replies] Last: Does sort() use < so it is checking the struct object contents and fi... (by coder777)
Doubt in Abstract Data Type list
 
Hi, I just started learning c++, in my classroom the teacher wrote code of static list using class ...
[2 replies] Last: Thank you ne555, it is clear now with your explanation, yeah I should ... (by sme89saulito)
unique_ptr , how to create and use
 
Thanks JL but stillI am stuck in this Insert function at the marked line. Node* LinkedList::ins...
[8 replies] Last: Solved: Node* LinkedList::insert(Node* pos, const std::string& value)... (by olefredrik)
Unable to add watch on a class variable
 
I have a string array data declared as a private variable in my class header file and being used in...
[10 replies] Last: Also, just be clear: Note that char is a type of int (just smaller ran... (by Ganado)
March 2019 Pages: 1... 678910... 25
  Archived months: [feb2019] [apr2019]

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