19,876 Topics

Member Avatar for
Member Avatar for abdelhakeem

hi all i need some help with time.h for in the following: i want to make a programme in which while time is 12:00 PM, It prints a Web-page USING time.h thx,,,, kim00000

Member Avatar for abdelhakeem
0
173
Member Avatar for aznswti85

I AM HAVING A HARD TIME WITH STRINGS. I DO NOT FULLY UNDERSTAND IT. THIS IS FROM A BASIC INTRO C++ CLASS HW PLEASE HELP THIS IS THE QUESTION Write a program that uses cin to read a given name (like Louis) and a family name (like Armstrong) into two …

Member Avatar for IT seeker
0
162
Member Avatar for clarence_cool03
Member Avatar for ravishkkumar
0
137
Member Avatar for chetangudi

hi, can anybody help me how to represent queue of stacks. if anybody gives me some idea then i would be greatful to them. thank you.

Member Avatar for Ancient Dragon
0
28
Member Avatar for ankur_

I want to check by a c program that in a system Microsoft Visual studio Runtime is present or not. The system might not have complete package of Microsoft Visual studio but we can run a c or c++ program using Microsoft Visual studio Runtime(MVSR) I want to know that …

Member Avatar for Ancient Dragon
0
207
Member Avatar for j_cart007

hi! i'm trying to write the code to open the file and read the contents and write to another file with uppercase but the problem i'm having is path problem everything seems pretty fine but it says Steam != NULL , as long as i know its could'nt locating the …

Member Avatar for j_cart007
0
138
Member Avatar for ankur_

Please mark the thread as solved after it gets solved It helps the onlooker and the members to know which threads are solved ad they can look into those problems if they have a similar query. But in many occassions it happens that even after the problem is solved the …

0
62
Member Avatar for Ismailworking

Hi . i am using C++ editor to write my C code. when i press Ctrl+F9 , the output screen comes and goes without stopping for a while. Please note that i have included "#include<stdio.h>" and i am using "getchar()" function do stop the screen.

Member Avatar for ankur_
0
10K
Member Avatar for alvalany

Please someone help me regarding the differencec b/w Structures and Unions.I know the differnce in the memory management but what is itz advantage .Also why are unions specifically used in mouse programming and similar stuff..

Member Avatar for ankur_
0
139
Member Avatar for Ineedhelpplz

So I have written a reverse polish notation calculator: [CODE] #include <ctype.h> #include <stdio.h> #include <stdlib.h> #define NUMBER '0' #define MAXOP 100 int main () { int type; int op1, op2; char s[MAXOP]; while ((type = getop(s)) != EOF) switch (type) { case NUMBER: push(atoi(s)); break; case '^': push ((unsigned …

Member Avatar for Ineedhelpplz
0
207
Member Avatar for ankur_

I am running a program(client) that creates about 20000 sockets. After closing this exe when I again want to run than some of the sockets still remain alive and are not closed. Is there any mechanism that I can close these socket just after my exe terminates. I am using …

0
68
Member Avatar for crystality

Hi! I'm getting this error when compiling: $ g++ index.cpp index.cpp:85: error: 'friend' used outside of class index.cpp: In function 'std::ostream& operator<<(std::ostream&, const GrabStuff&)': index.cpp:88: error: 'myLineNumbers' was not declared in this scope Links to included files: [URL="http://users.cs.fiu.edu/~weiss/dsaa_c++/Code/mystring.h"]mystring.h[/URL] [URL="http://users.cs.fiu.edu/~weiss/dsaa_c++/Code/string.cpp"]string.cpp[/URL] [URL="http://users.cs.fiu.edu/~weiss/dsaa_c++/Code/SplayTree.h"]SplayTree.h[/URL] [URL="http://users.cs.fiu.edu/~weiss/dsaa_c++/Code/QueueAr.h"]QueueAr.h[/URL] And for fun: [URL="http://users.cs.fiu.edu/~weiss/dsaa_c++/Code/SplayTree.cpp"]SplayTree.cpp[/URL] [URL="http://users.cs.fiu.edu/~weiss/dsaa_c++/Code/QueueAr.cpp"]QueueAr.cpp[/URL] [CODE]#include <iostream> #include <fstream> …

Member Avatar for crystality
1
735
Member Avatar for amroto

Plz guys i have a problem in my c++ simple calculator, I made everything great but i just need an important hint for my assignment that i can't figure it out. for example when i add two numbers(2+4) the result is (6)... i need the number (6) to be stored …

Member Avatar for gbantsi_2
0
130
Member Avatar for LostnC

I need to convert seconds to Minutes, hours and seconds. I must use pass by reference in variables. I know I need to use the modulus to deal with the remainders when I'm converting to Hours, minutes and seconds. I am really having a difficult time with the code.

Member Avatar for yellowSnow
0
1K
Member Avatar for MrNoob

hey i got something again i got confused by in PE files and they don't rlly explain why happens oke so what im confused with FileAlignment and SectionAlignment files must be aligned or sections to whatever count is right ? like if the it's less than the number (x) then …

Member Avatar for MrNoob
0
105
Member Avatar for production.

Hi I am facing one small problem please send me suggestion for that Problem as follows I have written one code in C for 8051 to use one port as input port & other one as out port.This is done by push button.For example I use P1.0 as in put …

Member Avatar for wildgoose
0
107
Member Avatar for largedimples

I need help to make this run as a c program. I am better at writing c++ code than I am at writing c code. I had this working as a C++ program and I trying coverting it to C. This program must perform a topologic sort of a graph. …

0
84
Member Avatar for spookyfish

Im tasked with developing a simple blackjack program for a class. The program I have currently compiles and runs but it isnt paying out properly. A blackjack (21) should pay out 1.5*the wager, but it is doing it more than it should. Here is the code I have. [CODE] #include …

Member Avatar for spookyfish
0
6K
Member Avatar for beanryu

Hi, I want to create multiple executables corresponding to their .c files in one target rule. For example, I have prog1.c and pro2.c, how do I create the executables prog1 and prog2 from just one target? By target I mean something like this test: [I]dependencies[/I] [tab] [I]command rules[/I] Thanks in …

Member Avatar for er_mv
0
231
Member Avatar for Odc

Hi guys, I've got a simple bool 2D array that is set to false by default. I'm filling it with random 'true' values. I am then trying to make it symmetrical i.e. array[i][j] = array[j][i] However, this doesnt seem to be working and I was wondering why. I've been trying …

Member Avatar for twomers
0
95
Member Avatar for NinjaLink

I had another thread before this one, but I felt that it was getting too long. Current problem: My operator== is not working properly in my program. I have done some things in my function, but I don't think it is "completely right". My program compiles fine and the output …

Member Avatar for Tom Gunn
0
1K
Member Avatar for riu

hi every body i want array concept in programming why we use arrays in codes and etc

Member Avatar for mrnutty
0
53
Member Avatar for speedy94519

Hello you guys, Would anyone like to give me suggestions on how to make a code for the following pattern? Please note that the numbers arent part of the pattern, they are just a guide for row and column. * * * * * # # # 1 * * …

Member Avatar for mrnutty
0
97
Member Avatar for complexcodes

Hi all, I am playing around with list and I figure out how to merge two lists and all. But I have no idea how can I integrate one list onto another. For example A = {1,2,3,4,10,11} and B = { 5,6,7} Then my integrated list should be {1,5,2,6,3,7,4,10}. I …

Member Avatar for mrnutty
0
148
Member Avatar for yugatpt

hai friends this is yugandhar, i want to learn c language so i want install c setup, wile iam installing the setup file is not installing proprally but right now iam using vista operating system can u help me any one, if u have any c language setup file send …

Member Avatar for Ancient Dragon
0
105
Member Avatar for kirit275

You can insert a no. at any pt. in this program. here is the code: #include<stdio.h> #include<conio.h> #include<process.h> #include"goto.c" void line(void); void cross(void); int main() { clrscr(); int a[9][9]={8,6,7,5,4,2,3,9,1, 4,3,2,9,1,8,5,7,6, 9,5,1,7,6,3,4,2,8, 5,2,9,6,8,4,7,1,3, 7,4,8,3,5,1,2,6,9, 6,1,3,2,7,9,8,5,4, 1,8,5,4,2,6,9,3,7, 2,9,6,8,3,7,1,4,5, 3,7,4,1,9,5,6,8,2}, b[9][9]= {8,6,' ',' ',' ',' ',' ',9,' ', 4,' ',2,' ',1,' ',5,' ',' …

Member Avatar for jephthah
0
149
Member Avatar for NinjaLink

Can someone help me determine if 2 stacks are the same? I am fairly new to stacks and need help. My header file is also below. Currently I am getting an error message using "==" and "!=" in my if statement. If someone can help, I will appreciate it! Thanks …

Member Avatar for VernonDozier
0
1K
Member Avatar for tomtetlaw

When I try to compile this: [code] #define NODES_MAX 100000 extern node_t _nodes[NODES_MAX]; [/code] It gives me this error: ------ Build started: Project: TheAlienEngine, Configuration: Debug Win32 ------ Compiling... main.cpp c:\documents and settings\tom\my documents\visual studio 2008\projects\thealienengine\thealienengine\ae_3d.h(12) : error C2148: total size of array must not exceed 0x7fffffff bytes Generating Code... …

Member Avatar for rdrast
0
750
Member Avatar for forislam14

i have an assignment which let the user writes into the terminal -linux system- any command and i should take this command he wrote to execute it using fork and execvp() i already can fork a child .. but cant pass parameters to execvp cuz i can't understand what these …

Member Avatar for Ancient Dragon
0
95
Member Avatar for aalice

/* A Program testing for rational number*/ #include <stdio.h> #include <stdlib.h> typedef struct rational_t { int numer; int denom; } rational_t; int gcd(int a, int b) { /* To reduce the rational number to its lowest form. */ if(b==0) return a; else return gcd(b,a%b); } /* r_init: Creates rational number …

Member Avatar for Tom Gunn
0
160
Member Avatar for seo2005

I want to write a C program to test whether the character is uppercase, lowercase, digit or special symbol. [code=c] void main () { char ch; printf("\n Enter any character from the keyborad"); scanf("%c",&ch); if (ch>=65&&ch<=90) printf(" \n the character is uppercase); if(ch>=91&&ch>=122) printf(" \n the character is lowercase); if(ch>=48&&ch<=57) …

Member Avatar for Tom Gunn
0
291
Member Avatar for nekomata

hello, I seem to have lost part of my notes an was wondering if someone could plz explain how one would use the pi formula below to display a 10000, an 20000, and a 10000 value. pi = 4(1- 1/2 + 1/5 - 1/7 + 1/9 - 1/11 + 1/13 …

0
39
Member Avatar for NinjaLink

Hello, I need some advice to help me write a program to convert postfix to infix. However, I am having difficulty getting started. I tried to search for more information, but all I got was infix to postfix results. This is what I have so far, but I want to …

Member Avatar for tsfaridi
0
199
Member Avatar for aalice

In this assignment you to implement a short C program that works with factorization of integers. You will write a C program that computes and prints out the sum of all natural numbers below 100,000 that are multiples of 3,5 or 7. In Detail If you are asked to sum …

Member Avatar for BestJewSinceJC
0
94
Member Avatar for KEYURI PATEL

Hi, i'm keyuri from g'nagar. I want help for solving my 'c' programming exercises from book

Member Avatar for alisattar
0
35
Member Avatar for theprofoundgeek

Hi, I am writing a C code to add two matrices. I want to take input with a feel of real martice, some thing like 1 2 3 4 5 6 7 8 9 but the Scanf function automatically enter EOL and hence my input looks some thing like this, …

Member Avatar for Gaiety
0
155
Member Avatar for kapiljain469
Member Avatar for seo2005

Hi, I don't understand the if statement here. Can anyone explain how the execution of if loop will proceed. Why are we using || and && operators here. #include<stdio.h> void main { int year; printf("Enter the year: "); scanf("%d",&year); if(year%400 ==0 || (year%100 != 0 && year%4 == 0)) { …

Member Avatar for SecurExpert
0
218
Member Avatar for onemanclapping

Hi, I'm an IT Engineering student and I have the task of doing, in C, a function that does on linux the equivalent of the 'locate' function. Can someone help me? I need ideas for how to read a file system! How can I list directories (to a string or …

0
115
Member Avatar for speedy94519

Hello you guys, Would anyone like to give me suggestions on how to make a code for the following pattern? * * * * * # # # 1 * * * * # # # # [B] ROW [/B] 2 * * * # # # # # 3 …

0
54
Member Avatar for Gem74

when I compile, there are no errors, but when I run the program it tells me there are build errors and then "the system cannot find the file specified." I have copied and restarted a new project, then new item and still get same error message. Can someone tell me …

Member Avatar for Gem74
0
203
Member Avatar for XodoX

Hello, These 3 codes had 5 syntax errors in each of them, but I don't think I found them all. Can somebody help me with this? [code] class AA { public: void print( ) const; int sum(); AA(); private: int x; int y; }; class BB { int one; int …

Member Avatar for XodoX
0
63
Member Avatar for Odc

Hi there, I am trying to read integers from a file and store them into an array but I have no idea how to do it. The file is a text document whos contents are arranged like an adjacency list. Here is an example file: 0 : 2,4,5,6,10 1 : …

Member Avatar for Odc
0
118
Member Avatar for OSiRiSsk

Hi, im creating some program, which reads number from stdin, and save them into variable X, but how can i make condition that program will print error on the screen if X is not number [CODE=c] #include <stdio.h> #include <stdlib.h> #include <ctype.h> int main() { float x; while ( (scanf("%e",&x)) …

Member Avatar for Aia
0
261
Member Avatar for sharkman

Please help quickly! I'm on short notice here. I'm making a C++ program for a project, and the computer I'll need to run it on does not have a compiler. I am currently using Microsoft Visual Studio 2003. I would very much like to turn this file into an executable …

Member Avatar for sharkman
0
180
Member Avatar for parth malhotra

as a bigginer in c , having problem in understanding basics that how to develop programs with use of functions

Member Avatar for surbhi bhasker
0
49
Member Avatar for raigs

Does C++ wait for a *system* shell command to finish before executing the rest of the C++ code? (The shell script does not output any text, it simply executes *find* to *rm* files.) I'm saying this because the shell script [U]may[/U] take a long time to find and delete all …

0
64
Member Avatar for luoyangke

who can tell me what the use of "\n" is? and what the difference between [CODE]scanf("%d",&j); [/CODE]and [CODE]scanf("%d\n",&j)[/CODE];?

Member Avatar for Dave Sinkula
0
113
Member Avatar for cjjack88

Hi, I am trying to read the following information from a text file and save it a binary search tree. The data are: [CODE] Toyota 1.3 Solid 33,235.04 3300.00 Nissan1.3 Solid 38,235.04 3300.00 [/CODE] [CODE]struct Node { char model[50]; char colourType[20]; double price; double deposit; struct Node *parent; struct Node …

Member Avatar for cjjack88
0
90
Member Avatar for its.avinash

Hi all! Please somebody explain me how this snippet is working!! [CODE]main() { float a 4.379; char*p; int i; p=(char*)&a; for(i=1;i<=3;i++) printf("%02X",(unsigned char)p[i]); } [/CODE]

Member Avatar for Gaiety
0
139

The End.