Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~12.9K People Reached
Member Avatar for number87

I have been having this problem with windows defender for a very long time. Whenever I click the update definitions on Windows Defender I get an error code and it is unable to update. My AVG antivirus and Comodo firewall have no problems updating. Even my windows update works properly. …

Member Avatar for Technocrate25
0
482
Member Avatar for number87

Hi I am new to openGL, just picked it up recently and I am trying to do a program window which draws a small square wherever the mouse cursor clicks. Below is the code which I came up with and I dont know why it wont draw the square when …

0
61
Member Avatar for number87

when I try to compile my project file in devcpp I get the following error: I tried googling but nothing seems to help when i tried them. CreateProcess((null), C:/cygwin/bin /sh.exe -c "g++.exe -c test.cpp -o test.o -I\"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include\" -I\"C:/Dev-Cpp/include/c++/3.4.2/backward\" -I\"C:/Dev-Cpp/include/c++/3.4.2/mingw32\" -I\"C:/Dev-Cpp/include/c++/3.4.2\" -I\"C:/Dev-Cpp/include\" ", ...) failed. Access is denied. C:\Users\dedl\Desktop\SAIM\SAIM3\OpenGLGLUT\Makefile.win [Build Error] …

Member Avatar for number87
0
3K
Member Avatar for number87

hi I wanna find out the number of integers from an input number. For example if i enter 84075, the output should be 5. this is what i came up with.....im new to c++ still>.< [code=cpp]#include <iostream> using namespace std; int main() { int numCount, number; bool integer; cout << …

Member Avatar for taepodong1101
0
198
Member Avatar for number87

I am trying to convert a string "500.00" into float. When I use this it produces a string 50000, why does it produce such a result? [code] atof(bal.c_str()); [/code]

Member Avatar for mrnutty
0
165
Member Avatar for number87

ok so I am trying to read in a file. Do some string checking. And output the counters. But somehow I think something is wrong with my strcmp. And I do not know where is the problem. Everything compiles fine too. [code] #include <iostream> #include <fstream> #include <cstring> #include <iomanip> …

Member Avatar for Ancient Dragon
0
124
Member Avatar for number87

I got a question about c++ strings. Let's say string text = "0R14" and I access each element using text[0],text[1] etc does text[0] return an integer 0? or a character '0'? if it doesn't return an integer, how do I convert individual string element to integer type if I need …

Member Avatar for number87
0
162
Member Avatar for number87

I am doing a program to print out the shortest path between locations. I implemented it using a 2D array for the adjacency matrix. However, when I run it and input the start and end locations, nothing else happens. [CODE]#include <iostream> #include <limits.h> #include <assert.h> #include <cstdlib> using namespace std; …

Member Avatar for wildgoose
0
130
Member Avatar for number87

what's wrong with this line when I try to compile in C++?? The src code was originally in C. It gets an expected identifier error with my c++ compiler [CODE]typedef enum {false, true} bool;[/CODE]

Member Avatar for wildgoose
0
353
Member Avatar for number87

I am doing a game and I need to reset the graphics back to its original picture once a new game begins, however when I click the new game button, everything else resets but the graphics do not even though I called repaint. I have included the code for my …

Member Avatar for BestJewSinceJC
0
2K
Member Avatar for number87

I need to do paint a graphics into a nested panel. I am able to paint in a frame but when I add the class for painting into another JPanel, I see nothing. I know how to create nested panels but when I do it with a panel containing my …

Member Avatar for VernonDozier
0
256
Member Avatar for number87

ok so I need to use a 2d array to draw a hangman picture for a hangman game. the picture should be something like this ============ |<space>| |<space>O |<space>/|\ |<space>/\ | | but when i run this code with main. i get this = = = = = = || …

Member Avatar for JamesCherrill
0
245
Member Avatar for number87

So basically I am creating a client/server kind of program. The client/user enters a question eg "Who are you? " The server part receives this and checks it with a txt file and returns eg "I am a computer" or "Answer not found" So when i compile and run my …

Member Avatar for Comatose
0
340
Member Avatar for number87

So, what Im trying to do here is a client server socket program. The client will ask a question to the server. For example, How are you? Then the server opens a text file, compares the string from the client and outputs the answer to the client. My text file …

Member Avatar for number87
0
149
Member Avatar for number87

I did a program to read the output of the UNIX command ls -ali and count the number of directories, write files, link files etc. But there seeems to be something wrong with my code and I cant compile it. I cant seem to find out whats wrong with it. …

Member Avatar for death_oclock
0
125
Member Avatar for number87

Hi guys I just wanna ask what is the difference between the mode_t and st_mode when using sys/stat.h and sys/types.h libraries. I looked them up google and find most people use st_mode but never mode_t.

Member Avatar for number87
0
94
Member Avatar for number87

hi guys its my first time doing a c++ program to manipulate shell input I need to create a c++ program which reads input from this unix shell command >> ls -ali and then im supposed to count the number of dir,write files. I am not allowed to use the …

Member Avatar for Agni
0
239
Member Avatar for number87

#5report function report { clear echo "Name, Position, Department, Salary" echo "========================================" awk 'BEGIN{FS=","; RS="\n"} {printf "%s, %s, %s, %s\n", $1, $2, $3, $4}' $dataFile awk '{total += $4}END{print total}' $dataFile } i am trying to print the total sum of the salary or $4 field. However i cant figure …

Member Avatar for Salem
0
146
Member Avatar for number87

ok what i need to do is to make a script function which allows me to change the records in a file. I read some other posts about using sed but i still could not get it to work. The function runs But nothing changes in my file. This is …

Member Avatar for eggi
0
99
Member Avatar for number87

I am doing a shell script to be able to read some records from a file, then ask the user to input a name. The script should then be able to search the records and only print out the requested record. I have figured out how to print the records …

Member Avatar for Salem
0
112
Member Avatar for number87

I am creating a linked list which links a struct of data together. However, this is my problem, if I declare struct Node first then the Event type wont exist, but if I declare struct Event first then nodePtr wont exist....im kinda stuck here as to how I should declare …

Member Avatar for number87
0
448
Member Avatar for number87

ok basically what my program is about. I am to create a program that allows users to input aircraft/cargo details, add the cargo to the aircraft(up to 20), and a function to display all the cargo on that aircraft. So the main problem i am getting is with the listing …

Member Avatar for minas1
0
120
Member Avatar for number87

ok so what im trying to do is to read some text from a file. Put them into an array. And count the number of characters in the text file using pointers to access the array. However, when i compile i get an error for this line [B]check = isalpha('*text');[/B] …

Member Avatar for number87
0
101
Member Avatar for number87

can someone explain in simple terms how to actually use the following <ctime> functions? I have read thru a few C++ reference websites but the explainations given are very vague and complex. [B]difftime struct tm time_t mktime ctime[/B]

Member Avatar for sidatra79
0
1K
Member Avatar for number87

hi again! this time im tasked to create 2 data structure types: RationalNo and RationalInfo. The structure for RationalInfo consists of RationalNo as a nested structure and a few other functions. RationalNo is an array with fixed size. but i got no idea how to even begin and populate the …

Member Avatar for DangerDev
0
101
Member Avatar for number87

I've been trying to convert my code from using iostream to fstream but seems the output file is always empty.. this is my original code [CODE]#include <iostream> #include <cstdlib> #include <ctime> #include <iomanip> using namespace std; struct RationalNo { int RatNo [20]; }; struct RationalInfo { RationalNo rational; int quotient; …

Member Avatar for mitrmkar
0
168
Member Avatar for number87

erm im trying to create a function to test if an array/matrix is symmetrical that is for example a[i,j] = a[j,i] i think i got the symmetrical test function correct....just that i dont know where to put that if-else statement. it just doesnt seem to fit anywhere in my codes. …

Member Avatar for number87
0
1K
Member Avatar for number87

for this prob i have im supposed to cin a string of letters uppercased from A-H for example if i cin ABACDEFGH my prog should return them as such AA B C D E F G H however i came up with functions which are able to count the number …

Member Avatar for technogeek_42
0
181
Member Avatar for number87

im trying to create a 2D array using a random generator but the compiler keeps giving me compiling error no matter how i modify the calling function [CODE]#include <iostream> #include <ctime> using namespace std; const int MAX = 4; void constructArray (int a [][MAX], int); int main() { int a …

Member Avatar for Nick Evan
0
132
Member Avatar for number87

im trying to make a counter to count the number of odd numbers in an integer entered by a user but somehow my loop doesnt seem to go on as i hoped it would...im trying practise using the while loop that some of u guys demonstrated on my other thread... …

Member Avatar for jonesc5
0
157