Beginners - March 2014 (Page 30)

calling function from a function.cpp file
 
i have a void function in a separate .cpp file called: void calculate_vector.cpp my function.cpp code: #include <vector> #include <iostream> using...
[1 reply] : http://www.cplusplus.com/forum/general/113904/ (by ne555)
by korgar
Array, several functions
 
Hello! I'm very new at C++, and programming in general, and have a problem I would love some help with. I have been trying to write a code that asks the user t...
[14 replies] Last: Your welcome :) (by Codermik)
Hex editing a file...?
 
So, I'm a complete-ish beginner. I wanted to know: How would I edit the hex of a file that I opened by dragging it over onto the program? I know where the ad...
[1 reply] : Use this code to figure out the behavior of drag and drop. #include ... (by booradley60)
visual studio isnt debugging
 
hi all! i just installed visual studio on my lap top. weird thing happen that i cant debug. i try to debug and all i get is a black window for a moment and th...
[7 replies] Last: Tools + Options, Projects and Solutions, Build and Run. "On Run, when... (by booradley60)
getline help
 
i have been stuck at this for almost an hour...can someone kindly tell me what am i doing wrong? at the getline(cin,name), when running the program it wont let ...
[3 replies] Last: No problem! (by Jamerack)
Is there a future for programmers?
 
I can't really see how there will be/is with all the game engines being released, or already released, such as Unity, Cry Engine and now Unreal 4(with full sour...
[5 replies] Last: Even regarding computer games, that sub-sector is extremely driven by ... (by MikeyBoy)
by pintee
Unable to launch modal dialog box
 
I've created a simple MFC text editor, and I want to launch a dialog box when the user goes to the menu Edit->Find. I have been following the instructions here ...
[1 reply] : Any help? (by pintee)
copying and swapping string problems
 
Hello I'm new to C++. I am learning from a book and I'm having trouble with copying and swapping strings. The code compiles okay but the .exe file wont run. ins...
[2 replies] Last: sorry this is my fault I misread something in the book. thanks for t... (by remsster)
What does #define do here? #define syntax
 
Link: http://www.cplusplus.com/articles/Eyhv0pDG/ What do #define _INC_EKU_IO_CONCOL #define CONCOL do in the link above? I thought the synta...
[1 reply] : I thought the syntax must be: #define identifier replace If you do... (by MikeyBoy)
by kittyk
2d arrays driving me crazy! help appreciated!
 
So I've been piecing this together bit by bit very slowly. I'm only allowed to use multi dimensional arrays so no vectors, structs (which would be the logical ...
[6 replies] Last: It's finally working! Thank you so much! I'll be more careful in futur... (by kittyk)
invalid operands of typs ‘double’ & ‘int’ to binary ‘operator%’
 
why do i get this error: invalid operands of typs ‘double’ & ‘int’ to binary ‘operator%’ :Btw im trying to generate a 10 element vector such ea...
[1 reply] : Order of evaluation. 0.1 * rand() % 10 is same as (0.1 * rand()) % ... (by keskiverto)
by chofs
function calling
 
hey guys just wanted to know that if i have two functions other than main in my code....can i choose which function out of the two when a specific condition is ...
[2 replies] Last: thanx (by chofs)
Prime # Program, strange error
 
I need to write a program where the user enters a number and the program finds all the prime numbers from 1 - user input number However, I am trying to comp...
[18 replies] Last: Thank you so much gibilt! you have been an immense help, and thank you... (by alex067)
Error 1 error C2668: 'pow' : ambiguous call to overloaded function
 
Error 1 error C2668: 'pow' : ambiguous call to overloaded function (line 22) I've try to chage all about pow, but I can't find the error, help please!!! ...
[5 replies] Last: execute trough a debugger and interrupt the program. the debugger woul... (by ne555)
question I got in a Midterm (ASAP)
 
this is a question a got in a midterm and i couldn't figure out the answer yet: consider this : int x, y, z given this line of codes : z = x; x =...
[3 replies] Last: It might help if you do a quick check to see which variable's original... (by Zhuge)
how many times the code executes ?
 
how many times will this executes > int j = 5; int i = 100; while (i<j) { i--; }
[3 replies] Last: If you did what I said and got 100 as a result then remember the initi... (by giblit)
Convert letter to phone number using switch statement
 
I am trying to convert letter to corresponding telephone digits using only switch statement, but I got an infinite loop. It works if using if statement but I ca...
[3 replies] Last: Thank you for your help, I just got it. I suppose to put the curly bra... (by footballboy)
convert a string to a char
 
Alright well my program only seems o work when i have a switch statement in place but it won take a string type as an answer so how would i convert a string to...
[3 replies] Last: The string class has a c_str() method that returns the equivalent of a... (by Little Captain)
Assistance needed, any help is greatly appreciated.
 
Question: ------------------------------------------------------------------------------- Write a C++ program that prompts the user with the following options...
[1 reply] : Here is something to get you started, I took out the errors and fixed ... (by Scorpic)
by ak16
Serial Communication on RS422
 
Hi friends I am trying to communication on serial. While studying i found one function in some one code of serial i.e. fcntl(file_descriptor, F_SETFL); I ...
[no replies]
March 2014 Pages: 1... 2829303132... 79
  Archived months: [feb2014] [apr2014]

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