Beginners - July 2014 (Page 4)

Invalid type
On line 90, I am getting this error, " invalid types 'int ' for array subscript." Please help (Prompt is out << tGrade << "%" < lGrade ;) #include <fstre...
Jul 29, 2014 at 6:08pm
[4 replies] Last: Your function prototypes and functions are inconsistent in the use of ... (by AbstractionAnon)
memset-intializing arrays
#include<iostream> #include <stdio.h> #include <cstring> using namespace std; int main() { int test ; memset(test,1,sizeof(test)); for(int i=...
Jul 29, 2014 at 5:11pm
[1 reply] : memset is character based. If an int is 32 bits in your environment, ... (by AbstractionAnon)
c++ looping problem
HI guys i need some help about looping.. its about creating a program that accepts number N and display the sum of all even numbers and sum of all odd nu...
Jul 29, 2014 at 4:33pm
[9 replies] Last: @AbstractionAnon o ic ..anyway tnx sir.. its a big help. :) (by yawakha)
Rijndael 3rd party library
Hello Everybody, I have a demand to code a simple C++ program that opens a file encrypted with this library: http://www.pragmaware.net/software/rijndael/ind...
Jul 29, 2014 at 3:54pm
[no replies]
i am doing a project on sorting characters
nothing
Jul 29, 2014 at 3:51pm
[1 reply] : Line 78: What is the purpose of word ? Line 88-91: Why are you me... (by AbstractionAnon)
predefined object "models"?
hello everybody. I'd like some suggestions on object creation. class Styles{ int id; int right_margin; string name; //etc Style(int, int, string); }...
Jul 29, 2014 at 3:48pm
[3 replies] Last: ok, got it. yes, styles would be selected at run time.and i made a con... (by Stauricus)
by hilder
c++ mysql update with variable
Hi to all. This is my code: #include <stdlib.h> #include <stdio.h> #include <mysql/mysql.h> int value; #define DATABASE_NAME "pippo" #define DAT...
Jul 29, 2014 at 3:17pm
[15 replies] Last: Ok, it work!!!! Thank you very very much (by hilder)
"Run" command?
This feels like a really dumb question, but I can't seem to find the answer anywhere. Is there any way to run my solution without using ctrl+f5? It seems silly ...
Jul 29, 2014 at 3:13pm
[2 replies] Last: Debug menu->Start Without Debugging. (by closed account z05DSL3A)
_strtime
Hi guys I have a simple question. How will I add an hour to the current time using this codes? char timenow ; _strtime(timenow); //modify current ti...
Jul 29, 2014 at 2:44pm
[3 replies] Last: #include <iostream> #include <ctime> int main() { // http://en.c... (by JLBorges)
loops
hello i have spent many hours trying to figure out how this works, can someone help me understand this and explain it to me as if i were 2 years old? hehe ...
Jul 29, 2014 at 12:01pm
[15 replies] Last: ok i take a look at it thanks. (by Jacobhaha)
program problems
I am new to c++ and have a problem with this program. I have one choice weather the person is full time or part time and if they are full time they get on rate ...
Jul 29, 2014 at 12:00pm
[3 replies] Last: Thank you for all your help. I am truly grateful... (by cereal8282)
the big 3
hi, i am new to c++(4months) and would like to ask about the big 3(operator assignment, destructor and copy constructor) 1)Do we usually use this big 3 when th...
Jul 29, 2014 at 11:44am
[4 replies] Last: Thanks for your replies I will do some research #soulsearching :) (by fishsticks)
by laxmen
Need help with a simple code
Im doing an assignment that requires me to code a vending machine. Im currently stuck in a part where on the second time it loops, it doesnt proceed down to cas...
Jul 29, 2014 at 9:00am
[3 replies] Last: Ohmygod, it was that simple. Hahaha, okay i get it now. I didnt realiz... (by laxmen)
What Does The Word "This" Do In This Program?
Hello! I understand everything in this program except essentially the whole of the member function NameDataSet::add(), specifically the "this" word. I have a gu...
Jul 29, 2014 at 7:34am
[1 reply] : the comment on line 16 is telling you really. this is a pointer to th... (by mutexe)
Takes Two Inputs To Exit.
Hello! I have some code here that outputs a menu of options to calculate the area of a circle, rectangle, or triangle. It performs these options however long th...
Jul 29, 2014 at 7:32am
[3 replies] Last: Thank you both! I really appreciate the help! (by cplusone)
Finding highest and lowest Score
Hi guys. I have a basic grade program. I need to find the highest and lowest value but dont know how. Im still a beginner. #include <iostream> using nam...
Jul 29, 2014 at 7:31am
[6 replies] Last: 3..2..1.. not fine. The else on line 32 is an error. It is quite p... (by keskiverto)
I Would Like Help Understanding Linked Lists.
Hello! I have been learning C++ for a couple months now and am needing help to understand linked lists. I get the general ideas surrounding it in the code like ...
Jul 29, 2014 at 7:30am
[3 replies] Last: Thank you both so much! I really appreciate your help! (by cplusone)
c++ win32 Adding values to ComboBox
SendMessage(hWndComboBox, CB_ADDSTRING, 0, reinterpret_cast<LPARAM> (_T("Item1"))); SendMessage(hWndComboBox, CB_ADDSTRING, 0, reinterpret_cast<LPARAM> (_T("I...
Jul 29, 2014 at 6:43am
[1 reply] : use ComboBox_AddString instead ( http://msdn.microsoft.com/en-us/lib... (by tath)
i-- not working as update in for loop???
code: //Kristen Korz //CIS 22A //This program reads an input file and writes the words in reverse order to an output file. #include <iostream> #include...
Jul 29, 2014 at 5:41am
[1 reply] : Your problem with the output comes from this code: for (int i = MAXSI... (by Smac89)
OpenGL color pattern help?
I'm trying to make a pattern in OpenGL but the first few stars are sized wrong. I don't see my mistake in my scaling though... Any help? #include <GL/gl...
Jul 29, 2014 at 5:13am
[1 reply] : > glRotatef(180.0, 0, 0, 0); ¿what direction is that? You are mis... (by ne555)
July 2014 Pages: 123456... 43
  Archived months: [jun2014] [aug2014]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.