Beginners - May 2015 (Page 16)

Code Error Heelp..
 
Hey just quickly have to give this code for teacher what's wrong about this code I can't compile it. Thanks;) #include <iostream> using namespace std...
[3 replies] Last: no worries, I've just noticed that the error message you got wasn't th... (by mutexe)
replace duplicated element of vector by other element of another vector
 
Write your question here. if i have to vectors like {3, 2, 4, 5, 1} and {1, 3, 2, 4, 5} and i need to generate new vector take range of one vector and the rest...
[1 reply] : Please, use the code tags (and intuitive indentation) when posting cod... (by keskiverto)
What would you recommend first?
 
Hi everyone, what would you guys recommend first learning the basic of syntax or at least enough of the C++ syntax before trying to attempt to solve the problem...
[2 replies] Last: Thank you for your reply, I'm starting to do that except I watch tutor... (by closed account yR9wb7Xj)
use of brackets after contructor and destructor
 
Hello, what is the difference between Mammal(); ~Mammal(); and Mammal() {} ~Mammal() {} Why it is not needed to put semicolons after the l...
[3 replies] Last: Thank you very much for your responses. (by agyBeginner)
file handling
 
i am beginner in file streaming .. the question is how can i compare the information of one file with another ..?
[1 reply] : http://www.cplusplus.com/doc/tutorial/files/ open each file, read rele... (by mutexe)
can anyone help me to write this program please
 
hello everyone i am beginner in c++ and i am new in this site my name is mustafa i am from egypt and i have question i want program to accept the names of 5 stu...
[3 replies] Last: but it doesn't work You really haven't given us enough information... (by mutexe)
Polymorphism with virtual function
 
error C4700: uninitialized local variable 'a' used in main.cpp I want to use virtal void sounds() - function but can´t get it to work. Don´t know what I´m...
[2 replies] Last: ahh okey, now I understand! Thank you ajh32! / P (by patriic48)
by Kackel
Help summing values within an Array
 
Hello There! I've been having trouble getting the sum of values from an array. The array is filled with random numbers from a Data File. Thanks! void f2()...
[1 reply] : void f2() { const int ARRAY_SIZE = 50; int numbers ={0}; // ze... (by closed account 48T7M4Gy)
Sum of cubes giving wrong answer?
 
The following is the program im trying to write: Write a program that asks the user to type an integer N and computes the sum of the cubes from 5^3 to N^3. ...
[8 replies] Last: CodeBlocks 12.11 (by Arslan7041)
by kunz
random function
 
is the commented part correct compuer = 1+(rand() % 3);// is this part correct if (computer == 1) { com_choice = 'R'; } else if (...
[4 replies] Last: Yes lol (by kunz)
Hep with "\n"
 
So I did a program with outputs: 2 4 6 8 10 12 14 16.... 44 46 48 50. But I want a program which shows: 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36...
[3 replies] Last: ^ I think it'll look something like this. while (firstNum<=50) { ... (by Momothegreat)
Weird Function Declaration
 
I was reading Direct2D documentation, and I saw a function with the following prototype. ColorF(FLOAT, FLOAT, FLOAT, FLOAT)( FLOAT red, FLOAT gr...
[1 reply] : https://social.msdn.microsoft.com/Forums/windowsserver/en-US/fb220469-... (by Hippogriff)
cout to printf
 
Hi, I'm a noob (bite me!) and I'm doing a C++ exercise. How do I write this in printf()? #include <iostream> // Import the input-output library #includ...
[12 replies] Last: Yeah, I did. Just don't have a firm grasp yet. Thanks, guys. (by BlueNowhere)
hey i need help resetting my average to zero
 
hey I'm really new to c++ and need help with a few errors I'm having in my program. the first problem is finding the low score in my program it only prints 0 th...
[1 reply] : Set your lowscore variable to 100 instead of 0 or so...because your if... (by novelloff)
Counter source unicode problem
 
I cant save my counter strike source clantag = ☠Z.P.A☠ When i save it looks ": ClanTag =?Z.P.A? When i save whith UTF-8 I its save but cant anymore run...
[1 reply] : If you want to use UTF-8 with c++ you'll have to use an external libra... (by ultifinitus)
Learning to GUI?
 
I'm not quite sure what the limit for "beginner" is, so feel free to move this if necessary. I took a class in C++ at my local college. It got me some basics...
[1 reply] : This transition is one of the most exciting transitions you can make. ... (by ultifinitus)
Need to see if im on right track
 
Hey Yall trying to make a Bank account program. I want to see if im on the right track. Also I wanna see how can I add on to the Balance. Its not close to being...
[2 replies] Last: Withdraw a l not Withdrawl It would be better to decide what makes up... (by closed account 48T7M4Gy)
Question Function and variables.
 
Hello everybody, and thank you in advance. I have a school project in which I had to write an ATM program where the user can use: deposit, withdraw, balance,...
[9 replies] Last: you have to understand something called scope. (by novelloff)
by ohad
how do i use "gotoxy"??
 
why its not working?? #include<stdio.h> #include<conio.h> #include<dos.h> void jump(){ int x = 0, y = 0, xs = x + 1, ys = y + 2; ...
[3 replies] Last: Perhaps you meant to have [code firstline=10] while (!kbhit()){... (by Duthomhas)
printf question
 
Is it possible to have printf format my output from 5250.000000000000 5512.500000000000 5788.125000000001 6077.531250000001 6381.407812500002 6700.47820...
[1 reply] : printf("%5.1f", var); This tells the compiler to reserve 5 spaces f... (by pnoid)
May 2015 Pages: 1... 1415161718... 40
  Archived months: [apr2015] [jun2015]

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