Beginners - January 2017 (Page 10)

finding biggest and smallest values in array
 
hi guys I wrote some code to find the smallest and biggest values in an array the smallest function does just that it finds the smallest number and I've tested ...
[15 replies] Last: thanks guys much appreciated for all the help (by adam2016)
C++ Showing Data Results MySQL
 
So right now i am currently trying to make a search function! this is a picture of my current Application https://gyazo.com/38de0c30ba87e7c30fe6b7410a761c0d As ...
[4 replies] Last: For example, if your table has a field called user_name you can access... (by Thomas1965)
Class declaration
 
I'm studying class and I dont understand why the scope resolution operator is needed in this code. float v was declared inside the class so then why is A::v nee...
[2 replies] Last: float set(float v) { A::v += 1.0;// line not understand return ... (by integralfx)
Arrays and structs for memory usage and leaks
 
This is a logical question. #include <iostream> #include <string> #include <cassert> // What is this header used for ? // Imagine building th...
[9 replies] Last: I see, ok. ok so creating the array of struct and the array of object... (by Kourosh23)
Selection Sort Function Not Working
 
I am inputting info into my array from a .dat file. I can see the unsort info from the file. When it is time for the selectionSort function to actually sort the...
[no replies]
Changing data using pointer parameters
 
I have a function declared as bool handshake(uint64_t slaveAddress, unsigned long* timeData , char* testData, char* testNumb...
[2 replies] Last: I am programming for Arduino so some calls to library functions may lo... (by vagulus)
learning about C++
 
hi i am a beginner and we just started learning about pointers, and my question is "Why pointers are important and what are the precautions that I should keep i...
[2 replies] Last: Why pointers are important Why are array indices important? Pointe... (by mbozzi)
Does not read 0
 
Hello! The program doesn't seem to like setting the input variable to 0. With any other number, the the program displays the number inputted before and after ch...
[4 replies] Last: OP: if you're trying to make some variant of your program work instead... (by gunnerfunner)
by l7042
Number Triangle question
 
I received this problem from my teacher, could someone help me with it? Number Triangle - Print the following pattern, using horizontal tabs to separate numbe...
[4 replies] Last: thanks got it. (by l7042)
while loop does not end
 
Hi. Why does my while loop never end? Even if I enter 0 , it still lets me enter. The program should end, when I at least type one time 0 (either in "food", or ...
[8 replies] Last: Thank you all :) (by snekus001)
started learning void function, got a problem
 
Hi, i'm new to programming, just started 3 months ago, and I got an issue here. Sounds like an easy task, but I just can not find how to fix this program so it ...
[15 replies] Last: Wow, thanks a million! :) (by snekus001)
by Mahmgl
Condition never true
 
This is a piece of a simple Tic Tac Toe program... The problem is that in the main menu function whenever else condition is true the program doesn't quit. (It ...
[7 replies] Last: That worked thanks very much! (by Mahmgl)
Deal or No Deal with arrays
 
I have a homework assignment and I feel like half way done with it but it does not run properly. here is assignment txt: /**********************************...
[3 replies] Last: Good point! Thank you so much for your help! fixed it this way #... (by amayakichi)
What is mean of #name ?
 
I saw some codes using macro definition to define a function alais. But I don't understand why it put "#" before argument like this : #define RegisterTc...
[3 replies] Last: You can pass almost anything as argument to a macro, not just variable... (by Peter87)
C++ SQLI Vulnerabilities?
 
So i am creating this program kinda as a self enjoyment and learning experience so this is not necessary but later on if i have to apply this to a real world pr...
[1 reply] : One way to prevent SQL injection is to use the MySqlCommand.Parameters... (by Thomas1965)
Point of Sale Program
 
This program works just fine when I enter "b" as "entree", but it loops back to the opening statement when I enter "hd". When I enter "ff" after I've typed "b",...
[3 replies] Last: I edited it. Now it's #include <iostream> using namespace std; int ... (by JarrodBaniqued)
by NateE
Calculate Area of Circle, Square, Rectangle Using Headers Files
 
I added the shape Rectangle to my code that was previously working correctly. Now I am receiving errors ||=== Build: Debug in Final Area (compiler: GNU GCC C...
[5 replies] Last: Shape in this case needs to be an abstract class with no implementatio... (by kevinkjt2000)
Create book Function
 
I keep getting an "Expected Primary Expression before '>' token " in this line: cin.ignore(numeric_limits<streamsize>::max(),'\n'); and i'm not sure how to fi...
[4 replies] Last: Oh yup just forgot a #include, its working now, thanks (by Harvestmoon)
by Kyrobi
Prevent "'Sigkill' to stop program
 
Hello everyone! So I have been learning C++ for about 5~ weeks now or so, and I have created some simple programs such as a math problem generator. http:/...
[1 reply] : No, you cannot prevent SIGKILL from killing your program. See: https:... (by mbozzi)
Subliminal messages
 
Hi guys, I'm learning about C++. I have an assignment but I have no idea how to write it. Is there any help? Thanks "Write a program which alternately pri...
[5 replies] Last: Please don't do homework assignments for people. People need to be gi... (by PanGalactic)
January 2017 Pages: 1... 89101112... 24
  Archived months: [dec2016] [feb2017]

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