Posts
 
Reputation
Joined
Last Seen
Ranked #313
Strength to Increase Rep
+9
Strength to Decrease Rep
-2
64% Quality Score
Upvotes Received
73
Posts with Upvotes
67
Upvoting Members
36
Downvotes Received
52
Posts with Downvotes
51
Downvoting Members
13
21 Commented Posts
~223.05K People Reached
Favorite Tags
Member Avatar for omGac0W

My compiler says the Declaration syntax error is at (88,2) which is one of the brackets? I don't really know what could be wrong. Help please. I'm really new at this. [CODE] #include <stdio.h> #include <stdlib.h> #include <windows.h> #include <conio.h> #define STD_HOURS 40.0 #define OT_RATE 1.5 int clock[5] = {98401, …

Member Avatar for chriswelborn
0
547
Member Avatar for shubhamgore

[B]hi friends[/B] this small compact code is for printing any number of prime numbers in C Language, you just have to change the last line's 500 to any number you want, here some points necessary to understand the code are as follows- 1.> variable torf stands for true or false,in …

Member Avatar for markanderson4
-6
858
Member Avatar for elexender

Hi all, I have a question about file path in lunix. Since i pretty new to linux (im running ubuntu) i dont know how to give a correct file path to fopen command. I want to write some data to a usb drive. Let me show you how i would …

Member Avatar for Erkan_1
0
2K
Member Avatar for peter_budo

Please don't post "spam" or "Thank you" posts in this thread since this is meant to be used as a guide for all beginners and I am sure we would like it to be on topic. I hope you understand this. For these of you who would like to learn …

Member Avatar for Rajeev Kumar_1
9
3K
Member Avatar for abhimanipal

Hi Guys, I am trying to teach myself templates and I keep getting lost in all these compilation errors. Here is the latest // This is the interface for the base class template<class V, class I =int> class Array{ private: vector<V> myStore; public: Array(); Array(I size); Array(I size, V value); …

Member Avatar for abhimanipal
0
242
Member Avatar for abhimanipal

Hi Guys, I am trying to teach myself templates in C++. My current assignment is to create a matrix class by using vector of vectors. I have got most of it done but my code is crashing when I try to overload the random access operator in my matrix class. …

Member Avatar for deceptikon
0
436
Member Avatar for walas

// i want create doubly linked list in c with following choices: 1- add to head 2-add to mid 3-add to tail 4- delete from head 5-delete from middle 6-delete from tail 7- search 8- print 9- exit i write my program but founded some errors what is it? [CODE]#include<stdio.h> …

Member Avatar for syker111
0
615
Member Avatar for ppotter3

Hello! How is everyone? I know this program is somewhat simple, but I am working on learning classes, and I am trying to implement this in my code. I pretty sure my mathematics done in the program are correct, or at least on the write track. Here's what I am …

Member Avatar for magadascar
0
2K
Member Avatar for k3na26

Hi, I kind of need help with my homework. I already have a code but it doesn't seem to work. I'm confused about the parameters I put. I don't know which part I actually messed up. I don't know what else to do. Thank you so much in advance for …

Member Avatar for satabios
0
3K
Member Avatar for abhimanipal

Hi everybody, Please excuse the noob question as I am new to STL in C++. I am trying to write a very basic program which uses iota. However my compiler is complaining that iota does not exist in algorithm. Some other forums suggested including <backward/algo.h> as iota could have been …

Member Avatar for mike_2000_17
0
2K
Member Avatar for abhimanipal

Hi Folks, Here is another noob question. I am trying to write a simple predicate for the find_if function in STL. Here is my code #include<iostream> #include<vector> #include<algorithm> #include<iterator> using namespace std; class InRange{ const int& low; const int& high; public: InRange(const int& l, const int& h): low(l), high(h){} bool …

Member Avatar for Saith
0
396
Member Avatar for abhimanipal

Hello everybody, I am trying to teach my stl and after writing some basic programs I have hit a road block. I have an iterator which I am trying to pass to a function template Here is my function template template <class T> void display(typename vector<T>::iterator start, typename vector<T>::iterator end){ …

Member Avatar for abhimanipal
0
172
Member Avatar for seriousgeek

Hi, I've got a main project coming up and i've been thinking about creating a non english based programming language,ie in my mothertongue malayalam. But i'm not sure if its feasible. Also, should it have its own programming syntax or emulate some other programming language like C? Can someone lead …

Member Avatar for amaithianantham
0
315
Member Avatar for arc45

"write a program that reads a list of names and telephone numbers from a text file and inserts them into an AVL tree showing in order and pre order traversal..once the tree has been built,present the user with a menu that allows huim or her to search the list for …

Member Avatar for shinnoon
0
2K
Member Avatar for tquiva

** EDIT: sorry, typo in my title. I meant to write 3 pointers instead of 2. I am trying to revise/create a function in which it is given given three pointers to floats and reorders the values pointed to into ascending order. The prototype for the function would be: void …

Member Avatar for larsake27
0
742
Member Avatar for digitalhead

Hi, I wanted to write a C program which searches for text files in a directory(assuming the directory and files are not write protected),list them and open each one of them(files) write a letter A in them.Can anyone give me a sample code. I believe it can be done with …

Member Avatar for ashok.bandari88
0
216
Member Avatar for angelfriend89

hi, I want to run lkdemo.c which comes as a sample of open cv. Actually i am interested in using algorthim of optical flow in order to track movement of an object for my project but it gives error which says segmentation fault.my operating system is linux .it is showing …

Member Avatar for Salem
0
357
Member Avatar for debasishgang7

hi all, I am trying to pass an array to a function. an array is like char game[4] = {'S', 'R', 'D'}; i wanna pass the entire array to a function which accept. like this void name(char *game) How to do this..?

Member Avatar for abhimanipal
0
179
Member Avatar for logicmonster

I have two different ways to traverse a tree adt that essentially do the same thing except one is a recursive function and the other is iterative. How could I compare the efficiency between them? RECURSIVE [CODE]inorder(node) if node.left ≠ null then inorder(node.left) print node.value if node.right ≠ null then …

Member Avatar for abhimanipal
0
130
Member Avatar for logicmonster

Aside from using switch statements, do-while loops, and if-else trees, is there a good way to complete error checking after a user input from the keyboard?

Member Avatar for abhimanipal
0
182
Member Avatar for debasishgang7

hi all, i am trying to make a prog. which will read the first line of a text file and put the first line into an array and pass the entire array to a function. Here is my code: [CODE]#include <stdio.h> #include <conio.h> #include <string.h> #include <string.h> void exe(char cmd) …

Member Avatar for abhimanipal
0
186
Member Avatar for debasishgang7

[CODE]#include <stdio.h> #include <conio.h> main() { int i; char full; char array[10]="ABCD"; for (i=0;i<=6;i++) full = array[i]; printf("%c",full); } [/CODE] I wanna convert an array to a full character .So that i can print the character like this line printf("%c",full); This program unable to print the character?? Whats wrong in …

Member Avatar for abhimanipal
0
158
Member Avatar for arshi9464

i want to know, what kind of addresses do pointers deal with? i mn logical or physical? and how can i access a particular memory area using pointers? PLEASE HELP.......

Member Avatar for TrustyTony
0
143
Member Avatar for mchin131

I have a program where it reads 2 files, one of them containing a file with customer number (int), customer name (string) and balance (double). There are 7 lines, but my program would only read the first line 7 times. This program is confusing me as to why they won't …

Member Avatar for NathanOliver
0
136
Member Avatar for sharma89bunty

sir i have a problem in the c program. [CODE]switch(ch) { case 1: t=a+b;break; case 2: t=a-b;break; case 3: t=a*b;break; case 4: t=a/b;break; default:printf("invalid no:"); }[/CODE] when i execute the program and the any choice the comipler skip to the default statement. is it any problem in the syntax. sir …

Member Avatar for venkata suresh
0
202
Member Avatar for Komerad

Hi I found this piece in another "solved" threat. The person that wrote this however had a different problem with it. I changed the bar size value from 12 to 6500. For me this works but has a major flaw : When : lengths to cut < size of a …

Member Avatar for Komerad
0
1K
Member Avatar for super.mina

The user enters the following : " x+sin(x)-pow(x,2)+5log(x)" How can I make parsing for a statement like that .

Member Avatar for WaltP
1
127
Member Avatar for dgreene1210

I am only a very beginner and was wondering if anyone can give me some help in determining how to fix the error messages i keep getting when i try to compile. I have been pulling my hair out for 3 days. Any help is much appreciated! attached is the …

Member Avatar for MareoRaft
0
965
Member Avatar for beatbox32

Hello, I'm attempting to learn C through the K&R book and am having some trouble with Exercise 1-13 at the moment. I'm just attempting to do a simple horizontal graph and can't figure out why this isn't working correctly. It seems to be ignoring my first "if" statement and just …

Member Avatar for beatbox32
0
458
Member Avatar for George91340

Hello Everyone! So I have an assignment to create a program to read in data from text file. I managed to get that part, but I'm having trouble with two areas. 1. Having the names read from the display read into a 10x3 format (10 rows, 3 colums/seats.) Expected output: …

Member Avatar for raptr_dflo
0
362