Beginners (Page 54)

lexicographically compare strings
how can i compare each element of string array lexicographically? For example, if i want to find...
[1 reply] : would simply comparing each element like if (folk <folk ) {do somethi... (by mbozzi)
Questions of Class Homework C++ Intro
Hi, I'm new here just want to ask a question how to calculate and print number 1/1 + 1/2 + 1/4... + ...
[15 replies] Last: Thank you for the brief explanation. (by shadder)
Expanding an Array with Pointers then Shifting Elements?
Hey guys, I am doing a problem out of a c++ book. No, this isn't homework, I am doing this for mysel...
[1 reply] : 1. The last element of OriginalArray is at index elements - 1, but the... (by helios)
by tit0n
Trying to compute the closest pair. Help?
we are given double d = p .distance(p ); Im not sure how to make out this code. Can anyone exp...
[12 replies] Last: #include <iostream> #include <vector> #include <fstream> #include <c... (by gunnerfunner)
[Error] id returned Exit Status
My code was running smoothly then I changed (4/3) to (4.0/3.0) and now I'm getting an error message....
[3 replies] Last: I had that in the code allready sorry I just realized it wasn't inclu... (by nolman610)
Need help on calling objects and parameter objects
So for say I have a function called commonType. In my main.cpp file there is a call and it looks lik...
[2 replies] Last: Oh okay, makes sense now. Thank you for the explanation. It works (by kikiyox77)
integer questions
a is an integer and if (a%2) cout << "abc"; does that mean that the program will only print out abc ...
[1 reply] : yes.. (by ar2007)
print prime numbers between any tow number
hi you I write program print prime number between any tow numbers using recursion function but I hav...
[6 replies] Last: ok I want to correct code (by mohabd73)
by arbwok
Reading text file as an array
Hello I need help reading text file as an array and line by line. Lets say I have a text file [...
[no replies]
constructore and initialisers
I have an employee class that stores various details about, and one of those details involves anothe...
[4 replies] Last: Thanks everyone for your input! After reading and head scratching I ha... (by jamesfarrow)
Multiplication and Addition for Doubly Linked List
I am attempting to make infinite arithmetic calculator for multiplication and addition. I tried abou...
[12 replies] Last: this keeps it around instead of allocating it every time You're righ... (by mbozzi)
by stas76
loop for(int s:v) what does it mean?
Hello, I'm reading Stroustrup book PPP using C++ And here I saw such loop for(int s : v){} W...
[2 replies] Last: Thanks (by stas76)
txt read block by block
Hi guys, i'm having trouble on a little practice exercice i am doing for a exam, and i can find anyt...
[2 replies] Last: Thanks alot mate, that's exactly what i needed, btw i atually used t... (by jacktharippa)
Programme crash
Hello guys. Could someone please point to me why this programme crash every time I run it? It crash...
[3 replies] Last: I got it. I was looking at it as years is the array counter. I just ... (by Misbahu)
How do I save data to a .txt file
so i have data that was printed out in a for loop i want to put all these values into a file
[1 reply] : There's info and code examples of writing values to files in the tutor... (by wildblue)
So I'm writing a program that demonstrates Newton's method to find a root of an equation. It outputs...
[4 replies] Last: Your original routine newton( ) - your original post - does not return... (by lastchance)
by Mite
What happens when wrong indexes are used in c++2-d arrays?
HI everyone! I am a beginner of c++ and was doing an array program.I have entered the following code...
[10 replies] Last: Thanks very much everyone for their support and answer. (by Mite)
by LauTam
Unity help code keeps coming back with a error
Hello, somehow my code keeps getting a error in Unity. I'm a newbie in C++ so I have tried some a...
[no replies]
in visual studios '15, one of my classes isn't being recognized as a class
I'm attempting to make a composition of computer class with classes beneath/under it. All in header...
[3 replies] Last: okay thank you guys for suggestions. I figured it out. Being a novic... (by Harryguy)
Code will compile but program won't work
It's not giving me any errors so I don't know why it's not working. It just crashes when I try to en...
[3 replies] Last: Hello Robsome97, I finally managed to work something up and get the f... (by Handy Andy)
Pages: 1... 5253545556... 71
  Archived months: [jan2017]

Cannot post in this page. To post a new message, go to the first page.