Beginners - February 2014 (Page 37)

by mlor3
Need help (for loop)
 
How can I get my code to print from input number to zero with only odd numbers? I want my code to look like input=10 9 7 5 3 1 My code looks like thi...
[3 replies] Last: You are welcome! for(int i=number-1;i>=1;i--) The loop starts at... (by eyenrique)
[URGENT, PLEASE REPLY] error while compiling
 
hello im using dev-cpp 5.6 with tdm-gcc 4.8.1 compiler.. my question is i cant compile my code(which is so damn long. assignment from my lecturer). the error me...
[2 replies] Last: You have a permissions problem with something in that path. If this ... (by midiology)
help keeping score
 
So i have this as my code for my rock paper scissors game but apparently it need to also keep score? I am very new at this, can anyone help me out? #incl...
[1 reply] : It's pretty much as easy as using std::cout. Look up fstream. It's not... (by Avilius)
Do-while and if else problem
 
This program compiles fine and runs alright once through but i think the loop is messed up but I can't seem to find out why. can someone please help me? #i...
[4 replies] Last: thank you! I put it within the "do" and it worked perfectly! do you kn... (by ashald33)
help
 
in this code you input the min required to pass and your grade but its not working correct //Determines user's grade. Grades are Pass or Fail. #include <iost...
[4 replies] Last: yeah its the one on the top i switched somethings and it works fine no... (by TheMikey87)
I can't seem to input two numbers on the same line
 
Hey. Worlds worst programmer here again. I have a question as far as input is concerned. Now, we're supposed to be using the cin to input two numbers on the ...
[3 replies] Last: Glad I could help, jackbruns28.. (by whitenite1)
by Dunder
Can't call class method of type string
 
I'm trying to call the method "toString()" in my main.cpp file, but when i do it gives me the error "C3861: 'toString': identifier not found" at line 48 of main...
[5 replies] Last: You are welcome! (by eyenrique)
CREATING A FILE OFSTREAM help
 
when I try to create a file on the desktop, typing "file.txt" it prints me out that the file was not opened, I don't know why... it should create the file or ma...
[9 replies] Last: thank you the path name was wrong, it was c:\users\username\desktop, t... (by closed account ivDwAqkS)
Printing Text Conflict
 
When I Enter Trig or Pythag The Ifs Statements Will Not Work And Then This Will Be Printed "Pythagorasry" Even Though I Have Not Typed That. I Believe This Is T...
[1 reply] : Firstly, starting every word with a capital letter like that makes you... (by MikeyBoy)
Help me resolve a practice problem?
 
Ty for the help
[3 replies] Last: You're also asking a lot of people who could be helping others to spen... (by cnoeval)
Deleting allocated memory
 
Hello there, I have a technical question (I think). Anyway I'm trying to understand how to know if I have a memory leak in my program and I read here: http://ms...
[1 reply] : Read this: http://msdn.microsoft.com/en-us/library/x98tx3cf.aspx Par... (by coder777)
Dynamic Programming Task
 
Hi guys, I need your help about something in C++. So, very soon I'm going to have a competition in C++ programming in my school and we were just introduced to d...
[7 replies] Last: Thank you so much for help everyone, today I asked my professor about ... (by TheDoCtoR)
Do while / Switch Menu Design
 
How do I get outChar underneath the menu as well? See this for example for Option 4: http://i60.tinypic.com/33onmgx.png Thank you. #include <iostream>...
[8 replies] Last: @whitenite1 yes, that's it. thank you. (by sportstool)
by jidder
Why would you ever use a do while loop
 
Like in which situation would it be better than just using a while loop. The example that is often used is a menu that you want to be run atleast once. Wo...
[2 replies] Last: i dont use them. I use method the OP stated. That could just be becaus... (by metulburr)
Error With Inputting to Dynamic Array
 
I'm new to dynamic memory and for some reason this doesn't work: #include <iostream> #include <new> using namespace std; int main() { string ...
[2 replies] Last: string *words1 = new (nothrow) string ; You are allocating a dyn... (by Catfish666)
copy data in arrays
 
I have following function to copy data in arrays. unsigned int msa ; unsigned int msh ; template <std::size_t size, std::size_t size_s > void ...
[1 reply] : You have defined cpy_data_aes to take std::arrays as argument but you ... (by Peter87)
can i make keylogger and connect it html?
 
i am make html site an i think can i make keylogger and konnect it html login? :D
[2 replies] Last: Do you mean you want to add a keylogger on your html website and custo... (by hesterl)
by orcbum
Confused about dynamic memory allocation + arrays
 
For now I'm just trying to read in an input file that looks like: Eastern Conference Atlantic Division Boston Celtics Brooklyn Nets New York Knicks Philadelp...
[2 replies] Last: i'm able to save the buffer into p with the strcpy() function, but ... (by cire)
Possible loss of data.
 
I'm using: Sleep(1.5 * 2500); in my program but I'm getting this lovely warning: conversion from 'double' to DWORD', possible loss of data. Can anyone shed s...
[1 reply] : Warning saying - possible loss of data because may be while rounding u... (by ak16)
Health variable.
 
Hi Guys. So, I'm creating a game for college, and it's going.. alright. I do not understand C++ in any shape or form, so please no criticism as I barely know ...
[8 replies] Last: Maybe you want to reset healthpoints too? (by coder777)
February 2014 Pages: 1... 3536373839... 60
  Archived months: [jan2014] [mar2014]

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