Beginners - July 2014 (Page 39)

struct type vectors
 
Hello guys, Ive already ask similar question here but for some reason my brain cant understand this thing :S Im not good with talking will just wrote a code ex...
[5 replies] Last: Good to know. Thanks for you replies guys. See you I hope not soon ^^ ... (by Furjoza)
dont know how to return value from funct
 
Write your question here. #include<iostream> #include<conio.h> using namespace std; struct node { int data; node *next; }; typedef node *list; ...
[4 replies] Last: What is the type of your pointer? Hint: You pass it in as an argumen... (by AbstractionAnon)
c++ book
 
Hi, I am a beginner programmer and I am planning on buying c++ primer plus by stephen prata. But, I am not sure if I should get the 5th edition (which uses c++0...
[4 replies] Last: Reviews on Amazon are from the readers who may just be beginners thems... (by BHX)
inheritance problem
 
this program should be calculating the total and average from the given values by the user but it does not...what's wrong with this program??? #include <iostr...
[4 replies] Last: it worked...thanks a lot for your help. ... (by soldier1984)
Need some help plz.....
 
Hi all, i am creating a program for simple calculation (+,-,*,/) and i need the user to give the 1st number, operator, 2nd number. This is what i did, is this...
[16 replies] Last: @ ashwinmo Please start a new thread with your question rather than d... (by Chervil)
problem with AVAIL
 
Write your question here. #include<iostream> #include<conio.h> using namespace std; struct node { int data; node *next; }; typedef node *...
[3 replies] Last: I think to insert at the beginning, the function requires only two par... (by Chervil)
Return to main menu function without using a do while loop
 
Hi there, I was just wondering if I could use a function to return to a certain point in a program. I have made a main menu with sub options using switches, ho...
[1 reply] : Just wrap the code you'd like to loop with a while loop then the sub w... (by Sausage)
Adding a file type
 
Hi guys Im trying to create a program where you can create a simple text file automatically after entering the name using fstream. Its for a system Im gonna wor...
[4 replies] Last: Its kinda the only available compiler at my school where I make the co... (by imtehnewb)
by mehak
char
 
plz explain the output #include <stdio.h> int main(){ int i =300; char *ptr = (char*)&i; *++ptr=2; printf("%d",i); }
[3 replies] Last: The value of i is held at an address in memory, you created a pointer ... (by ajh32)
by marcoE
Problems understanding class redifition
 
Hello guys ! I'm tryng understand how c++ works and oop in general work. I'm facing some problems understanding the best practices and how to solve (probabl...
[2 replies] Last: Thanks ! I'm learning, so these kind of "errors" are new to me :) I go... (by marcoE)
by Sawyer
Absolute Beginner Help, please
 
Im 16 years old and trying to learn how to code on my own, i bought a C++ for Dummies book and I had a few questions. In the book all it does is load me with in...
[1 reply] : The whole idea of those books is to show you commands step by step in... (by Codermik)
by mehak
lvalue
 
why does it give an error saying lvalue required #include <iostream> using namespace std; int main(){ int i =3; for(; i++=0;) cout<<i; } ...
[1 reply] : Look at line 6. The error is... well, rather straightforward- you adde... (by Ispil)
Help on my programming homework.
 
Let me just say this I need someone to explain to me what am doing wrong so I can better understand it. I was wondering if someone can show me how to find t...
[8 replies] Last: @Stewbond & @Yay295 Thank you for the help I was able to finish it an... (by Alexc805)
by JoeB91
Writing prime numbers to a file
 
I have tried a few different solutions to get this program to print all prime numbers 1-100 into a file. However, all things I have tried led to either nothing...
[3 replies] Last: There are Three problems in your isPrime function. The first problem ... (by Yanson)
Question about includes
 
Hello, I've been trying to break my code up into separate files to keep everything neat. I've run into a problem though, many of my .cpp files are dependent on ...
[3 replies] Last: It's not really that hard to understand. Include a file when it's need... (by xismn)
Object back and forth loop
 
I need a square to go back and forth on the screen and never stop. It would start in one corner and go until it hits the next corner then flip and go back. This...
[10 replies] Last: When I said template I meant the whole project file, sorry for the con... (by Webdawg66)
Rejecting inputted duoubles for switch statement?
 
Hello everyone, I am using a switch statement for a simple ATM style program. It needs 4 options for the menu: (1) Menu 1 (2) Menu 2 (3) Menu 3 (X) Exi...
[3 replies] Last: Use the same basic method, but use a stringstream to process the strin... (by jlb)
by RDK
From python to c++
 
Hello everyone, A few weeks ago i started learning programming. First i did some research and asked some questions on forums. I always wanted to immidiately ...
[8 replies] Last: haha okey really thanks for all the help (by RDK)
Casting char to string is not working
 
I am trying to take a character from a string and store it in a string vector, and I know I need to cast the character to a string first, but it's not working. ...
[3 replies] Last: You already have two good answers - either choose an appropriate const... (by Chervil)
by h4ever
problem to join strings - error C2059
 
I would like to join three strings - working path, "\\", and (*it) to make test if path exists. S::I().Stat.workingPath is char *. (*it) returns string from...
[15 replies] Last: It's not clear to me how can I get the const char * to the expression:... (by h4ever)
July 2014 Pages: 1... 3738394041... 43
  Archived months: [jun2014] [aug2014]

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