Posts
 
Reputation
Joined
Last Seen
Ranked #2K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
10
Posts with Upvotes
9
Upvoting Members
10
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
2 Commented Posts
0 Endorsements
Ranked #977
~45.8K People Reached
Favorite Tags
Member Avatar for vishnukumar

Good morning to all. I am Vishnu Kumar, MS (Software Engineering) graduate, fresher, 2012 passed out. And i am another one in your way with a dream to develop a game. I had gone through plenty of articles and topics (pinned in this forum too) but i find that, basic …

Member Avatar for NehaPande
0
365
Member Avatar for munchlaxxx

Any ideas of how I can have a calendar for all 12 months print for any year? The user inputs the year and the day of the week for January 1st of that year. (Sunday = 0, Monday = 1, etc.) *Important*: I cannot use cases. (That's what I've mostly …

Member Avatar for 0igo
0
17K
Member Avatar for deepecstasy

I have designed a linklist based BookStore in which book's attributes will be stored in a node & so on. Plus at the end of program, I have to save all database into text file *(I tried binary reading but damn I got me killed & couldn't do it)* & …

Member Avatar for deepecstasy
0
395
Member Avatar for jdh1231

I have a program that gives me estimation of pi, and time elapsed depends on my input numbers. Can someone please tell me how to compile this? I have the code but it's mystery how to compile and r un it... * Compiler: * mpicc -g -Wall -o name name.c …

Member Avatar for dx9_programmer
0
158
Member Avatar for willygstyle

Hello all. I'm working on a simple game at the moment and thus I started heading in the direction of windows hooks. I easily got the low level keyboard hook working. But of course I had to attempt the other version which uses dll's for hooking. After many attempts at …

Member Avatar for dx9_programmer
0
182
Member Avatar for NardCake

Hello! I believe hotkeys or keyboard shortcuts is the correct term. (Ctrl+C is copy etc...) Well I'm having troubles trying to figure out how to do this. I'm very new to the win32 api and such And I'm just clueless. Any help is very much appreciated!

Member Avatar for dx9_programmer
0
2K
Member Avatar for christinetom

Hi all Can anyone tell me how I add a linker directory for a specific library to my project in Codeblocks. It would be better if it was there all the time but I think I have to go to Project>Build Options> then I have to select the 'Search Directories' …

Member Avatar for christinetom
0
2K
Member Avatar for chris.causey.37

This code should read in some data from sector zero off of a USB flash drive, then print out some of the data. However when I run it there is nothing that was put in the buffer. int _tmain(int argc, _TCHAR* argv[]) { int ReadSect = 0; char diskname[60]; sprintf_s(diskname, …

Member Avatar for dx9_programmer
0
304
Member Avatar for katsmiley

suppose i have defined constant using #define MAX 5 and i am using it in function called find() as shown below: find() { if (MAX==5) { //do this; } else { //do this; } } ** If i am calling this function 100 of times** then which way is better …

Member Avatar for deceptikon
0
160
Member Avatar for Hopp3r

Ok, so I've recently been learning to code in c++, but I'm getting a little confused on how you read files to functions. For instance, say that I have one file with a list of other files in it. The information within the second set of files (each file) contains …

Member Avatar for triumphost
0
3K
Member Avatar for testie

Im having some trouble putting together a linked list implementation of a queue. I'm getting a segmentation fault, which I believe is due to my empty() function because in an attempt to fix my empty() function, I made it determine empty based on (current_size == 0) instead of (front_p == …

Member Avatar for dx9_programmer
0
752
Member Avatar for alyssa.wilkins.77

#include <iostream> #include <fstream> #include <string> using namespace std; const int numRows=5; const int numCol=7; void openfile(ifstream& , ofstream& ); void initialize(ifstream& , ofstream& ); void ave(ifstream& ,ofstream& , double , double,string ); void printout(ifstream& , ofstream& ,string ,double ,double ); int main(){ ifstream infile; ofstream outfile; string names[numRows]; double …

Member Avatar for dx9_programmer
0
321
Member Avatar for slygoth

I am working on this project and i am going to need to write information and retrieve them from a file. I get all the information needed but i am not sure how to write it to a file and how to get it back. if (id.is_open()) { cout<<endl; cout<<"Enter …

Member Avatar for slygoth
0
160
Member Avatar for chris.vargas.773

For an assignment for class i wrote this code right but the only problem i have is that i can't get the right value that assignment wants which is distance so far: 0 meters distance so far: 1000 meters distance so far: 0 meters distance so far: 0 meters distance …

Member Avatar for dx9_programmer
0
132
Member Avatar for jake.jackson.7169709

I'm still a little confused. Basically this is what I'm trying to do, and I'm having one hell of a time with it... My program has two values "Value" and "N". The goal of the program is to select every Nth number of Value starting with the last, and print …

Member Avatar for dx9_programmer
0
197
Member Avatar for chris.vargas.773

i wrote this code for sending and recieve mail but i can't get the output that is required for class which is -Test 1-- Creating a new envelope Addressing from Muffin To Howie Inserting the message: Pet me! Affix Postage: 0.33 stamp Sealing the envelope Mailing the envelope --Test 2-- …

Member Avatar for dx9_programmer
0
171
Member Avatar for pattilupwned

Hello, I am writing a program that reads in data from a text file and puts it into a linked list. Certain variables are read in only if the "officeHeld" number is a particular number, otherwise the variable is set to 0. When I run this through Visual Studio, I …

Member Avatar for dx9_programmer
0
350
Member Avatar for Monster99d

I have Visual Studio 2012 Ultimate. I tried creating a Win32 Program and there are no debugging errors. However, when I debug it, the window I am creating should be shown on screen, but there is no window. All I see is my code. Why would this happen? #include <Windows.h> …

Member Avatar for nullptr
0
107
Member Avatar for Elixir42

Hi I am setting the sampler states initially then setting them on the fly with keypresses that I know runs but I dont see anything changing. Am I missing something. Can I just call SetSamplerState(...) anytime or do I need to call something after? static bool bToggleH = false; static …

Member Avatar for Elixir42
0
225
Member Avatar for Kamina00

Hi I was just looking up the difference between cin.get() and cin.getline(). It seems they can both function the same way except cin.get() keeps the delimiter in the buffer while cin.getline() throws it out. My question is with this code: char name[200]; char name1[200]; char name2[200]; string hi; cin >> …

Member Avatar for Kamina00
0
1K
Member Avatar for Sasquadge

What I'm trying to so is have calc grab the add, mult, sub, div from the fraction.cpp and do that one thing I curious and can't figure out it the how to do the formula in the function and return the value to add the fractions. Can anyone give me …

Member Avatar for Despairy
0
217
Member Avatar for Elixir42

Hi I can't seem to adjust the D3DXFONT_DESC properties. Sometimes it breaks at getDesc(...). I want to be able to have **each text row have their own font description and be able to change it**. Why is it not working??? Maybe I setting it in the wrong place or maybe …

Member Avatar for Elixir42
0
364
Member Avatar for Delnith

Using the code below I need to implement it such that p_poly has only one term of any degree and contains no terms with zero coefficients. I have tried to implement a temporary variable to no avail and was wondering if anyone else had an idea or possibly lead me …

Member Avatar for Delnith
0
88
Member Avatar for Secone

I've got the following project, which does what is described in the comments, however, when I use VC++ to compile it, it does not run properly, it crashes after I type in the document name. I'm wondering if I could get help on making it run properly. Any and all …

Member Avatar for Secone
0
167
Member Avatar for sandy.phan.37

Hi everyone, I'm currently working on a school assignment and came up with this error saying 'list_t has no member named head' but when I actually look at list.h and list.c (my code accessing list is in a separate file), head is in list.c. What did I do wrong? list.c …

Member Avatar for deceptikon
0
8K
Member Avatar for Elixir42

Hi sorry for yet another circular inclusion problem but I need help understanding why I cant add a new class CSprite to my project that inherits CShape. I get an error C2504 base class is undefined. I've tried so many permutations of including files. Also can anyone suggest a neater/efficient/correct …

Member Avatar for Elixir42
0
1K
Member Avatar for munchlaxxx

The program says it's stopped working after I input the first number... #include <iostream> using namespace std; int average(); int main(){ char answer; cout << "Average calculator." << endl; cout << endl; cout << " Enter a stream of positive numers (0 or above)." << endl; cout << "Enter a …

Member Avatar for np complete
1
194
Member Avatar for straylight

I am attempting to reverse a string for a homework assignment and then reverse each word in the string. The trick is we are suppose to code it without using functions. Like "I like cats" should be 1st "stac ekil I" and then "cats like I". Here is what I …

Member Avatar for rithish
0
1K
Member Avatar for muhammad.khan.3576

// i dont know where i am getting wrong..the answer is contniously zero...plz help me #include<iostream> #include<cstdlib> using namespace std; int rand_val() { return rand()%1000000+10000; } int main() { int i,j; int salary_vec[100]={}; for( i=0;i<100;i++) { salary_vec[j]=rand_val(); } double tax_vec[100]={}; for( j=0;j<100;j++) { if(salary_vec[i]>=70000) { tax_vec[j]=salary_vec[i]*(10/100); } else if((salary_vec[i]>=50000)&&(salary_vec[i]<70000)) { …

Member Avatar for muhammad.khan.3576
0
193
Member Avatar for kruschev

#include <iostream> #include <cstdlib> #include <cstring> using namespace std; /* * */ #define NAME 5 #define EMAIL 2 int main() { char* address[NAME][EMAIL] = {{"Barrack", "president@whitehouse.gov"}, {"Roger", "rpowell@valleycollege.edu"}, {"Mark", "markz@facebook.com"}, {"Bill", "billg@microsoft.com"}, {"Gaga", "admin@lady-gaga.net"}}; for(int i = 0; i < NAME; i++) { for(int j = 0; j < EMAIL; …

Member Avatar for WaltP
0
143