Beginners - October 2012 (Page 53)

Segmentation fault: 11
 
hello i am compiling this code on MAC OSX with llvm-g++ and it is giving me a segmentation fault error. i checked compiling on other machines too, but no help....
[11 replies] Last: @helios It's the numbers of elements. Yes, I know that. What I w... (by Aceix)
Algorithms
 
Hi all I want to write algorithms(steps, not STL algorithms) for my project before start doing my projects. My projects involves classes,dynamic arrays,poi...
[no replies]
by nahla
Extracting substring....
 
Using substr and concatenation, give a program containing a sequence of commands that will extract characters from input_string = "Four score and seven years ag...
[5 replies] Last: Well, there's certainly no need for 20 strings. string input_str... (by cire)
vectors and vector iterators
 
Vectors are new to me and I am having a hard time finding documentation on how to use them. I am also wondering how to use their iterators. So my goal is to...
[5 replies] Last: Ah yea I meant erase(). Not sure why I said remove(). (by ResidentBiscuit)
array and number
 
I need help finding numbers within an interval. I have to follow by this function and im lost as to what to do next. int nrVal = findNrGPA(double array , int l...
[7 replies] Last: THANK YOU! (by Filipe Ribeiro)
by eyali
template return type
 
Hi All I'm a little confused... Say I have thr following function declaration template <class T> T& f(int x); When I want to execute it like ...
[4 replies] Last: I see now. Thank u for ur help :) (by eyali)
Help Please
 
ifstream read("hello.txt"); string on; getline(read,on); cout<<on<<endl; char str = on; char d...
[8 replies] Last: You solved!! Thanks For The Help Guys.. :D (by mrghaia)
Homework help!!!
 
Hi, I'm currently working on my homework and got stuck with classes so it would be very helpful if anyone can help me work out my problem. -the program is ba...
[1 reply] : For: bool Person::isFree(const Date& time) const //is person avail... (by abeatte)
Effective way to solve this problem
 
I have to do the program which takes from user: n - number of elements m - how many pairs the elements have then user will write all pairs > 1 and 2; 1 and 3...
[no replies]
Bubble sorting of array
 
Hi guys, need a bit help with sorting of array. I have this code, but for some reason it does not sort the list. Can anybody explain what I am doing wrong ...
[3 replies] Last: Thank you guys. Fresh eyes helped. I see my mistake now. It kept throw... (by Nurlana)
Constructors, Please help with the program
 
#include<iostream> #include<string> using namespace std; class str { char *name; int len; str() { len=0; name=0; } str(const char *s) { len=strlen(s); name=n...
[5 replies] Last: str s2("York"); is direct initialization: http://en.cppreference.co... (by Cubbi)
const ??
 
I tried looking at a few websites but couldn't really get a good ans. Why is : Fn( std::vector<Class AA>& ) faster than Fn(const std::vector<class AA> &) ...
[5 replies] Last: @Framework : I am passing pretty big arrays of values by reference s... (by navderm)
by Aceix
Compatibility Issues
 
Why is it that, when I create a programme for windows, using the Windows API and C++, in MSVC++ 2010 on Windows 7, without using new "stuffs" or classes(interfa...
[4 replies] Last: Why is it that, when I code(build my programme) on Win 7(both Debug a... (by Chervil)
i suspect this is the most simple array problem here but
 
shurley this should ouput a table, i feel like maybe i have forgotton something fundemental, instead i get flat lines no big beautiful table. did you know v...
[13 replies] Last: Done :D (by Dala Darko)
by nico56
[C++] Writing binary file
 
Hi everyone, I have the following program: #include <iostream> #include <fstream> #include <cstring> using namespace std; /* Defino la estru...
[4 replies] Last: If you're trying to produce a file in a specified format (241 characte... (by Cubbi)
int and char
 
#include<stdio.h> #include<conio.h> int main() { char str ; scanf("\n%s",str); int c; if(str =='+') printf("%d",str +str ); else...
[6 replies] Last: The permitted length of the user input in the scanf statement needs t... (by Chervil)
by Gali
C++ Training
 
Hi all I work in the training department in my ordganzaiton and we are looking for a free online C++ course . preferrably containing videos but if you can re...
[2 replies] Last: You may finf University of Groningen's 'C++ Annotations' a useful reso... (by JLBorges)
Pointers - help
 
I have some homework to do but these pointers are confusing me a lot. So I have this code under: int funct(list *l41){ int total=0; list *current = l4...
[2 replies] Last: My personal opinion is that the pointer current is int type I see h... (by Moschops)
Prime Number Generation
 
How to write a program that will print all the prime number between 1 to n? I can write the program to check whether a number is prime or not but I want to w...
[1 reply] : Set a value to 2. For all number s less than value and greater t... (by Moschops)
HELP!!! Stuck in a Loop.
 
Hi everyone; I am new to C++ programming and wanted to write a program to tell the user his/her exact age as of todays' date right down to the years, months,...
[3 replies] Last: [quote=soli]Sorry, I don't have enough courage to read the rest of you... (by Aceix)
October 2012 Pages: 1... 5152535455... 84
  Archived months: [sep2012] [nov2012]

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