Beginners - October 2015 (Page 45)

Remove a node from doubly linked list given its position
 
Hi, I am trying to remove a node given its position from a doubly linked list. My other functions work fine, only remove function is wrong. Can anyone please te...
[1 reply] : I suggest that you create a FindAt(...) function. Thus you can avoid t... (by coder777)
by willyb
Filtering and copying characters to another string
 
I want to copy every character that is not a symbol or punctuation into a new string variable using isalpha() and isdigit(). The compiler throws an error saying...
[4 replies] Last: oh no at all. Your solution is much simpler. My solution consisted of ... (by chicofeo)
MATLAB grade problem
 
I just learned matlab and my coding can be considered quite long since I code it one by one. Can someone help me to improvise my coding ? Develop a MATLAB pr...
[1 reply] : Morning, You could try a matlab forum, rather than a c++ one? (by mutexe)
by Arquon
Rounding problem
 
Hello, how do I prevent rounding number ? "m" is supposed to be 1.73620019, but instead im getting 1.7115. #include <iostream> #include <iomanip> #inclu...
[8 replies] Last: Return Value The value of x rounded to the nearest integral (as a flo... (by closed account 48T7M4Gy)
nasty bug help
 
I have a nasty bug in this piece of code not sure how to fix it. I'm focused on the first part not the part where I return values(have not started to change th...
[4 replies] Last: It looks like that dayCoutner/monthCounter/yearCounter exists so that ... (by coder777)
Adding space in-between seating array
 
Hello. I was given a C++ assignment about seating array. The codes below is retrieved from someone(not my original) and are modified according to my task requir...
[2 replies] Last: Okay. I've tried your solution Code Apperentice. But I've found an eas... (by tdpanz2015)
Matlab share algorithm
 
I was given the task of matlab. but my function cannot run and gives an error of "Undefined function or variable 'b'." can someone help me ? Cindy uses the s...
[3 replies] Last: okay. then what is %d ? i thought it was supposed to stand for decimal... (by tdpanz2015)
why i cannot create a class object?
 
I am working on an assignment regarding doubly linked lists... i have to write a driver program but i am not able to create an object of dllist class..plz help ...
[2 replies] Last: thanks brother (by uytoor2)
Win32 text box properties quesiton.
 
I'm messing with <Windows.h> and trying to create a notepad clone as a starting project. Figured it would be easy enough for beginners, and learn some of how th...
[1 reply] : I've done some looking around for a flag that may do wrapping but no l... (by CGunn86)
Breaking apart a string and storing sub-strings
 
I'm looking to separate a string containing numbers separated by one space, ie: "1 14 22 6 7". After splitting them up I wanted to store them some how so I coul...
[2 replies] Last: Or, if you do actually want them as strings, the code is not so differ... (by cire)
Storring a user entered variable from an Array
 
Hello so I am trying to store the index number into a separate variable, but cant for the life of me figure out how. Any help would be appreciated. This is what...
[6 replies] Last: Thank You!!! (by b29hockey)
Writing to output file(.txt) with several functions
 
I'm currently in an introductory class and I have to write a program to convert dec to hex, binary, and octal using arrays and then write to a text file. I can ...
[1 reply] : Either move line 49 & 50 to your function or make them global. (by SamuelAdams)
by willyb
Help with printing array
 
I want to create a program that takes each letter from a sentence that a user types and stores it into an array and print it. I used pointer to define the size ...
[2 replies] Last: It worked perfectly now! Thank you so much. (by willyb)
Please Help with Airplane Reservation Project
 
Hello everyone, I'm currently working a project for class and I am stuck. I am a complete newbie when it comes to programming and I am trying my best, so if...
[8 replies] Last: Thank you so much Chicofeo! I'll work on everything you helped me wit... (by drtran83)
Please help: Getting specific quantities of Resistors!
 
So an assignment I am doing, I need to ask the user what their target resistance in a series is. I did that. There are 3 types of Resistors (15, 5, and 1 Ohm). ...
[2 replies] Last: @pearlyman Thank you so much for the reply. However, I have a questio... (by kuroakuma97)
Variable declared in header not declared in cpp error
 
Hi. I've declared some variables in the header file of a class, but when I try to compile to test, it says that they aren't declared in this scope, and I have n...
[1 reply] : You can't call private members. You have to set up methods that give ... (by pearlyman)
detecting ctrl
 
If you wanted to detect a combination of keys pressed, like CTRL+Z what methods would you use to detect CTRL? The looking I've done says to use getKeyState() w...
[1 reply] : I would try something like nRet = GetKeyState ( VK_SHIFT ) ; You... (by pearlyman)
by Elyril
Prime numbers in a range
 
I'm trying to write this program to test and output all prime numbers in a range given by the user. I posted this code before, but I have a different problem no...
[1 reply] : > but anything past that, it will output everything correctly as far I... (by ne555)
assigning user input string to a char array
 
I had a problem with the line below, it says it can't convert string to char. I've tried using string.c_str()but ended up getting a mess of errors - I could be ...
[4 replies] Last: figured out how to do what I wanted to do via http://www.cplusplus.com... (by omega4relay)
Setting up an array
 
Hey guys Im working on an assignment and its asking "Calculate the max, min, count, average, and standard deviation (std dev) of a set of numbers." The set up a...
[3 replies] Last: Creating an endless loop isn't hard... You don't always need to break ... (by pearlyman)
October 2015 Pages: 1... 4344454647... 57
  Archived months: [sep2015] [nov2015]

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