Beginners (Page 2)

Is there a way to represent an integer character?
 
I am currently creating a find function to locate a specific piece of data in a different lines. Usi...
[6 replies] Last: Tell us what you are trying to match (use examples) and we will write ... (by Duthomhas)
by yat89
random number and swap
 
Hi all. I'm c++ beginner. I had write codes to generate two random numbers then swap those, but I ca...
[14 replies] Last: Thank you so much JLBorges for your help. Really appreciated. Wishin... (by yat89)
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)
Cannot Read & Store Data From File
 
Please Note: This is for a homework assignment, however , the due date has already passed. I'm doin...
[6 replies] Last: > ‘readFile’ was not declared in this scope before you use a funct... (by ne555)
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)
Pages: 1234... 42
  Archived months: [jan2019]

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