Beginners - November 2013 (Page 44)

How efficient is this code?
 
Hello I have a fairly small code here that accepts an array from the user, asks them for a element and deletes that element(if present in the array). /** De...
[no replies]
by Ltp
Doubly Linked List problem
 
Is it the right way to insert element(s) in Doubly Linked List? #include <iostream> using namespace std; class node{ public: int value; node *...
[2 replies] Last: Ya its fine. But where my confusion is; else part looks like singly li... (by Ltp)
digits after comma when passing double variable to function
 
Hello guys, I have following problem, and I already searched in many different ones but couldn't find a solution. Basically I have two double variables e....
[1 reply] : The values aren't changed, they're passed as you've initialised them. ... (by kbw)
Error: Cout is AMBIGOUS. help :)
 
I'm making hangman game then suddenly 100 errors came lol. error says cout is ambigours and some is ambigous. I dont know what to do, what to erase. What should...
[1 reply] : You have to post the error message verbatim. Rewording it and leaving... (by kbw)
by aman11
not able to set path in turbo c++
 
Write your question here. sir, i have written a single program while compiling it giving error that iostream.h file or directory file compilation terminated.
[1 reply] : iostream.h is part of the old IO Stream library. Although you can lea... (by kbw)
by h4ever
What does mean the public keyword?
 
Hi, I read the tutorials about classes but this convention is not clear to me: That does mean the public Link after class ColorLink : ? class Color...
[9 replies] Last: Catfish666: Thanks, I see now: 1) private members are not inherited a... (by h4ever)
by wirowi
sum of elements in a list
 
Hi again :) This time I'm supposed to write something that seems like it should be so easy to write but for some reason I can't figure it out. This is part of ...
[1 reply] : I'm iterating over a list. I have two values in memory: current runnin... (by keskiverto)
Another LOOP (for) expression question.
 
So in connection to my other post. We had another exercise that needed the output to be this: 10 1 9 2 8 3 7 4 6 5 My math skills are not good en...
[1 reply] : There are more than one way to do this. What if you would print two v... (by keskiverto)
by gs8
what does :: mean and why its used
 
Write your question here. what does :: mean and why its used like in string::size_type first, list<string>:: iterator i etc.
[1 reply] : it's the scope operator. That means for string::size_type you will f... (by coder777)
by ATZ34
Storage size of ‘ ’ isn’t known
 
Hi! My shell gives me this error, and i don't know why, the code is following. labFunctions.h : #include<iostream> #include<stdio.h> #include<stdlib.h> #inclu...
[2 replies] Last: I solved on my own this problem putting all the headers in one main, ... (by ATZ34)
Error filling a vector using struct
 
I created a struct called employee and when I compile, I get an error telling me this:employees.cpp:44:25: error: no matching function for call to 'getline(std:...
[7 replies] Last: how do I print out elements of a vector that i filled with a struct c... (by keskiverto)
Loop (for) expression problem
 
So in school we just learned the for command and then our teacher made us do some exercises. One exercise involved making a program that outputted this: 1 ...
[3 replies] Last: YUSH!!! Thanks, Catfish! It worked! Thanks for the answer also, Shadow... (by Kakashi00521)
by Zakzak
How to do ?
 
How can I do this C++ program that takes a string of numbers then continuously sums all the digits until 1 digit remains
[1 reply] : http://www.cplusplus.com/forum/beginner/1/ Please read this. (by The illusionist mirage)
3 cpp functions regarding infile outfile
 
I had an assignment where i had to write 5 functions and then run them all in a main function. I can succesfully compile the first two and they work but there...
[2 replies] Last: I can succesfully compile the first two and they work but there is so... (by keskiverto)
Store Class values
 
Hi, I have the following scenario: int SampleClass::doWork(TCustomType _dataCall, void* _reserved){ ... } I want to store the value of ...
[1 reply] : Do you mean just to declare them as part of the class? That would just... (by TwilightSpectre)
by wirowi
simple encrypting code
 
Hello again! I was given a new assignment. I'm supposed to write a version of Caesar's cipher. It's been close to a week since I've started working on this and ...
[4 replies] Last: @rodiongork Thanks for replying. While I agree that figuring somethin... (by wirowi)
Conversion problem
 
hi all, I need to convert an integer to hex. for example 30>>>1E, but my problem is that i want the notation 0x1E. unsigned char Wris = {0x8b, a1,...
[6 replies] Last: ok was my fault here, unsigned int a1 = strtoul(("1"+result.substr(0... (by gasse1985)
C++ into VB
 
Hello, I'm going to translate below logic into vb. I confuse what the logic trying to get. What is the relation between DevcName and the Reader_F., and what ...
[4 replies] Last: Reader_F is the array that can store 100 elements of the type RdrNa... (by coder777)
Sorted List as a Linked Structure error
 
I copied this code from the book by Nell Dale. "C++ Plus Data Structures" Here is my Sorted header/implementation file. #ifndef SORTED_H #define SORTED_H #i...
[1 reply] : Any ideas why? The ) is at the wrong place: while ((item.Compared... (by coder777)
pass by reference
 
I have to pass word in following expression in following way int word = i; trans.set_data_ptr((unsigned char*)( &word )); Now I have to...
[1 reply] : If ABC::ptr is a pointer, and is public you can pass it like: tr... (by Catfish666)
November 2013 Pages: 1... 4243444546... 80
  Archived months: [oct2013] [dec2013]

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