Beginners - March 2014 (Page 17)

Linked List C++
 
Hello. I am studying this sample code for linked list class node implementation. I've studied this code for hours and I am not 100% sure what certain parts of ...
[4 replies] Last: How does it exactly keep track of the head node? Again, thank you fo... (by jshm415)
Comma operator
 
I do not get how the value of y is not 16, could someone explain why? bool someValue = true; int x = 5, y = 15; someValue ? ++x, ++y : --...
[9 replies] Last: A semicolon only ends statements. With the comma operator, you can hav... (by LB)
translate this c languange into c++
 
so im only learning c since im fairly new and i would like to translate this code to c++ so that i could study it for future reference, all your help is highly ...
[12 replies] Last: The first loop does not store the temp anywhere. The second loop valu... (by keskiverto)
What is NEW operator? (for what use is it)
 
for what use is that new operator? why should you use statement with new .. when you can declare very simple... // int a;
[2 replies] Last: http://www.cplusplus.com/reference/new/ Here (by Jamerack)
by Gasper
I need help with my homework
 
User writes 2 numbers. How much is the whole part of the number and how much is the decimal part of the number. I am new to this, and i tried to write a progra...
[1 reply] : The following code may be sufficient for your purposes: #include <io... (by MagicalForestElf)
by iluv41
Guessing game question
 
I'm writing a program where the user has 6 chances to guess a random number, but I cannot think of another way to write the code so that if the user gets the nu...
[3 replies] Last: its a bit like the gumball game that alot of begginers try to use: ... (by Gabriels727)
Could someone explain me map<string,int>
 
Hello could someone explain me this particular codes as i dont understand them quite right: map<string,int> m = {{"zero", 0}, {"one", 1}, {"two", 2}, {"thr...
[4 replies] Last: Thank you guys you are the best. I have found all that on www.cplusplu... (by lolek4551)
Passing arrays as an argument to a function
 
I thought I was done with this code, but when I try to compile it it says invalid conversion from 'int' to 'int*'[-fpermisive]. I know what's wrong but I don't ...
[3 replies] Last: You should go back and read more about arrays, because you are making ... (by booradley60)
A program likes Bejeweled game
 
Write your question here. Oh, hi, I have a problem: Example, I have a matrix: B B C E D D E B A C C B A D B A A C A E when I swap A of row 3 and C of ...
[12 replies] Last: If the algorithm finds 2 duplicates, it would only remove the second o... (by Jamerack)
overloaded ostream and binary arithmetic operators-template
 
I am having difficulty with my template version of an overloaded ostream and binary arithmetic operators. I am attempting to have strings added to an array and ...
[no replies]
save in a mkdir
 
Write your question here.So how would i make it to where i save say a txt file in a folder that is created with mkdir #include <iostream> #include <direct....
[7 replies] Last: > Windows uses backslash character as separator between files forward ... (by ne555)
by kixx94
I need help with this homework
 
I am completely new to programming and I need help with my homework assingment, I have to give it in by Thursday evening. Here is the problem, I appreciate your...
[no replies]
Things I should know before learning OpenGL?
 
Hi everybody my name is Scott, I am new to this website and also fairly new to Programming C++. I have the basics down when it comes to I/O, working with variab...
[no replies]
by lafo
Saving 2dimensional Array in txt
 
Hey guys, so I am trying to write an Array to an txt but I have a problem. The array values of Array and Array are getting the same value after I put this o...
[6 replies] Last: Of course, glad I could help. (by MagicalForestElf)
How to take input in c using graphics?
 
How to take input in c using graphics at specified location x,y?
[1 reply] : You need to use a graphics library for C like SDL. SFML is for C++. (by LB)
Fizzbuzz fileread
 
The file contains 2 3 10 3 5 20 2 4 20 etc.. now when i read it it prints the last line twice. Please help. #include<iostream> #include<fstream> ...
[2 replies] Last: Yeah that makes sense thanks kooth. (by generic2709)
I need help fast
 
Im writing a program that reads from a data file, does some math, and spits out some stuff to the console. It keeps reading the last line of the data file twice...
[2 replies] Last: I did what you said and it worked but I don't really understand why. T... (by horkavi)
bubble sort template
 
I am writing a program that uses a template to take in ints, doubles and strings from files and sorts them using bubble sort. Right now the ints and doubles are...
[5 replies] Last: you're welcome :) incidentally, it was my compiler that told me: err... (by mutexe)
Creating a new array from adjusting an existing one.
 
For the part of the code that I am on my current struggle is find out how to take my original array and creating a new array of deviation values from the averag...
[3 replies] Last: You're welcome dude. (by mutexe)
I cant figure out why my do while loop is not working
 
I have tryed to more my i but then it does not compile. Thanks for any help #include <iostream> #include <string> using namespace std; int main() { ...
[2 replies] Last: I don't understand why it isn't working. I ran it through and when you... (by AceDawg45)
March 2014 Pages: 1... 1516171819... 79
  Archived months: [feb2014] [apr2014]

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