Beginners - July 2018 (Page 17)

Hi i need some help for my program which is banking system, i could not run it , i am a beginner
#include <stdio.h> #include <dos.h> #include <stdlib.h> #include<iostream.h> #include<conio.h> #define OPEN 1 #define DEPOSIT 2 #define WITHDRAW 3 #de...
Jul 3, 2018 at 6:39am
[14 replies] Last: oh thank you so much (by tommy251)
can't use getline for a file save function?
Okay so I'm working on this and for some reason I can't use getline in my save function, I switched it to a cin instead and it works just fine. I was wanting to...
Jul 3, 2018 at 2:06am
[1 reply] : The problem with getline() is probably because somewhere prior to this... (by jlb)
Errors C3867 and C2446? Followed a tutorial, i got the link
I'm just following another game dev tutorial, been a while since ive been coding so I'm probably just missing something. Here's the link to the tutorial: https:...
Jul 3, 2018 at 1:15am
[4 replies] Last: It's fine, I mean I really should know better at this point and its pr... (by moosyman)
Segmentation issue with Double linked list Split
Hello, I am completely new at this, and need your help fixing my methods. my mergeList is addeding extra numbers after the 88. my SplitList is causing a seg...
Jul 2, 2018 at 7:50pm
[2 replies] Last: You need to post all of the code, including main, so we can run it. (by tpb)
hint for this question(minimize the sum)
https://www.hackerrank.com/contests/101hack55/challenges/minimize-the-sum/copy-from/1308625213 hello, anyone can help me. How to solve this question? ...
Jul 2, 2018 at 6:51pm
[11 replies] Last: @zyan1zyan and @ipg2016069 sorry couldn't reply, was away from my lapt... (by sc7)
Struct Initialization
Hello below you will see that I tried to define a struct and then initialize some of its members and the program builds fine with no errors whatsoever however i...
Jul 2, 2018 at 4:20pm
[4 replies] Last: If you don't specify it will use the order that the members are define... (by Peter87)
functions, loops and decisions. please help?
my teacher wants us to do this Write a function called sumConsonants that will take as arguments two upper case letters. Your function should return a sum of al...
Jul 1, 2018 at 11:22pm
[2 replies] Last: You may want to start by following the instructions: my teacher want... (by jlb)
use of static variables and functions
So I must create a function that uses a static variable to keep track of a bank balance (it should be in a separate function but I can't even get this straighte...
Jul 1, 2018 at 9:58pm
[3 replies] Last: Thanks for the responses, I think I have it now. (by justStarting)
Reading and writing file
I am having trouble figuring out how to go about this. This is the prompt. C++ program that will read from a file, "studentInfo.txt", the user ID for a st...
Jul 1, 2018 at 8:03pm
[14 replies] Last: soccer53, I feel like you're just copying things without having any cl... (by Ganado)
what is optimistic(less time complexity) way to solve this problem?
please help? how to count common characters (character by character) in two strings in cpp? what is optimistic(less time complexity) way to solve this probl...
Jul 1, 2018 at 6:47pm
[13 replies] Last: yes, in the map one, you would have to iterate the map using the strin... (by jonnin)
by sc7
Problem in finding the right root of the quadratic equation
There is a cuboid. Assume that the width of the base is X. Then the Length of the base should not exceed (A−X) and the Height should not exceed (B−X). Also ...
Jul 1, 2018 at 4:54pm
[4 replies] Last: @tpb thanks, its resolved now. (by sc7)
control may reach end of non-void function
Good day to all! I'm experiencing some issue with my custom 'vector' template class that I'm required to built to understand how the mechanism of a STL vector w...
Jul 1, 2018 at 3:37pm
[3 replies] Last: You could do that. Or you could just have a return at the end on its o... (by Repeater)
Function parametar
I want to know why I need to mention int x in my loop in order to run program, because I tought that it already remember int x from my previous function with th...
Jul 1, 2018 at 11:47am
[1 reply] : It's two different variables that happen to have the same name. You c... (by Peter87)
SIGABRT ERROR
Hi i am getting sigabrt error for this problem on codechef.Please help anyone. Here's the question. https://www.codechef.com/LOCJUN18/problems/LOC18JUN ...
Jul 1, 2018 at 7:40am
[11 replies] Last: @Wasp , use vector of strings, I tried it, It will only pass the first... (by sc7)
by wsme
Reading a Line from stdin in C
Hey all, Making a guitar tab template writer, and wanted user to be able to set the name of the file written out. Getting a core dump on marked lines in functi...
Jul 1, 2018 at 7:03am
[1 reply] : scanf("%s", tab->fileName); // core dump here tab->fileName is NULL ... (by Thomas1965)
Cannot count words properly - File Handling Error
Hey Guys I am making a program to revise file handling,i thought i was pretty much done with it for now so thought to a make a huge program which will cover all...
Jul 1, 2018 at 6:28am
[6 replies] Last: You could be just a little bit less offensive in the light that i am j... (by thenewnubkid)
adding the totals of functions in main
I am still learning the function calls and I seem to be stuck when trying to add other functions together. I just want to add what the function is returning bu...
Jul 1, 2018 at 1:43am
[1 reply] : Never mind... I did some debugging and realized my data was not passin... (by justStarting)
by xdigit
Confuse regarding operator precedence
I am trying to understand how increment (and decrement) operator works based on where they are placed. In the following code, in the end y will contain 3 and x ...
Jul 1, 2018 at 12:07am
[11 replies] Last: That is interesting. I ran it with x=5 and I got y=11. But as soon as ... (by xdigit)
July 2018 Pages: 1... 151617
  Archived months: [jun2018] [aug2018]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.