Beginners - May 2020 (Page 11)

Search a file and output specific lines
 
Hello! So I am making a contact manager and I am using a text file to hold some information on the contacts the user inputs. I need to search this file and outp...
[7 replies] Last: Got everything working, thanks so much, everyone! (by theforgottenone4)
Shell sort
 
Good afternoon. Help me to make some things. In the output should be the time that the sorting took and the complexity of sorting( how many operations the progr...
[6 replies] Last: just put the gap in an array and get one of the good ones from the wik... (by jonnin)
Passing a pointer of the wrong type
 
Hi, I'm using some code that I found in an article by Vikash Agarwal on writing an ODBC driver. I'm attempting to build a skeleton using this code (my backgr...
[6 replies] Last: Yes, my code has everything to do with that Microsoft SQLDriverConnect... (by Auntiejack56)
Practice Program Question.
 
Hello all, Currently I am working out of "Problem Solving with C++ Tenth Edition" to prepare for next semester and am working on the current problem. "In ...
[5 replies] Last: Hey thanks everyone for the advice, will implement these ideas. Apprec... (by noblemin)
Number of sort operations
 
Hi! I need help with displaying the number of sort operations I will be very grateful if you help me! #include <iostream> using namespace std; ...
[7 replies] Last: You can count various things: comparisons, swaps, iterations. #incl... (by dutch)
Struct inside a Class
 
I am trying to use a public class method to change or set the variables inside of a struct inside of the class. what syntax would I use? class myClass { ...
[12 replies] Last: You don't need to define the struct within the class: struct myStruct... (by deleted account xyzzy)
RungeKutta class C++
 
I have an assigment in uni to write a program, that integrates multiple differential equations. d/dx=-ay, d/dy=ax. I have to do it using RungeKutta class and a ...
[9 replies] Last: Thank you very much. You were right, base class lacked pointer to x. A... (by audrius69)
Function called in cout
 
I ran this program in two different systems using Mingw compiler and Sublime Text 3 for writing code, but I got two different results: In first system: 89842...
[4 replies] Last: The compiler is same Such things can change between different versio... (by dutch)
Create a dynamic array with duplicates [stuck on a problem]
 
Hello all, this is a tough request but I am stuck on a question I found online and I really can't think of a way to do it. here is the question Write a pr...
[8 replies] Last: Lets take half of that task: output = array ; output = array ; ou... (by keskiverto)
make a name unique
 
Hi I need a way of making a name unique (i.e. making it a unique ID) but still retaining some features of the name to make it recognisable. The code below work...
[2 replies] Last: As Salem says, some kind of incrementing integer is a pretty common wa... (by Repeater)
C++ calculator that loops answers
 
I am trying to code a calculator that uses the result of the previous calculation as one of the inputs for the next calculation. However, when I run the code, i...
[2 replies] Last: "=" = "becomes" "==" = equals (by lastchance)
I need help with a code for LOOPS!
 
So we are supposed to Write a program that asks for two positive integers from the user and the program will then display all integers from the lower of the t...
[9 replies] Last: Thank you Sean and Andy. (by aimen112)
how to write something in a array of characters in an array of stuct
 
i have problem, how to write in an array of character in an array of struct? struct student{ char name ; char id ; double marks; } ...
[1 reply] : That’s because it’s catching the '\n' that the normal cin never sw... (by highwayman)
File I/O -> getline() Returns Empty
 
I've been pulling my hair out trying to figure this out. I've done file I/O before and nothing like this has happened to me before. I have a text file from whic...
[2 replies] Last: Got it! I removed std::ios_base::app, and everything is working! Tha... (by capnation)
hard stuck (1,2)
 
hey there`s an assignments that they gave us but its more math than coding : Write a program that calculates and prints the result of the following series: n...
[34 replies] Last: yeah , u were right i missed a part , thank you so much for taking the... (by John3682)
Inheritance and Cleaning Up Code
 
I CANNOT FIND THE "DELETE THREAD" OPTION. IDK WHY, BUT (AS YOU CAN SEE) I POSTED MY ENTIRE CODE. MUCH OF IT IS FINE AND HAS NOTHING TO DO WITH MY ACTUAL PROBLEM...
[12 replies] Last: I now see why you posted a second time: you had no color before and no... (by highwayman)
Array String Void IF FOR, I am stuck with COVID-19 program calculator
 
Hello, I really need help, with COVID-19 program. I have to use Array String Void For and IF. I would be very grateful if something was do it, because I only l...
[6 replies] Last: #include <iostream> #include <fstream> #include <sstream> #include <s... (by lastchance)
Need help hiding 0th Rolls on a DND "simulator."
 
Hey there! I need help to understand why my code is giving me 0th and last "rolls." If you run the code, enter your "prof bonus," and the number of attacks...
[2 replies] Last: Oh my. I don't know how I missed that. Thank you so much, dutch! (by cstricko)
Saving in binary files
 
I have a program that contains 3 linked lists ex: class nodeA { int data1; double data2; nodeA* next; } class listA { nodeA* h...
[6 replies] Last: the problem is pointers. if you accidentally send a pointer to the b... (by jonnin)
Code not continuing after void while function
 
Hi, I'm having trouble as to why my code continues after my while loop when the loop is placed in main, but when I place the loop in a void function, if the wh...
[6 replies] Last: You are getting data input in your function, you need to return that ... (by Phanboy)
May 2020 Pages: 1... 910111213... 17
  Archived months: [apr2020] [jun2020]

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