Beginners - October 2014 (Page 39)

by Naulee
Pointers and reading in .txt file
 
So we're supposed to use pointers to allocate memory and addresses of the variable, reading a text file on each line which begins with a char corresponding to i...
[2 replies] Last: Okay it worked out! Thank you for your help! (by Naulee)
Would you please check if this code is logically correct?
 
Dear Friends. The code below runs for 3 time (for loop). and each time from 5 different files (.txt files) it reads a number (there are 3 different numbers in ...
[4 replies] Last: Thanks a lot. I applied your comments. (by spring2014)
Would You Add Descending Sortation This Program?
 
Would You Add Descending And Ascending Sortation To This Program? Im Really Confused :( #include<iostream.h> #include<conio.h> void main() { int n,c,x,y;...
[1 reply] : Read this: http://www.programmingsimplified.com/c/source-code/c-progr... (by coder777)
Bitwise Operators logic tables
 
Hello, i am a student majoring in computer science, we are learning C++. We have an exam coming up soon and i need help understanding a certain concept that our...
[2 replies] Last: To figure the answer to bitwise operations by hand, you have to conver... (by dhayden)
by davez
formatting output
 
Every time i try to input long words it doesnt match the output i wanted Account # Name Balance 9421-3214-3333 Name Samples 9000 ...
[1 reply] : http://www.cplusplus.com/forum/beginner/144446/ (by rafae11)
Assistance in Interpreting Instructions
 
Hello all, I am new here and new to C++ and programming in general. I am working on a lab for my class and my teacher wrote out some pseudo-code to help guide u...
[2 replies] Last: START A LOOP #1 Prompt the user to enter the first number (load ... (by closed account 48T7M4Gy)
Blackjack Program hit() function
 
I am trying to write a blackjack program. The only function I can't get to work is the hit function which determines whether a player wants to hit or stay. If i...
[4 replies] Last: Ya that's it. I created another variable to be set to true if "s" or "... (by manutd636)
Having trouble installing SDL
 
No matter how much I try, I can't install SDL for Visual Studio Microsoft C++ Express. Can someone please help out.
[13 replies] Last: Hey ahcfan, sorry I haven't replied in a long time. I took a break fro... (by Duckface)
Beginner C++ student. ERROR LNK2019 1120 HELP
 
Here's my code and when building it, I keep receiving... Error 1 error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup D...
[2 replies] Last: you haven't initialized newpopA and newpopB. i would suggest put curly... (by rafae11)
by zdzero
conversion from 'int' to PBYTE/'PWORD/etc' of greater size
 
This happens on a x64 build (no previous x86 and I don't have a lot of experience with x64). I know that pointers are 8 bytes long (not 4 like on x86). I ...
[1 reply] : If you are using C++11 (and you should), add ll to the end of litera... (by MiiNiPaa)
wierd == operator usage
 
So I came upon this line I didn't understand DLLIMPORT void lv_EQ_0100(int A, int B, double C, int * err) { try { cv::Mat * pA=(cv::M...
[9 replies] Last: cv::Mat * pB; (* pA) = ( (* pB) == C ); pB is a pointer. *pB is the ... (by keskiverto)
Efficency of my user pass prgram
 
So I was using a practice problem from Jumping into C++, and it works, Without the correct password combo the "username and password correct!" dosent come up, I...
[1 reply] : increase efficiency? you may write like this in main function ... (by z6123321)
help for answer for several question
 
1.can i display all the prompt all question before get the information??if can pls teach.. 2.if let say have a programme got 2 formula(a,b),if i insert informa...
[no replies]
by jdmic
Still getting confused with pointers...
 
Hi, I would like to have an array of wchar so let say... const WCHAR g_String = {L"Str1", L"Str2", L"Str3", L"Str4", NULL}; And use it in a loo...
[1 reply] : It's an array of WCHAR as you said so the parameter of the function sh... (by billyb29)
Help writing this program
 
Hi, I'm new to C++ programming and due to personal reason I missed class. I'm not sure how to approach this so I ask for help here. Don't get me wrong, I don't ...
[9 replies] Last: I'll try that thanks (by JayJay007)
by Jon15
Pass by Reference
 
Objective is to have a program that will calculate the roots of a 2nd degree polynomial using pass by reference. I am getting 0.00 for every answer, i don't thi...
[4 replies] Last: Thank you, it works like a charm. (by Jon15)
HELP
 
Help, only executes #1 #include <cstdlib> #include <iostream> #include<conio.h> using namespace std; int main(int argc, char *argv ) { system("c...
[5 replies] Last: ty everyone (by kogamint)
Circular dependency- Incompatible type question
 
I read Disch article here in c++ forum about headers http://www.cplusplus.com/forum/articles/10627/ I have a code here that is somehow confusing ResourceHolde...
[7 replies] Last: A practical solution to this problem is to create an alternative head... (by procastination)
Infix to Postfix
 
I'm trying to write a function that converts infix to postfix notation using stacks. My code compiles, but does not convert properly. Thanks in advance. co...
[no replies]
Can you check what's wrong with my code? HELP
 
I need help getting my code to run. The population of a town A is less than the population of town B. However, the population of town A is growing faster th...
[1 reply] : You need to swap line 31 and 30 and line 34 and 33 You are using a v... (by coltehrman)
October 2014 Pages: 1... 3738394041... 70
  Archived months: [sep2014] [nov2014]

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