Beginners - March 2014 (Page 54)

ERROR! Invalid conversion from const int* to int*!
 
/* Why the compiler of dev-cpp gives this error? What it is the solution? */ /******************************************************************************/ ...
[5 replies] Last: That works too; int const * a is equivalent to const int * a .... (by keskiverto)
Need help "From any base to base 10"
 
Can you correct my. It is not following the statement that I put and can you put this in character array. NOTE THIS "TURBO C++". #include<iostream.h> #inclu...
[3 replies] Last: sorry for the late reply, but here it is for completeness. printf("D... (by Jaybob66)
trouble with fstream and for loop
 
Hi I was trying to do a program that would allow me to elaborate datas coming from moultiple files at once, so I used fstream( or ofstream if you prefer) in a f...
[1 reply] : for ( int i=1; i <= nfile; ++i ) { const string a = namefile + conv... (by keskiverto)
Bad Cygwin
 
I am using Cygwin64 with all (I'm pretty sure) necessary dependencies. When using the netbeans IDE, I get a "Bad Cygwin" message telling me I need to reinstall ...
[no replies]
by psweet
Hi friends
 
what difference between c and c++? Regards: Packers and Movers in Thiruvanmiyur:LST
[2 replies] Last: C - older, not OOP C++ - newer, OOP C: #include <stdio.h> int mai... (by James Parsons)
how to put a txt file in a unit testing using c++ visual studio
 
help me.. does not work.. for example: TEST_METHOD(test1) { // arrange string text, expected; ifstream infile("input.txt...
[1 reply] : does not work Wow. What an amazingly helpful description of your pr... (by MikeyBoy)
move
 
moved
[1 reply] : Do you have any specific question here? any defects, errors that you c... (by codewalker)
by kdovik
C++ getting better at parsing more complicated text input
 
Hi, so I have this homework (and I don't want you to solve it for me, just need some hints): I'm given an ASCII file and I have to parse it, check for validity...
[1 reply] : Write a function that splits up the read line. Use string stream and s... (by codewalker)
Calculate the average, the highest and the lowest score of each student.
 
Can someone help me how the lowest is zero when printed? I have looked for 30 mins to find the mistake already. Nothing so far. Thanks in advance. #...
[1 reply] : I believe there just wasnt any scores less than 0, so (first < lowest... (by MiiNiPaa)
by nvrmnd
weird form of function parameter
 
What does this snippet below mean ? struct C { C( int i ) : data(i) { } int data; }; template <class T> void f( T C::* ) // <== What does th...
[4 replies] Last: ohh, i see, big thanks to both of you for a new knowledge :DD (by nvrmnd)
C++ Total not coming up correct. Must be right under the tip of my nose.
 
Ok so I'm taking my first programming class (intro to prig and logic) and have pretty limited computer knowledge. Im loving the class right now and have been pr...
[11 replies] Last: Just comes with practice. Only took two semesters of it at the univers... (by giblit)
problem with function
 
im unable to link these two bodies..i try to use function...can someone help me or edit the code...thank you so much #include "stdio.h" int kuasaDua ...
[1 reply] : You don't get as far as linking; your code does not even compile to ob... (by keskiverto)
c-strings
 
I have a problem writing this program... Can anyone help me this is the first time that I am doing something with c-strings I am beginner in c programming Than...
[8 replies] Last: I was looking at that link all day now and still nothing :( Look at... (by keskiverto)
cout un-reduced fractions??
 
Hi everyone. I am writing a program that is meant to do fractions. The program is simple enough because its a simple redirection for an input file which will pr...
[4 replies] Last: Ok I understand looping. if it's that easy I'm sure i won't have a pro... (by ssjaditya)
Enum Manipulation
 
Having problems with this class exercise, searching for some help the past few days and throwing myself at the problem to no avail. const int DAYS_IN_WEE...
[1 reply] : Would I write the method nextDay(Weekday) as a string or an int? Y... (by cire)
Private Static Variable Initialization
 
Hey Everyone, This is my first question I have posted on the forums so hopefully I do it right. Anyway straight to the point. So I was trying to make an Inpu...
[2 replies] Last: Thanks for the speedy reply, and thanks for the answer and insight tha... (by TaylorCoons8798)
by moe90
undefined reference to
 
i don't know why im getting this error with code blocks, im getting an error of { undefined reference to 'Student::Student()' ...
[1 reply] : http://www.cplusplus.com/forum/general/113904/ (maybe `you forgot to l... (by ne555)
C++ Primer Error
 
Those of you who own C++ Primer 5th Edition I really could use some help. On if statements on the getting started chapter it shows a programme which Uses w...
[3 replies] Last: Post code you use. I have to move the curly brace Are you sure you di... (by MiiNiPaa)
Problem with 2d char array output
 
Hello, I am having trouble with displaying my 2d char array. I am initially getting it from a text file. beginGame is a function that is defined outside of main...
[1 reply] : Soved this by cutting down my array size by one. So instead of 43 it i... (by DragonProgrammer)
How to judge the return value of aoti()?
 
If the input parameter is invalid,the atoi is return 0.But when i input "0",it's return 0 too.So,I want to know How to judge that input parameter is invalid or ...
[3 replies] Last: to giblit: I can understand your meanning.But if input "000",the fu... (by wennuan)
March 2014 Pages: 1... 5253545556... 79
  Archived months: [feb2014] [apr2014]

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