Beginners - May 2015 (Page 10)

by ehe
Shutdown program
 
Hello This is my first program. It works by using the windows command: shutdown -s -t *variable in seconds What would you do different and why? Tiny impr...
[4 replies] Last: What would you do different and why? Check for errors. Otherwise a t... (by dhayden)
Can you retrieve header file location at runtime?
 
I am wondering if it's possible to retrieve the location of a header file at runtime. For example, if I have a file named "myHeader.h" which I've saved in a fo...
[2 replies] Last: I am wondering if it's possible to retrieve the location of a header ... (by andywestken)
long double in pow
 
Why does the i=10 case output wrongly? Shouldn't long double handle it? #include <iostream> #include <math.h> using namespace std; int main() ...
[3 replies] Last: No problem. Don't forget to mark the thread as complete. (by closed account 18hRX9L8)
by xxz
sorting linked list
 
I have a problem with sorting the list alphabetically. Have I correctly written a sorting function? If not please tell me how to write it correctly. str...
[3 replies] Last: Why sort of numbers going on, and there is no sort of words? struct e... (by xxz)
by HelenI
Is that correct?
 
int aCheckpoint ; IModel* aCheckpoints;
[8 replies] Last: ok :) thank you :) (by HelenI)
by xxz
read from file into 2d array
 
Write your question here. I try to read digits from file txt. ,but I can not open it.Where I made a mistake? P#include<iostream> #include<fstream> u...
[6 replies] Last: use std::vector (by anup30)
RSA Algorithm C++ Implementation
 
Hi guys ... i am having a serious problem here..... i will be thankfull if you realy help me out. Actually i am writing RSA algorithm in c++. Below is the code...
[2 replies] Last: So what's going on here? (line 135, in your decrypt() function) for ... (by andywestken)
Process Problem?
 
I appear to be having a problem due to the last function. It is mainly about the pe32.th32ProcessId type. #include <windows.h> #include <tlhelp32.h> #...
[no replies]
COFF error?
 
It shows the error: error LNK1123: failure during conversion to COFF: file invalid or corrupt C:\Users\USERNAME\documents\visual studio 2010\Projects\Test Injec...
[2 replies] Last: Thanks, it actually showed the errors when I downloaded it, I was able... (by icemewtwo64)
Using an if statement for multiple conditions
 
I'm trying to make a small guessing game where the user isn't allowed to guess the same number twice. Is there a way to shorten this? if (x == a || x == b...
[3 replies] Last: I would probably follow the same kind of approach, but use a more gene... (by andywestken)
by Dmytro
This code please explain
 
Good day! This code please explain detail what's going on in each row,each line explanation please write about him! // Struktur3.cpp: определ...
[4 replies] Last: Yeah, I know it was not to nice of me, sorry for that. @Dmytro, here'... (by Gamer2015)
Sorting of arrays.
 
Why it do not sort array.It print only list of same numbers, which is last appear in the list.. #include <iostream> using namespace std; void takeInpu...
[8 replies] Last: thank you very much Momothegreat (by sohailahmedepe)
by HelenI
Functions
 
Hey....if my function is a boolean can i insert integers? bool function(int a, int b)
[2 replies] Last: the bool simply means that the function is expected to return a Boole... (by Codermik)
Unhandled exception?
 
I appear to get this strange error which I can't solve, could someone please help me? Error: Unhandled exception at 0x2e232e23 in Game.exe: 0xC0000005: Access ...
[3 replies] Last: I was trying to debug it, during the process I made i and y global as ... (by icemewtwo64)
Error?
 
I appear to get a strange error, it won't let me enter the second input. Could someone help me? #include <iostream> #include <string> #include <windows....
[1 reply] : Best to seek help in the Windows programming forum by the look of it. (by closed account 48T7M4Gy)
Credit card payment remembering overpayments
 
Hi! I'm new to this site so I am sorry if I put my code in the wrong format. Anyway.... I have a program that reads credit card accounts, payments and charges f...
[2 replies] Last: Here's the code with everything implemented properly; you still have t... (by Momothegreat)
Vector Help.
 
I need help with this. Why have the begginging of an parameters name as a vector string. Like so vector <string> here ( string Help, string Me,) So...
[1 reply] : vector is a class template . you can read about them on this page htt... (by BlatantlyX)
I am getting an error that says [Error] Id returned 1 exit status. Can anybody help me out?
 
I'm not sure what is wrong with the code. I am very new to C++ and coding in general. If someone could give me a few pointers I would appreciate it! #in...
[3 replies] Last: Your welcome :) (by Codermik)
Linked List with String
 
Hello everyone, I am doing a project for a programming subject. They ask to save a project in a linked list. Here you have my Struct: typedef struct dados...
[2 replies] Last: Just got it working. I use No * newNode = new No . Thank you anyway. ... (by Dntfreitas)
Which One is faster
 
My question is as follows.. What is a faster a loop that prints a statement to the screen 1000 times or 1000 print statements that each displays something.. ...
[6 replies] Last: Some compilers are that smart, that can do something like that forever... (by TheHardew)
May 2015 Pages: 1... 89101112... 40
  Archived months: [apr2015] [jun2015]

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