Beginners - December 2016 (Page 11)

Why is malloc() return type causing and error?
 
I am writing a program to display the nodes of a graph in a depth-first traversal. however I get ...
[2 replies] Last: First off, are you writing C or C++? Line 1: This is a C header, not... (by AbstractionAnon)
by Zenyat
Simple Shopping Program
 
Hello everyone, I began working with C++ few months ago and I'm trying to create a simple shopping p...
[3 replies] Last: Hello Zenyat, After further testing I found these problems: line 25 ... (by Handy Andy)
sorting for strings (putting a list in alphabetical order) (1,2)
 
So my program reads names from a file and then sorts them by first name.My program does this,but the...
[31 replies] Last: Thank you so much guys, the program runs successfully. You guys helped... (by ahsan215)
Class C++
 
Write your question here. For example, I have a base constructor and I want to write a derived cons...
[1 reply] : Is it valid? Yes, it is and you can simplify your code somewhat by u... (by gunnerfunner)
loop function for n students and n marks
 
So, I got this one question from my lecturer and it kinda confused me. Can anyone actually solve thi...
[3 replies] Last: dear naaaaaaa, int n=1<5; that's a syntax error for(int i=0;i<5;i... (by shadder)
HOW TO DISPLAY THREE PER LINE?
 
The output section only print one state per line. How can i print 3 states per line? getline(cin...
[2 replies] Last: Hello john99999999999999999999, The output section only print one st... (by Handy Andy)
Some bug with array program
 
This program that I wrote works fine expect that it outputs the number 1606416376. So I guess that t...
[2 replies] Last: @coder777 thanks alot! (by markusfurst)
Class C++
 
Write your question here. I have problems with setcode and getcode method. Could someone help me?...
[3 replies] Last: OP: If you can use std::string for name why not for code as well? Life... (by gunnerfunner)
Tro
 
000
[3 replies] Last: [quote=Katie111] Trouble with Identifier not Found 'moveUp' and Intell... (by Peter87)
by wolfv
How to hard-code vector initialization for vector of struct vectors?
 
The following class gets this compile error: In file included from scancodesTest.cpp:9:0: Scancode...
[2 replies] Last: Thanks Peter87. Name and scancode were suposed to be strings. You sav... (by wolfv)
by murry4
help with simulating drivers license test
 
im doing a project where i have to simulate a drivers license test using arrays and im SOOO confuse...
[1 reply] : Here you are, @murry4 - have a go and more people will respond to your... (by lastchance)
keep getting access violation reading location error.
 
Hey guys I am having trouble with this project. It is suppose to read names from a list, sort them, ...
[4 replies] Last: First I would check if the data is read correctly from the file by pri... (by Thomas1965)
by hawks
grafi con liste di adiacenza
 
Write your question here.Salve a tutti avrei dei dubbi sulla questione da cui il titolo.Diciamo che ...
[no replies]
Help with sorting a .dat file
 
Hello. I'm new here. I'm learning C++ at school. However, our school board enforces us to use TC(Tu...
[1 reply] : *bump* (by Shashashank)
Comparing sizes of strings and sort them
 
So I'm trying to write a program that compares the size of the last name first and then the first na...
[2 replies] Last: what am I doing wrong? - create stringstream objects from name1 etc ... (by gunnerfunner)
Write a menu driven program that will feature five functions.
 
My professor gave us this hard code to but I do not have the slightest idea on how to do it! Could y...
[8 replies] Last: This forum likes to see some effort on behalf of the OP (which inciden... (by gunnerfunner)
by Jaif
std in class Distance does not name a type
 
Hello, I am getting error:'std' in 'class Distance' does not name a type... and if I use "using nam...
[4 replies] Last: That's right. Function in total should be: std::ostream& operator<<(... (by closed account 48T7M4Gy)
by xx123
2d grid array
 
This is supposed to be a grid and it's supposed to have different letters on the grid in different d...
[2 replies] Last: See http://www.cplusplus.com/forum/beginner/204593/ Please continue th... (by lastchance)
by leocc
How can I fix this?
 
There is an error in my code, this is what it looks like (just the part where the error is). How can...
[3 replies] Last: Thanks a lot guys. (by leocc)
December 2016 Pages: 1... 910111213... 28
  Archived months: [nov2016] [jan2017]

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