473,465 Members | 1,915 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

konstanten variieren

Wie kombiniert man Konstanten variabel?

Die Absicht ist Konstanten KONST1, KONST2, KONST3, KONST4, KONST5,
KONST6, ...

In einer Schleife mit KONSTi, ... durchlaufend einstzten zu lassen.
Dies ist aber nicht möglich, da der Compiler mekert es wären zu viele
Wert für verwendete Befehle vorhanden.

Hier ein ausschnitt wie ich es gerne machen würde ...

#define KONST1 13 /*Konstanten festlegen*/
#define KONST2 7
#define KONST2 47

main() {

int c = getchar(), i; /*Variablen definieren und
initialisieren*/

for (i = 1, i <= 3, i++) /*Einfügen von ASCii Zeichen*/
putchar(c+KONSTi);
c = getchar();
}
}

Ich bedanke mich schon mal für Euro Info`s, bin ein C Neuling und
hoffe keine zu triviale oder bereits besprochenes Thema anszusprechen.
Dec 11 '07 #1
3 1262
Die Anfrage hat sich eigentlich erledigt, falls nicht doch jemand eine
weitere Idee ...

http://groups.google.de/group/comp.l...3a250bd3?hl=de

wurde die Anfrage bereits besprochen.
Dec 11 '07 #2
"Zottel" <ne********@fastmail.fmschrieb im Newsbeitrag
news:0e**********************************@r1g2000h sg.googlegroups.com...
Die Anfrage hat sich eigentlich erledigt, falls nicht doch jemand eine
weitere Idee ...

http://groups.google.de/group/comp.l...3a250bd3?hl=de

wurde die Anfrage bereits besprochen.
however: comp.lang.c is an english speaking newsgroup, for the german
speaking counterpart check de.comp.lang.c

Bye, Jojo
Dec 11 '07 #3
Joachim Schmitz wrote:
"Zottel" <ne********@fastmail.fmschrieb:
>Die Anfrage hat sich eigentlich erledigt, falls nicht doch jemand
eine weitere Idee ...

http://groups.google.de/group/comp.l...3a250bd3?hl=de

wurde die Anfrage bereits besprochen.

however: comp.lang.c is an english speaking newsgroup, for the
german speaking counterpart check de.comp.lang.c
No, c.l.c is a _primarily_ English speaking newsgroup, but is
international and accepts any language expressable in the available
text fonts. Failure to use English may seriously limit the
exposure of the message, but is completely allowable.

--
Merry Christmas, Happy Hanukah, Happy New Year
Joyeux Noel, Bonne Annee.
Chuck F (cbfalconer at maineline dot net)
<http://cbfalconer.home.att.net>

--
Posted via a free Usenet account from http://www.teranews.com

Dec 12 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: mooneater | last post by:
Hallo, ich bin neu mit dem Umgang mit PHP, und ich habe folgendes (siehe unten) programmiert. Nun erhalte ich bei Aufruf meiner PHP-Datei folgende Fehlermeldung: Parse error: parse error,...
11
by: Zottel | last post by:
I like to use couple of constant in comination with an variable to change the name of the constant. The further text show my vainly try: #define KONST1 13 /*Konstanten festlegen*/ #define...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.