Beginners - March 2015 (Page 33)

delete linked list
 
kkk
[1 reply] : Why are you using C-stdio functions instead of the C++ streams for inp... (by jlb)
map iterator doesn't have (+ n) iterator - any work around this?
 
Is there any particular reason why you can't assign a specific position to the iterator of a map? e.g map <string,bool>iterator it = myMap.end() - 1;//...
[2 replies] Last: @Disch Super helpful, thanks so much! (by sheva29)
by oseri
Charr array element spacing
 
Correct me if I'm wrong: The smallest unit possible to allocate is 1 byte, so : 002BF560 - points on some byte 002BF561 - points on some byte+1 Char alw...
[13 replies] Last: things like 0.5 bits that were tried in the past, but I honestly have... (by MiiNiPaa)
Deleting pointer data using a deconstuctor
 
Hello everyone I am trying to ensure that I have now memory leaks within my program that I am working on for school. I am having problems ensuring that my obje...
[6 replies] Last: I double checked what I was seeing and I did successfully remove the a... (by Digimstr)
series1
 
how to do this series 1+2+4+7+11+....+56
[2 replies] Last: See the link for direction http://www.regentsprep.org/regents/math/alg... (by chouhaizi)
no output & standard deviation computation
 
I've got this code that's supposed to take some randomly generated scores and calculate the mean and standard deviation. It was working up until I put in the bi...
[8 replies] Last: I tried debugging but nothing came up (I'm using xCode, btw). Are ... (by TheIdeasMan)
Reading from txt files and making it strings.
 
Example if I have a Sample.txt and it contains. Hello Hi How could i choose Hi and put it in a String Variable?
[5 replies] Last: Thank you guys for the help, I was able to fix it! (by StillAlive039)
12-element int array named days
 
Declare a 12-element int array named days. Assign the number of days in each month to the array, using 28 for February. Code the program so that it displays the...
[1 reply] : You need to be looking at using flow control, i.e. IF statement. htt... (by Codermik)
HELP PROGRAM A SEARCHING AND SORTING
 
Hello there!! i'm still biginner in c++. Can someone help me to code a two searching and two sorting in one program . I really dont know what to do.
[no replies]
series
 
how to do this series 1+2+4+7+11+....+56
[3 replies] Last: for(int i=1, dif =1; i<=56; i+= dif, dif++) EDIT: please don't crea... (by anup30)
Function to remove an array element
 
Hey all, I'm trying to write a function to call to main that will remove a string element in a user input array. This is the code I currently have for the func...
[3 replies] Last: Just replacing wouldn't suffice. You need to move the elements from th... (by coder777)
Multiple character constant in switch cases.
 
Hi CPP Guys, I am using switch statement to perform some specific search in my simple program, but when I enter case in more than two character e.g. *case: 'Nov...
[7 replies] Last: Thanks, I am gonna learn that too. BTW I have to study about Boolean d... (by SobanSA)
Stacks with dynamic data without Classes/STL
 
I am having major problems here. I am still in the early testing stages of a program that is supposed to use Stacks and Queues to interpret file data. The catch...
[8 replies] Last: fg109, Thank you for your assistance. I was able to get my program to... (by frosty436)
Counting Prime numbers within a range.
 
Hey I'm having trouble with a problem from school. I need to write a program that counts the number of prime numbers between a certain range. I must create and ...
[no replies]
Multidimesnional Array
 
Make a program that will ask for the number of rows and column to output a two-dimensional array using pointers. The program must contains two user-defined func...
[9 replies] Last: Good! (by shadowCODE)
by camk16
Help Writing a Loop
 
#include <iostream> using namespace std; int main () { int i = 1; int n, Sn, sSum; cout << "Please enter a value for n: "; cin >> n; /* run the equat...
[15 replies] Last: Thx for the explanation of pow, fun2code. (by thomaselder84)
Proper form when working with vectors
 
If, for instance, I have a function similar to this to initialize objects (don't take it too literally): std::vector<Object> allObjects; void Function(...
[3 replies] Last: Yes, but not having to deal with dynamically allocated memory is much ... (by muffin1)
Switch statement help
 
everything works fine except when the switch is false and immediate closes the prompt how do i fix than and also how do i fix default it doesn't work properly ...
[no replies]
by map4
Control Break - Help!
 
Hello. I am currently working on an assignment where I am given a data file that contains a list of different student id number's and a set of 3-5 different gra...
[no replies]
For loop and Null 0
 
So im writing a For loop to read a string letter by letter, and I want it to stop at the Null 0. How would I do this? Right now it just reads 20 chars. v...
[1 reply] : The for-loops syntax has (init; cond; incr) and the loop iterates as l... (by keskiverto)
March 2015 Pages: 1... 3132333435... 51
  Archived months: [feb2015] [apr2015]

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